{
  "name": "Sync new data between two apps",
  "nodes": [
    {
      "id": "678e86bc-2755-4c79-97d6-fa4da1ed9ff9",
      "name": "Postgres Trigger",
      "type": "n8n-nodes-base.postgresTrigger",
      "position": [
        500,
        480
      ]
    },
    {
      "id": "accecdfc-283c-4119-9b23-4cf44bc5e68c",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        980,
        540
      ]
    },
    {
      "id": "d16d7ae7-0c60-48f0-97fe-c7618cab73d3",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        380
      ],
      "parameters": {
        "width": 424,
        "height": 559,
        "content": "## 👋 How to use this template\nThis template shows how to sync data from one service to another. In this example we're saving a new qualified lead to a Google Sheets file. Here's how you can test the t"
      }
    },
    {
      "id": "8bc7439e-d814-4960-8b75-fc77805f74c7",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        460,
        380
      ],
      "parameters": {
        "width": 344,
        "height": 562,
        "content": "### 1. Trigger step listens for new events\n\n"
      }
    },
    {
      "id": "63b2bc4c-8e33-4432-af4b-4595b2012ce1",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        840,
        460
      ],
      "parameters": {
        "width": 462,
        "height": 407,
        "content": "### 2. Filter and transform your data\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nIn this case, we only want to save qualified users that don't have `@n8n.io` in their email address.\n\nTo edit the filter, simply drag and drop inp"
      }
    },
    {
      "id": "448e2c49-aa75-405b-ba51-3acbce0fb758",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1340,
        460
      ],
      "parameters": {
        "width": 342.52886836027733,
        "height": 407.43618112665195,
        "content": "### 3. Save the user in a Google Sheet\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nFor simplicity, we're saving our qualified user in a Google Sheet.\n\n**You can replace this node with any service like [Excel](https://docs.n8n.io"
      }
    },
    {
      "id": "c0ee182d-4c31-488b-a547-5f2d2ba8786e",
      "name": "On clicking \"Execute Node\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        500,
        680
      ]
    },
    {
      "id": "87f2a11e-f704-4c9e-ac8b-ee1f057cd347",
      "name": "Code",
      "type": "n8n-nodes-base.code",
      "position": [
        680,
        680
      ]
    },
    {
      "id": "0992077f-b6d3-47d2-94d2-c612dfbf5062",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1400,
        540
      ]
    }
  ],
  "connections": {
    "Code": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Postgres Trigger": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On clicking \"Execute Node\"": {
      "main": [
        [
          {
            "node": "Code",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}