{
  "name": "Provide real-time updates for Notion databases via webhooks with Supabase",
  "nodes": [
    {
      "id": "eaf8907e-f21e-4b78-8c80-9602156a7bcf",
      "name": "Get modified tasks",
      "type": "n8n-nodes-base.notion",
      "position": [
        -1360,
        640
      ]
    },
    {
      "id": "9a5b7738-e72a-4135-bdb6-a3f67dd7f19d",
      "name": "If not exists",
      "type": "n8n-nodes-base.if",
      "position": [
        -740,
        720
      ]
    },
    {
      "id": "f8ba6beb-76a3-4349-bb7d-88a936a0aee2",
      "name": "Get Notion Page",
      "type": "n8n-nodes-base.supabase",
      "position": [
        -940,
        720
      ]
    },
    {
      "id": "7e1cbd0d-4914-460a-9e6c-8619044c5c04",
      "name": "Compare Data Sets",
      "type": "n8n-nodes-base.code",
      "position": [
        -320,
        800
      ]
    },
    {
      "id": "a727d5e1-19de-4706-b592-0286db680bdf",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -1160,
        640
      ]
    },
    {
      "id": "1c51847c-7727-461d-bd61-4941d72dec94",
      "name": "New and Stored Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -520,
        800
      ]
    },
    {
      "id": "3ba38d65-6b0d-474a-b599-1efe96321f65",
      "name": "No Operation",
      "type": "n8n-nodes-base.noOp",
      "position": [
        540,
        840
      ]
    },
    {
      "id": "f434476e-dbb3-4dca-8198-8468f5ca26a7",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        540,
        400
      ]
    },
    {
      "id": "fae7c8fa-9641-4a79-876c-3fcc8ea9ffd8",
      "name": "FormatUpdated",
      "type": "n8n-nodes-base.set",
      "position": [
        340,
        840
      ]
    },
    {
      "id": "4b7e82c1-775a-4bc6-bf78-5cd838fe7e86",
      "name": "FormatCreated",
      "type": "n8n-nodes-base.set",
      "position": [
        340,
        660
      ]
    },
    {
      "id": "db37da51-da92-4c22-92d8-4f4d135298c0",
      "name": "Execute Workflow Trigger",
      "type": "n8n-nodes-base.executeWorkflowTrigger",
      "position": [
        -2160,
        640
      ]
    },
    {
      "id": "e7b51a5d-610d-4016-b30d-d46589304cb8",
      "name": "Push Payload",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        760,
        400
      ]
    },
    {
      "id": "8e27e2a0-b758-4df5-83e9-3a2666d28529",
      "name": "Remove empty entries",
      "type": "n8n-nodes-base.filter",
      "position": [
        340,
        400
      ]
    },
    {
      "id": "90a0e01b-1a73-428d-af77-bee1c2cd0aea",
      "name": "Any actual changes?",
      "type": "n8n-nodes-base.if",
      "position": [
        -120,
        800
      ]
    },
    {
      "id": "5368cf1c-197f-40f4-9fe0-63483e9aaafb",
      "name": "Get settings",
      "type": "n8n-nodes-base.supabase",
      "position": [
        -1580,
        640
      ]
    },
    {
      "id": "4ec2d3f5-58a7-43d3-9a1a-e1c14ab58c24",
      "name": "Store settings",
      "type": "n8n-nodes-base.supabase",
      "position": [
        -940,
        380
      ]
    },
    {
      "id": "b689f8d5-43f4-43f6-8b5f-38dc39ff360b",
      "name": "Globals",
      "type": "n8n-nodes-base.set",
      "position": [
        -1860,
        640
      ]
    },
    {
      "id": "84e7aae4-f2b0-4066-b2e0-aeec956d7e06",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1978.7948425718316,
        440
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "22b34a16-ece4-4c43-856d-f5ec4a50985f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        260
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5f855ceb-9814-4b85-be99-1f7e4b7d7a6c",
      "name": "Update Notion Page",
      "type": "n8n-nodes-base.supabase",
      "position": [
        120,
        840
      ]
    },
    {
      "id": "19c2db86-f78e-4981-9b13-abf945735b78",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1419.033821889521,
        548.5929453933181
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "39b98df9-01d5-455e-9b05-cdbc6bfc4e22",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2220,
        440
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5899b4e2-de2d-48e1-8f5c-a46a600dda74",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1629.4962995120181,
        549.3845748338927
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "37fa0220-c2a2-489a-8571-86f8d0e1d930",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1008,
        284
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f5c740ab-420e-4a97-a406-9c459508fa5b",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1205.2088811711565,
        579.9999999999999
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "7681511f-f258-4194-9a90-84dfd0a563fe",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        55.798519804808166,
        580
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3fb42609-6a90-412c-adc2-e1dd59378ab5",
      "name": "Create Notion Page",
      "type": "n8n-nodes-base.supabase",
      "position": [
        120,
        660
      ]
    },
    {
      "id": "31cd78db-466d-4311-a83d-a59d2da04671",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        286.6496556065472,
        340
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "bb720c79-e4f3-4e44-9a46-3750e70b8511",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        287.2444492680306,
        580
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "Globals": {
      "main": [
        [
          {
            "node": "Get settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Push Payload",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get settings": {
      "main": [
        [
          {
            "node": "Get modified tasks",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "No Operation": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FormatCreated": {
      "main": [
        [
          {
            "node": "No Operation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FormatUpdated": {
      "main": [
        [
          {
            "node": "No Operation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If not exists": {
      "main": [
        [
          {
            "node": "Create Notion Page",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "New and Stored Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Notion Page": {
      "main": [
        [
          {
            "node": "If not exists",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Remove empty entries",
            "type": "main",
            "index": 0
          },
          {
            "node": "Store settings",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Get Notion Page",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compare Data Sets": {
      "main": [
        [
          {
            "node": "Any actual changes?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Notion Page": {
      "main": [
        [
          {
            "node": "FormatCreated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get modified tasks": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update Notion Page": {
      "main": [
        [
          {
            "node": "FormatUpdated",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Any actual changes?": {
      "main": [
        [
          {
            "node": "Update Notion Page",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New and Stored Data": {
      "main": [
        [
          {
            "node": "Compare Data Sets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove empty entries": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Execute Workflow Trigger": {
      "main": [
        [
          {
            "node": "Globals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}