{
  "name": "Generate single-use personalized Calendly links with Google Sheets tracking & Slack alerts",
  "nodes": [
    {
      "id": "c3c09ac6-013d-4a7a-aa62-76f868baf7bc",
      "name": "📋 WORKFLOW OVERVIEW",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        368,
        -128
      ],
      "parameters": {
        "width": 820,
        "height": 620,
        "content": "## 🔗 Calendly Booking Link Generator\n\n**What this workflow does:**\n1. 🔐 Authenticates with Calendly API\n2. 📋 Gets your event types\n3. 🔗 Creates single-use booking links\n4. ✉️ Personalizes links with r"
      }
    },
    {
      "id": "5fa6844e-dd8a-4f9b-8b28-60ee68c443aa",
      "name": "⚙️ SETUP GUIDE",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1216,
        -128
      ],
      "parameters": {
        "width": 860,
        "height": 620,
        "content": "## ⚙️ Setup Instructions\n\n**Step 1: Calendly OAuth2**\n1. Go to calendly.com/integrations\n2. Click \"API & Webhooks\"\n3. Set up OAuth2 application\n4. In n8n, add Calendly OAuth2 credential\n\n**Step 2: Goo"
      }
    },
    {
      "id": "130cc077-ece1-4168-b37f-c1061ac0af77",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "position": [
        368,
        544
      ]
    },
    {
      "id": "94e36147-7595-40bb-9fcf-66c636a5d468",
      "name": "🎯 INPUT FORMAT",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -64,
        480
      ],
      "parameters": {
        "width": 344,
        "height": 240,
        "content": "## 🎯 Webhook Input\n\n**POST Body:**\n```json\n{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"event_type_uri\": \"optional\"\n}\n```\n\nIf no event_type_uri,\nuses first active type."
      }
    },
    {
      "id": "0798031a-8ff5-498a-ab6e-8e92cf0b621d",
      "name": "Set Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        592,
        544
      ]
    },
    {
      "id": "6d65c93a-0934-499e-9af7-7ca332f3ad59",
      "name": "Get Current User",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        816,
        544
      ]
    },
    {
      "id": "584b2145-6d49-4f63-bb3f-39e1fff8e2f6",
      "name": "Extract User",
      "type": "n8n-nodes-base.set",
      "position": [
        1040,
        544
      ]
    },
    {
      "id": "39688e69-141e-4053-b0ca-d2d4cf2367bc",
      "name": "Get Event Types",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1264,
        544
      ]
    },
    {
      "id": "e0ed21e2-3258-415e-b414-b7db2cf76530",
      "name": "Select Event Type",
      "type": "n8n-nodes-base.set",
      "position": [
        1488,
        544
      ]
    },
    {
      "id": "231c02e2-996d-42eb-a1a1-d6c59727a9cc",
      "name": "Create Single-Use Link",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1712,
        544
      ]
    },
    {
      "id": "e75994d1-43a7-4a2f-a446-d0b57ed91638",
      "name": "Build Personalized Link",
      "type": "n8n-nodes-base.set",
      "position": [
        1936,
        544
      ]
    },
    {
      "id": "bed3401a-0f1b-4454-9d0d-c67eb5123ea2",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        928,
        832
      ]
    },
    {
      "id": "0b033070-77b3-4430-a5b1-c1de917feb85",
      "name": "Notify via Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        1152,
        832
      ]
    },
    {
      "id": "65523d31-14fa-4af0-8053-e1167212f18b",
      "name": "Respond to Webhook",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1376,
        832
      ]
    },
    {
      "id": "0015b4fa-0244-40c2-83ad-e866999fe7f9",
      "name": "📤 RESPONSE",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2144,
        496
      ],
      "parameters": {
        "width": 396,
        "height": 268,
        "content": "## 📤 Response\n\n```json\n{\n  \"success\": true,\n  \"booking_url\": \"https://...\",\n  \"recipient\": {...},\n  \"event\": {...},\n  \"created_at\": \"...\",\n  \"expires\": \"Single-use or 90 days\"\n}\n```"
      }
    }
  ],
  "connections": {
    "Extract User": {
      "main": [
        [
          {
            "node": "Get Event Types",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Event Types": {
      "main": [
        [
          {
            "node": "Select Event Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "Set Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Current User": {
      "main": [
        [
          {
            "node": "Extract User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify via Slack": {
      "main": [
        [
          {
            "node": "Respond to Webhook",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Select Event Type": {
      "main": [
        [
          {
            "node": "Create Single-Use Link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Configuration": {
      "main": [
        [
          {
            "node": "Get Current User",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Google Sheets": {
      "main": [
        [
          {
            "node": "Notify via Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create Single-Use Link": {
      "main": [
        [
          {
            "node": "Build Personalized Link",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Personalized Link": {
      "main": [
        [
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}