{
  "name": "Sync Google Calendar events to Google Sheets with Slack notifications",
  "nodes": [
    {
      "id": "0cc24318-7afd-4185-82d0-8ad18aee3d27",
      "name": "New Event Trigger",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        -2608,
        -608
      ]
    },
    {
      "id": "2e7415e5-98bf-48c9-b221-b88bcd420653",
      "name": "Updated Event Trigger",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        -2608,
        -400
      ]
    },
    {
      "id": "a55feb7c-f8ce-4e25-aa7c-6e83acc73081",
      "name": "Daily Summary Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2608,
        96
      ]
    },
    {
      "id": "f4b8ba3b-55eb-4145-80b0-c83871d61d5b",
      "name": "Process Event",
      "type": "n8n-nodes-base.code",
      "position": [
        -2304,
        -496
      ]
    },
    {
      "id": "198eb6e3-6947-4d93-94c8-d331866066f2",
      "name": "Is Canceled?",
      "type": "n8n-nodes-base.if",
      "position": [
        -2064,
        -496
      ]
    },
    {
      "id": "ca7dc61a-f224-4302-988e-a8b0d5bce949",
      "name": "Log Event",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1760,
        -608
      ]
    },
    {
      "id": "392f3ba6-9c24-437e-9b20-2cf184318c7d",
      "name": "Log Cancellation",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1760,
        -400
      ]
    },
    {
      "id": "3a608d14-fb51-4ec6-abdf-4e76fe80fc66",
      "name": "Slack - New Event",
      "type": "n8n-nodes-base.slack",
      "position": [
        -1520,
        -608
      ]
    },
    {
      "id": "c3e63763-51b1-4113-9424-16bebbd9da93",
      "name": "Slack - Cancellation",
      "type": "n8n-nodes-base.slack",
      "position": [
        -1520,
        -400
      ]
    },
    {
      "id": "0718fe64-ce83-4344-a2b7-e7d618825590",
      "name": "Has Attendees?",
      "type": "n8n-nodes-base.if",
      "position": [
        -1264,
        -608
      ]
    },
    {
      "id": "e5009348-bc88-4675-90e4-a37a916f8052",
      "name": "Prepare Confirmation Email",
      "type": "n8n-nodes-base.code",
      "position": [
        -960,
        -624
      ]
    },
    {
      "id": "7c7bc8dd-205f-470c-89cd-24978427af49",
      "name": "Send Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -720,
        -624
      ]
    },
    {
      "id": "d1b987ce-4146-4193-a9ab-c441b1b3419d",
      "name": "Get Today Events",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        -2320,
        96
      ]
    },
    {
      "id": "cef60c0c-d3ca-4729-8c19-0089f03f06ad",
      "name": "Calculate Statistics",
      "type": "n8n-nodes-base.code",
      "position": [
        -2080,
        96
      ]
    },
    {
      "id": "6c631cca-a4de-412d-9bd5-c8b2e111a82f",
      "name": "Slack - Daily Summary",
      "type": "n8n-nodes-base.slack",
      "position": [
        -1808,
        96
      ]
    },
    {
      "id": "1c5e480f-0076-4007-bd82-96ee29af4b81",
      "name": "Log Statistics",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1568,
        96
      ]
    },
    {
      "id": "dcaf1c9c-34a3-4f8f-a561-5fab20a2fe0a",
      "name": "Error Trigger",
      "type": "n8n-nodes-base.errorTrigger",
      "position": [
        -2624,
        448
      ]
    },
    {
      "id": "78e60ff2-7e8c-429d-b6eb-745e3e26475f",
      "name": "Format Error",
      "type": "n8n-nodes-base.code",
      "position": [
        -2336,
        448
      ]
    },
    {
      "id": "5a965d16-af8a-4157-969e-ccec56c5238b",
      "name": "Slack - Error Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        -2096,
        448
      ]
    },
    {
      "id": "bf7ba5a8-8aab-469f-8586-631894568ace",
      "name": "Done - Event",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -960,
        -416
      ]
    },
    {
      "id": "422125df-5c53-4b3d-83e1-d86f28937e9b",
      "name": "Done - Cancellation",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -1264,
        -400
      ]
    },
    {
      "id": "345927ff-e680-4c43-a47c-23217bf9bf93",
      "name": "Done - Summary",
      "type": "n8n-nodes-base.noOp",
      "position": [
        -1312,
        96
      ]
    },
    {
      "id": "e604476b-4bfd-442c-be19-f91f79eaab5f",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3200,
        -816
      ],
      "parameters": {
        "width": 440,
        "height": 664,
        "content": "## Sync Google Calendar events to Sheets with Slack notifications\n\nAutomatically track all calendar events, log them to Google Sheets, and send Slack notifications.\n\n### How it works\n\n1. **Monitor** -"
      }
    },
    {
      "id": "3f3e0e22-b5f1-43c5-a860-a0f2b696d4a8",
      "name": "Step 1 Calendar Triggers",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2624,
        -816
      ],
      "parameters": {
        "width": 280,
        "height": 650,
        "content": "## Step 1: Calendar Triggers\n\n**What happens here:**\n- New event trigger\n- Updated event trigger\n- Monitors your calendar"
      }
    },
    {
      "id": "bb40d8be-7657-4750-82a8-97f2762fe561",
      "name": "Step 2 Event Processing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2320,
        -816
      ],
      "parameters": {
        "width": 520,
        "height": 650,
        "content": "## Step 2: Event Processing\n\n**What happens here:**\n- Extract event details\n- Check if cancelled\n- Route accordingly"
      }
    },
    {
      "id": "f5edd03e-cd96-4779-a57a-9c54bf581722",
      "name": "Step 3 Logging",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1776,
        -816
      ],
      "parameters": {
        "width": 696,
        "height": 650,
        "content": "## Step 3: Logging & Alerts\n\n**What happens here:**\n- Log to Sheets\n- Slack notifications\n- Track changes"
      }
    },
    {
      "id": "a931e3ec-4411-4e27-914d-fdcb229585dc",
      "name": "Step 4 Email",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1024,
        -816
      ],
      "parameters": {
        "width": 520,
        "height": 650,
        "content": "## Step 4: Confirmation Email\n\n**What happens here:**\n- Prepare email\n- Send to attendees\n- Confirmation flow"
      }
    },
    {
      "id": "87d6cbad-0be6-4ea5-a94f-9c7e8adfcef9",
      "name": "Step 5 Daily Summary",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2656,
        -96
      ],
      "parameters": {
        "width": 1540,
        "height": 352,
        "content": "## Step 5: Daily Summary\n\n**What happens here:**\n- 8 AM trigger\n- Calculate statistics\n- Slack report"
      }
    },
    {
      "id": "b9f3c06d-220f-44ea-8200-fcd231b4a142",
      "name": "Step 6 Error Handling",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2656,
        288
      ],
      "parameters": {
        "width": 1552,
        "height": 320,
        "content": "## Step 6: Error Handling\n\n**What happens here:**\n- Catch errors\n- Format details\n- Alert #errors"
      }
    }
  ],
  "connections": {
    "Log Event": {
      "main": [
        [
          {
            "node": "Slack - New Event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Email": {
      "main": [
        [
          {
            "node": "Done - Event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Format Error": {
      "main": [
        [
          {
            "node": "Slack - Error Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Canceled?": {
      "main": [
        [
          {
            "node": "Log Cancellation",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Log Event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Error Trigger": {
      "main": [
        [
          {
            "node": "Format Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Event": {
      "main": [
        [
          {
            "node": "Is Canceled?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Has Attendees?": {
      "main": [
        [
          {
            "node": "Prepare Confirmation Email",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Done - Event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Statistics": {
      "main": [
        [
          {
            "node": "Done - Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Today Events": {
      "main": [
        [
          {
            "node": "Calculate Statistics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Cancellation": {
      "main": [
        [
          {
            "node": "Slack - Cancellation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Event Trigger": {
      "main": [
        [
          {
            "node": "Process Event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack - New Event": {
      "main": [
        [
          {
            "node": "Has Attendees?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Statistics": {
      "main": [
        [
          {
            "node": "Slack - Daily Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack - Cancellation": {
      "main": [
        [
          {
            "node": "Done - Cancellation",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Daily Summary Trigger": {
      "main": [
        [
          {
            "node": "Get Today Events",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Slack - Daily Summary": {
      "main": [
        [
          {
            "node": "Log Statistics",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Updated Event Trigger": {
      "main": [
        [
          {
            "node": "Process Event",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Confirmation Email": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}