{
  "name": "2-way sync Notion and Google Calendar",
  "nodes": [
    {
      "id": "3a18e9f6-997b-4e25-922c-5b109d33f081",
      "name": "Google Calendar1",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        1800,
        3440
      ]
    },
    {
      "id": "0d351d0c-372a-461a-8a3e-12f8545c04d2",
      "name": "Add GCal ID",
      "type": "n8n-nodes-base.notion",
      "position": [
        2200,
        3440
      ]
    },
    {
      "id": "81c2f871-8186-4f51-8e4b-13970429a0d4",
      "name": "No Operation, do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        640,
        3360
      ]
    },
    {
      "id": "7e0790cf-a411-443b-b8f1-65e93ef03708",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        120,
        3260
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "eb5e64fc-347f-4635-8314-a40637f88245",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -200,
        1720
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "4b8b515f-54b0-479a-9457-3f2f993a8a7d",
      "name": "Remove GCal ID2",
      "type": "n8n-nodes-base.notion",
      "position": [
        2200,
        2180
      ]
    },
    {
      "id": "1d8ecd80-98f5-4a26-b0d2-84bde02002d5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2680,
        5420
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0057f168-882c-4dad-9e32-06a8c6290b7a",
      "name": "Does it have a date?",
      "type": "n8n-nodes-base.if",
      "position": [
        420,
        1740
      ]
    },
    {
      "id": "34a74d54-b591-4281-804c-8ce14a3c2d1b",
      "name": "Does it have a time?",
      "type": "n8n-nodes-base.if",
      "position": [
        820,
        1640
      ]
    },
    {
      "id": "8601e9f4-8e83-4afb-a2ca-cbb099ad3495",
      "name": "Delete event1",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        2000,
        2180
      ]
    },
    {
      "id": "6b8fab17-323c-4c20-ae02-0693e5c639ab",
      "name": "Does it have a date?1",
      "type": "n8n-nodes-base.if",
      "position": [
        420,
        3260
      ]
    },
    {
      "id": "a0008135-c549-4b62-9b39-f817855fafb8",
      "name": "Does it have a time?1",
      "type": "n8n-nodes-base.if",
      "position": [
        640,
        3200
      ]
    },
    {
      "id": "746e3f64-0e7b-488e-853e-90fdd4966624",
      "name": "Find Task",
      "type": "n8n-nodes-base.notion",
      "position": [
        -1260,
        5660
      ]
    },
    {
      "id": "61f7b2ee-c2e2-403b-a81f-8dcab9b9144d",
      "name": "Remove GCal ID and Date",
      "type": "n8n-nodes-base.notion",
      "position": [
        -1020,
        5660
      ]
    },
    {
      "id": "23c9f058-e202-4505-9488-9702628ca42f",
      "name": "Notion",
      "type": "n8n-nodes-base.notion",
      "position": [
        -3380,
        2450
      ]
    },
    {
      "id": "278b1abc-49b7-4534-84cb-4b8c8b1d5292",
      "name": "Google Calendar3",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        1800,
        3080
      ]
    },
    {
      "id": "af8e3af6-5846-4691-a701-672087957b90",
      "name": "Google Calendar",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        1800,
        2840
      ]
    },
    {
      "id": "4c87fa06-3c70-4080-9419-c99395eef12f",
      "name": "Add GCal ID3",
      "type": "n8n-nodes-base.notion",
      "position": [
        2200,
        2840
      ]
    },
    {
      "id": "6fef88bb-db3c-46ae-a044-9d27744d4246",
      "name": "Does it have an end date?",
      "type": "n8n-nodes-base.if",
      "position": [
        960,
        2980
      ]
    },
    {
      "id": "1a758385-7911-4484-8b26-bb4a26146267",
      "name": "Add GCal ID1",
      "type": "n8n-nodes-base.notion",
      "position": [
        2200,
        3080
      ]
    },
    {
      "id": "5985e5a6-2c1c-4e59-bf92-97ff524c9704",
      "name": "Loop",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1220,
        3440
      ]
    },
    {
      "id": "832f95d9-eb18-44b7-b0bd-b50d5661e87b",
      "name": "Loop1",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1600,
        3080
      ]
    },
    {
      "id": "73722a78-5075-4a5f-99e2-b88ab726d2fb",
      "name": "Loop2",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1600,
        2840
      ]
    },
    {
      "id": "27811ab3-34d2-491d-921f-4b77795f330c",
      "name": "Loop3",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1800,
        2180
      ]
    },
    {
      "id": "10ca71a6-17a7-42ab-ab5e-ee1631c6fbba",
      "name": "Sticky Note11",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -780,
        2418
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "bc3a3405-e4e7-4bd1-8cab-b3d7680888c4",
      "name": "Creates defaultEndDate with 1h duration",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        -700,
        2580
      ]
    },
    {
      "id": "dc31f101-68f2-4578-8fba-a028264ef1d2",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3760,
        2220
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "2586e103-9158-4632-aa93-e44fac8f75f0",
      "name": "Delete event2",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        2200,
        960
      ]
    },
    {
      "id": "650c353d-41c8-4049-aa07-870359d71e7f",
      "name": "Loop4",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        2000,
        960
      ]
    },
    {
      "id": "3b5eb5d1-281a-4c9d-8017-3bd975262e3e",
      "name": "Notion1",
      "type": "n8n-nodes-base.notion",
      "position": [
        -3380,
        2610
      ]
    },
    {
      "id": "0fa097f3-7496-4f52-adeb-2d7af2933e58",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        -3080,
        2530
      ]
    },
    {
      "id": "f101efdc-f254-4446-bb5b-51c950fdda83",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2420,
        2160
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a2204aef-1a1d-4f7d-ab75-0dabaee7559a",
      "name": "Does it have an end date?1",
      "type": "n8n-nodes-base.if",
      "position": [
        1100,
        1440
      ]
    },
    {
      "id": "32e33106-38fd-45d4-a815-2b2ab65b614e",
      "name": "Does it have an end date?2",
      "type": "n8n-nodes-base.if",
      "position": [
        960,
        3580
      ]
    },
    {
      "id": "31ed9b79-47ad-4ddc-a364-83694c2acc60",
      "name": "Google Calendar2",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        1800,
        3680
      ]
    },
    {
      "id": "7d3369b8-2e40-4e23-8a89-8f318face8d4",
      "name": "Add GCal ID2",
      "type": "n8n-nodes-base.notion",
      "position": [
        2200,
        3680
      ]
    },
    {
      "id": "28629dc4-4bcc-4f2c-b58c-99385ad80d79",
      "name": "Sticky Note18",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        3700
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "ae036e35-64de-427e-9316-1e60e20bf339",
      "name": "Loop5",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        1600,
        3680
      ]
    },
    {
      "id": "7aed88e8-8430-4936-b7f9-553c4e30cae0",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        3460
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5f071fb4-4b1c-4a11-82ce-7054944dbb09",
      "name": "Sticky Note20",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        2840
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "9b6b7eb5-48cb-45c5-8e20-afcdcd766394",
      "name": "Sticky Note21",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        3100
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "eb9a7ba0-f5c4-40de-bf7d-4b6e733a0c24",
      "name": "Sticky Note26",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        1920
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "bf9bd2a4-5e42-465d-a3c3-78a5f49a4abe",
      "name": "Sticky Note27",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        1720
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "dd9e16eb-7270-48d5-970c-34fb75bff68e",
      "name": "Sticky Note28",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        1300
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "b704d95d-7614-4f86-8866-48e1e6a04039",
      "name": "Sticky Note29",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        1500
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "69e20226-25e5-4e17-90cf-fd9ac6bce06a",
      "name": "Sticky Note31",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        960
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "c9a8587c-0cb4-4642-b5f1-978a91e87125",
      "name": "GCal_ID exists in Notion?",
      "type": "n8n-nodes-base.if",
      "position": [
        -400,
        2580
      ]
    },
    {
      "id": "ededbc5d-9737-43ef-8abd-887e4fd7b5cf",
      "name": "Is the page deleted?",
      "type": "n8n-nodes-base.if",
      "position": [
        120,
        1720
      ]
    },
    {
      "id": "ec73842a-8bee-4879-9e72-f039b0dadb8c",
      "name": "Does it have an end date?3",
      "type": "n8n-nodes-base.if",
      "position": [
        1100,
        1740
      ]
    },
    {
      "id": "54e7ca30-96e5-40cc-82e3-5a56b7014dfe",
      "name": "Sticky Note33",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2400,
        2180
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "2266b304-613e-4df0-987e-59a646a2b681",
      "name": "Add 1 day to end date",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        1600,
        1720
      ]
    },
    {
      "id": "7b96172c-353f-4b25-9742-f41940abb3e8",
      "name": "Format date",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        1800,
        1720
      ]
    },
    {
      "id": "27ca6e66-45ec-4a1d-ae01-37b229528597",
      "name": "Update to All Day event",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        1720
      ]
    },
    {
      "id": "8641435e-564b-4be4-bbf2-3b6ee67e7333",
      "name": "Update to All Day event2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        1920
      ]
    },
    {
      "id": "d11b3251-947c-4fbc-a78f-772f2b0e939b",
      "name": "Update dateTime event1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        1480
      ]
    },
    {
      "id": "e585be3b-4a35-4456-9d4a-195255396d2b",
      "name": "Add 1 day to end date1",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        1420,
        3440
      ]
    },
    {
      "id": "200f2701-5598-4285-a5e5-4c203e2d5c42",
      "name": "Format date1",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        1600,
        3440
      ]
    },
    {
      "id": "6c39c38d-dfa4-4dc3-ad66-84e2f72dc6c3",
      "name": "Page edited by a user?",
      "type": "n8n-nodes-base.if",
      "position": [
        -1220,
        2600
      ]
    },
    {
      "id": "637a1dc7-291f-41a9-90b8-c3cd6a08e2c5",
      "name": "Do nothing",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -980,
        2780
      ]
    },
    {
      "id": "13b5c225-1ed5-453e-b9b7-febaf8da0e9e",
      "name": "Get future events + yesterday",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        -3340,
        4340
      ]
    },
    {
      "id": "d04d3f52-1674-4f5e-99cb-97674bb36eba",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2440,
        2060
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "5da34cb8-fded-4ac0-a08d-55ee6ed4d49a",
      "name": "Sticky Note10",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2420,
        4120
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "0acbdf5e-9293-4384-b395-ce50708250b9",
      "name": "Calculate timeDifference between Google's updated_at  and our own updated_at fields",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        -780,
        4860
      ]
    },
    {
      "id": "d23576c0-9fb7-432c-ae4e-bb715b645c44",
      "name": "Only events that were edited 2s after the last update",
      "type": "n8n-nodes-base.filter",
      "position": [
        -580,
        4860
      ]
    },
    {
      "id": "142cfb96-24d2-4441-bd24-1ea576688a81",
      "name": "Does it have a time?2",
      "type": "n8n-nodes-base.if",
      "position": [
        -360,
        4860
      ]
    },
    {
      "id": "b45ffde6-4def-4bc5-b2d2-0caabaefab64",
      "name": "Subtract 1 day from end_date",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        -140,
        4960
      ]
    },
    {
      "id": "126de2b4-2f3f-4861-9000-8fecf5506498",
      "name": "Is it a new event?",
      "type": "n8n-nodes-base.if",
      "position": [
        -1040,
        4700
      ]
    },
    {
      "id": "95ec58b5-c2b1-4f29-85c1-a761ba727184",
      "name": "Format end_date",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        60,
        4960
      ]
    },
    {
      "id": "9c46514a-5fbd-49be-b7ed-1af55b68e8ac",
      "name": "Add extendedProperties to Google event",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2200,
        1300
      ]
    },
    {
      "id": "10e06a7b-1383-41ef-b3d5-1f3cfd908c48",
      "name": "Add extendedProperties to Google event1",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2200,
        1480
      ]
    },
    {
      "id": "ffa0be20-da4c-41c6-a9ae-3634b416e87c",
      "name": "Add extendedProperties to Google event2",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2200,
        1720
      ]
    },
    {
      "id": "64ca51a5-07fa-45e1-8a54-6ead4509c442",
      "name": "Add extendedProperties to Google event3",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2200,
        1920
      ]
    },
    {
      "id": "59a92520-de64-49b8-8578-d270b8fc4cd9",
      "name": "Add extendedProperties to Google event4",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        2840
      ]
    },
    {
      "id": "ac606d7f-a126-4d88-a10f-9b619dec16c0",
      "name": "Add extendedProperties to Google event5",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        3080
      ]
    },
    {
      "id": "d967e83d-5628-48b2-b2b7-4d0dfae91ebe",
      "name": "Add extendedProperties to Google event6",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        3440
      ]
    },
    {
      "id": "91fe2915-76fa-43b0-b2de-3dcdc1631a13",
      "name": "Add extendedProperties to Google event7",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        3680
      ]
    },
    {
      "id": "dd406eca-e716-4b3e-b2a7-570413de04d8",
      "name": "Does it really have an end_date?",
      "type": "n8n-nodes-base.if",
      "position": [
        260,
        4960
      ]
    },
    {
      "id": "16a27549-2591-4c24-bab5-2bcb501a9020",
      "name": "Does it have a time?3",
      "type": "n8n-nodes-base.if",
      "position": [
        -800,
        4360
      ]
    },
    {
      "id": "ea743592-3f1a-472e-959f-9e0f290617d5",
      "name": "Subtract 1 day from end_date1",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        -580,
        4460
      ]
    },
    {
      "id": "47e174f1-dd50-4da5-997b-4c0d2ed4dbc4",
      "name": "Format end_date1",
      "type": "n8n-nodes-base.dateTime",
      "position": [
        -380,
        4460
      ]
    },
    {
      "id": "bfdea8a2-0449-4465-877b-2a65a622e264",
      "name": "Does it really have an end_date?1",
      "type": "n8n-nodes-base.if",
      "position": [
        -180,
        4460
      ]
    },
    {
      "id": "8177c81d-1554-4a54-8c59-e0e63477ca5e",
      "name": "Create page1",
      "type": "n8n-nodes-base.notion",
      "position": [
        40,
        4360
      ]
    },
    {
      "id": "ccae88d6-d478-46ce-843c-ad067b7e50c5",
      "name": "Create page2",
      "type": "n8n-nodes-base.notion",
      "position": [
        40,
        4560
      ]
    },
    {
      "id": "cd8d6a07-8d04-49ed-af10-642183aa7890",
      "name": "Add extendedProperties to Google event8",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -380,
        4260
      ]
    },
    {
      "id": "40beec9f-60e5-4057-abd3-1aae9f9da8c3",
      "name": "Add extendedProperties to Google event9",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        4360
      ]
    },
    {
      "id": "e03cf1b8-ab0e-4345-afc3-f191b0e9ca1f",
      "name": "Add extendedProperties to Google event10",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        4560
      ]
    },
    {
      "id": "21b60a3c-3c5b-4910-96a9-955e8898c159",
      "name": "Globals",
      "type": "n8n-nodes-base.set",
      "position": [
        -1800,
        2600
      ]
    },
    {
      "id": "ffe2583f-fa93-4cb0-a736-fd4efc6c233d",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1940,
        1860
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "6d30ab31-321b-489e-9009-f448b37e912e",
      "name": "Set the current database and calendar IDs",
      "type": "n8n-nodes-base.code",
      "position": [
        -1480,
        2600
      ]
    },
    {
      "id": "d82a6ea3-a358-48eb-8b82-e34419d4ea9a",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1900,
        4500
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "2afa29f9-a466-422e-b696-8a71ea5a9b68",
      "name": "Globals1",
      "type": "n8n-nodes-base.set",
      "position": [
        -1800,
        4700
      ]
    },
    {
      "id": "cf4d240c-7520-4697-a479-b9c3721bcd20",
      "name": "Sticky Note14",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1900,
        5460
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "1ab3989f-b59a-4d11-b09b-b4aca8561651",
      "name": "Globals2",
      "type": "n8n-nodes-base.set",
      "position": [
        -1800,
        5660
      ]
    },
    {
      "id": "271285ea-ddfa-4248-b1ac-b16100ec7db3",
      "name": "Set the current database and calendar IDs2",
      "type": "n8n-nodes-base.code",
      "position": [
        -1500,
        5660
      ]
    },
    {
      "id": "6954bf0a-8e77-4c20-86e7-b54984c1f6a8",
      "name": "Sticky Note16",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3440,
        4220
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "7e769718-d0d7-4377-9949-12296514676a",
      "name": "Sticky Note17",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2440,
        4220
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "f15e0a5d-f477-4041-b820-06e1810b76e4",
      "name": "Sticky Note34",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2400,
        5200
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "3bf2f095-1a25-465b-a17d-a0a8caf4589c",
      "name": "Event Updated",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        -2240,
        4340
      ]
    },
    {
      "id": "810ed24a-34bf-4051-bffa-06b31184c0a7",
      "name": "When clicking \"Test workflow\"",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -3700,
        2530
      ]
    },
    {
      "id": "0e609ffa-048b-46aa-945f-ca68bc7e3644",
      "name": "Event Created",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        -2400,
        4340
      ]
    },
    {
      "id": "fc35dce6-ab0d-4fd3-b95a-3a0244bcf2ea",
      "name": "Sticky Note35",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2660,
        4340
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "d104afa4-af2e-4cda-b586-021c6a741a0c",
      "name": "Update page1 - continue on error",
      "type": "n8n-nodes-base.notion",
      "position": [
        480,
        5060
      ]
    },
    {
      "id": "e7000c4d-92e0-488c-a0af-4352341836fe",
      "name": "Sticky Note36",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        660,
        4880
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "e9f27683-71ad-4b29-a3b1-b1d782ea7458",
      "name": "Find deleted pages1",
      "type": "n8n-nodes-base.filter",
      "position": [
        -580,
        3300
      ]
    },
    {
      "id": "8a1a80d3-b6cc-492e-affe-04b1fb899cee",
      "name": "Delete event3",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        -400,
        3300
      ]
    },
    {
      "id": "676b56d5-496d-4860-8b26-a30656222561",
      "name": "Sticky Note38",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2420,
        3180
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "a325c4e9-95ce-4a08-8d18-746bdebd38f3",
      "name": "Get future events1",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        -1120,
        3300
      ]
    },
    {
      "id": "6f62f364-e3c7-47f7-9379-4366dc6ec07f",
      "name": "Find related pages1",
      "type": "n8n-nodes-base.notion",
      "position": [
        -760,
        3300
      ]
    },
    {
      "id": "f43c8dfe-bbae-4075-a378-cbfbff7e8f1f",
      "name": "extendedProperties exist?",
      "type": "n8n-nodes-base.filter",
      "position": [
        -940,
        3300
      ]
    },
    {
      "id": "587ce95b-e1f9-41a1-bde4-ae7f3e2ef901",
      "name": "Set the current database and calendar IDs1",
      "type": "n8n-nodes-base.code",
      "position": [
        -1500,
        4700
      ]
    },
    {
      "id": "656cd25f-d4bb-4d66-87ac-fbe34b1d5f48",
      "name": "Update page2 - continue on error",
      "type": "n8n-nodes-base.notion",
      "position": [
        -140,
        4760
      ]
    },
    {
      "id": "3b40300f-09ea-44c0-b8c0-12c93da3c007",
      "name": "Update page - continue on error",
      "type": "n8n-nodes-base.notion",
      "position": [
        480,
        4880
      ]
    },
    {
      "id": "2d0903c8-4809-42ea-a7cb-01c494173d6a",
      "name": "Create page",
      "type": "n8n-nodes-base.notion",
      "position": [
        -580,
        4260
      ]
    },
    {
      "id": "130dc415-dba1-46f7-a15b-fa42cc87146d",
      "name": "Update dateTime event",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2000,
        1300
      ]
    },
    {
      "id": "388ee14d-8919-4776-948f-f859efdb2711",
      "name": "Set some fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -980,
        2580
      ]
    },
    {
      "id": "5df14c71-295d-40e5-996c-2b75f20c16f5",
      "name": "Page Updated - Meetings",
      "type": "n8n-nodes-base.notionTrigger",
      "position": [
        -2340,
        2480
      ]
    },
    {
      "id": "79bd48dc-f7c6-4106-ac93-3f599ae59a01",
      "name": "Page Updated - Tasks",
      "type": "n8n-nodes-base.notionTrigger",
      "position": [
        -2340,
        2300
      ]
    },
    {
      "id": "308d2ed2-ccb3-4f40-84f6-b1a733837a4b",
      "name": "Event Updated1",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        -2240,
        4540
      ]
    },
    {
      "id": "a6acb3a9-a597-40c7-9637-460e9eb90f5f",
      "name": "Event Created1",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        -2400,
        4540
      ]
    },
    {
      "id": "7c5e7a47-a99e-4296-b156-df38ca99fe4b",
      "name": "Sticky Note37",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2660,
        4540
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "fddbb482-473b-4746-a1bf-87131ad7326b",
      "name": "Deleted - Tasks",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        -2320,
        5340
      ]
    },
    {
      "id": "1cd44f67-489a-4810-bc7a-5b80cc76fdfe",
      "name": "Deleted - Meetings",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        -2320,
        5520
      ]
    },
    {
      "id": "2e3003b9-11eb-4fbc-bfea-83e21073d43a",
      "name": "Globals3",
      "type": "n8n-nodes-base.set",
      "position": [
        -1800,
        3300
      ]
    },
    {
      "id": "97adf269-1496-4714-a013-172bc244ae19",
      "name": "Split fields",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -1480,
        3300
      ]
    },
    {
      "id": "aec3c889-a455-4572-840c-9641bfea3283",
      "name": "Only calendarId",
      "type": "n8n-nodes-base.filter",
      "position": [
        -1300,
        3300
      ]
    },
    {
      "id": "f09c0a88-e976-4ba0-b715-a8feb71fe39a",
      "name": "Sticky Note41",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1900,
        3100
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "81b1a8dc-a226-4fea-933d-545c093c701b",
      "name": "Every 3min",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2080,
        3300
      ]
    }
  ],
  "connections": {
    "Loop": {
      "main": [
        null,
        [
          {
            "node": "Add 1 day to end date1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop1": {
      "main": [
        null,
        [
          {
            "node": "Google Calendar3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop2": {
      "main": [
        null,
        [
          {
            "node": "Google Calendar",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop3": {
      "main": [
        null,
        [
          {
            "node": "Delete event1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop4": {
      "main": [
        null,
        [
          {
            "node": "Delete event2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop5": {
      "main": [
        null,
        [
          {
            "node": "Google Calendar2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Globals": {
      "main": [
        [
          {
            "node": "Set the current database and calendar IDs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notion1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Globals1": {
      "main": [
        [
          {
            "node": "Set the current database and calendar IDs1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Globals2": {
      "main": [
        [
          {
            "node": "Set the current database and calendar IDs2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Globals3": {
      "main": [
        [
          {
            "node": "Split fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find Task": {
      "main": [
        [
          {
            "node": "Remove GCal ID and Date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Every 3min": {
      "main": [
        [
          {
            "node": "Globals3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add GCal ID": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create page": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event8",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format date": {
      "main": [
        [
          {
            "node": "Update to All Day event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add GCal ID1": {
      "main": [
        [
          {
            "node": "Loop1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add GCal ID2": {
      "main": [
        [
          {
            "node": "Loop5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add GCal ID3": {
      "main": [
        [
          {
            "node": "Loop2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create page1": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event9",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create page2": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event10",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format date1": {
      "main": [
        [
          {
            "node": "Google Calendar1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split fields": {
      "main": [
        [
          {
            "node": "Only calendarId",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete event1": {
      "main": [
        [
          {
            "node": "Remove GCal ID2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Delete event2": {
      "main": [
        [
          {
            "node": "Loop4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Event Created": {
      "main": [
        [
          {
            "node": "Globals1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Event Updated": {
      "main": [
        [
          {
            "node": "Globals1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Event Created1": {
      "main": [
        [
          {
            "node": "Globals1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Event Updated1": {
      "main": [
        [
          {
            "node": "Globals1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deleted - Tasks": {
      "main": [
        [
          {
            "node": "Globals2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format end_date": {
      "main": [
        [
          {
            "node": "Does it really have an end_date?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Only calendarId": {
      "main": [
        [
          {
            "node": "Get future events1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove GCal ID2": {
      "main": [
        [
          {
            "node": "Loop3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set some fields": {
      "main": [
        [
          {
            "node": "Creates defaultEndDate with 1h duration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format end_date1": {
      "main": [
        [
          {
            "node": "Does it really have an end_date?1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar1": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event6",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar2": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event7",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar3": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deleted - Meetings": {
      "main": [
        [
          {
            "node": "Globals2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get future events1": {
      "main": [
        [
          {
            "node": "extendedProperties exist?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is it a new event?": {
      "main": [
        [
          {
            "node": "Does it have a time?3",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Calculate timeDifference between Google's updated_at  and our own updated_at fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find deleted pages1": {
      "main": [
        [
          {
            "node": "Delete event3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Find related pages1": {
      "main": [
        [
          {
            "node": "Find deleted pages1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it have a date?": {
      "main": [
        [
          {
            "node": "Does it have a time?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it have a time?": {
      "main": [
        [
          {
            "node": "Does it have an end date?1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Does it have an end date?3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is the page deleted?": {
      "main": [
        [
          {
            "node": "Loop4",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Does it have a date?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Page Updated - Tasks": {
      "main": [
        [
          {
            "node": "Globals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add 1 day to end date": {
      "main": [
        [
          {
            "node": "Format date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it have a date?1": {
      "main": [
        [
          {
            "node": "Does it have a time?1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "No Operation, do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it have a time?1": {
      "main": [
        [
          {
            "node": "Does it have an end date?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Does it have an end date?2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it have a time?2": {
      "main": [
        [
          {
            "node": "Update page2 - continue on error",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Subtract 1 day from end_date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it have a time?3": {
      "main": [
        [
          {
            "node": "Create page",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Subtract 1 day from end_date1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update dateTime event": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add 1 day to end date1": {
      "main": [
        [
          {
            "node": "Format date1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Page edited by a user?": {
      "main": [
        [
          {
            "node": "Set some fields",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Do nothing",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update dateTime event1": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Page Updated - Meetings": {
      "main": [
        [
          {
            "node": "Globals",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update to All Day event": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update to All Day event2": {
      "main": [
        [
          {
            "node": "Add extendedProperties to Google event3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it have an end date?": {
      "main": [
        [
          {
            "node": "Loop2",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "GCal_ID exists in Notion?": {
      "main": [
        [
          {
            "node": "Is the page deleted?",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Does it have a date?1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "extendedProperties exist?": {
      "main": [
        [
          {
            "node": "Find related pages1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it have an end date?1": {
      "main": [
        [
          {
            "node": "Update dateTime event",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update dateTime event1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it have an end date?2": {
      "main": [
        [
          {
            "node": "Loop",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Loop5",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it have an end date?3": {
      "main": [
        [
          {
            "node": "Add 1 day to end date",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update to All Day event2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Subtract 1 day from end_date": {
      "main": [
        [
          {
            "node": "Format end_date",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Subtract 1 day from end_date1": {
      "main": [
        [
          {
            "node": "Format end_date1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \"Test workflow\"": {
      "main": [
        [
          {
            "node": "Notion1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notion",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it really have an end_date?": {
      "main": [
        [
          {
            "node": "Update page - continue on error",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update page1 - continue on error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Does it really have an end_date?1": {
      "main": [
        [
          {
            "node": "Create page1",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Create page2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add extendedProperties to Google event4": {
      "main": [
        [
          {
            "node": "Add GCal ID3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add extendedProperties to Google event5": {
      "main": [
        [
          {
            "node": "Add GCal ID1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add extendedProperties to Google event6": {
      "main": [
        [
          {
            "node": "Add GCal ID",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Add extendedProperties to Google event7": {
      "main": [
        [
          {
            "node": "Add GCal ID2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Creates defaultEndDate with 1h duration": {
      "main": [
        [
          {
            "node": "GCal_ID exists in Notion?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the current database and calendar IDs": {
      "main": [
        [
          {
            "node": "Page edited by a user?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the current database and calendar IDs1": {
      "main": [
        [
          {
            "node": "Is it a new event?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set the current database and calendar IDs2": {
      "main": [
        [
          {
            "node": "Find Task",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Only events that were edited 2s after the last update": {
      "main": [
        [
          {
            "node": "Does it have a time?2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate timeDifference between Google's updated_at  and our own updated_at fields": {
      "main": [
        [
          {
            "node": "Only events that were edited 2s after the last update",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}