{
  "name": "Speed-to-Lead Responder",
  "nodes": [
    {
      "parameters": {
        "formTitle": "Request service",
        "formDescription": "Tell us what you need and we will text you back in under a minute.",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Full name",
              "fieldName": "name",
              "requiredField": true
            },
            {
              "fieldLabel": "Mobile number",
              "fieldName": "phone",
              "placeholder": "+1 555 123 4567",
              "requiredField": true
            },
            {
              "fieldLabel": "Email",
              "fieldType": "email",
              "fieldName": "email"
            },
            {
              "fieldLabel": "What do you need?",
              "fieldType": "dropdown",
              "fieldName": "service",
              "fieldOptions": {
                "values": [
                  {
                    "option": "AC repair"
                  },
                  {
                    "option": "Furnace repair"
                  },
                  {
                    "option": "New system quote"
                  },
                  {
                    "option": "Maintenance plan"
                  },
                  {
                    "option": "Something else"
                  }
                ]
              },
              "requiredField": true
            },
            {
              "fieldLabel": "ZIP code",
              "fieldName": "zip"
            },
            {
              "fieldLabel": "Anything we should know?",
              "fieldType": "textarea",
              "fieldName": "details"
            }
          ]
        },
        "options": {
          "appendAttribution": false,
          "buttonLabel": "Send request"
        }
      },
      "id": "4d510e9f-20ee-4980-8d12-823bcceb2a5b",
      "name": "Demo Lead Form",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.6,
      "position": [
        0,
        96
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "dc1",
              "name": "business_name",
              "value": "={{ $json.body?.client?.business_name || \"Summit Comfort HVAC\" }}",
              "type": "string"
            },
            {
              "id": "dc2",
              "name": "trade",
              "value": "={{ $json.body?.client?.trade || \"HVAC\" }}",
              "type": "string"
            },
            {
              "id": "dc3",
              "name": "city",
              "value": "={{ $json.body?.client?.city || \"Denver, CO\" }}",
              "type": "string"
            },
            {
              "id": "dc4",
              "name": "owner_name",
              "value": "={{ $json.body?.client?.owner_name || \"Mike\" }}",
              "type": "string"
            },
            {
              "id": "dc5",
              "name": "owner_email",
              "value": "owner@example.com",
              "type": "string"
            },
            {
              "id": "dc6",
              "name": "owner_phone",
              "value": "+15550000000",
              "type": "string"
            },
            {
              "id": "dc7",
              "name": "twilio_from",
              "value": "+15550000001",
              "type": "string"
            },
            {
              "id": "dc8",
              "name": "hours",
              "value": "Mon-Fri 7am-6pm, emergency 24/7",
              "type": "string"
            },
            {
              "id": "dc9",
              "name": "booking_link",
              "value": "https://cal.com/your-business/15min",
              "type": "string"
            },
            {
              "id": "dc10",
              "name": "nudge_wait_minutes",
              "value": 10,
              "type": "number"
            }
          ]
        },
        "includeOtherFields": true,
        "options": {}
      },
      "id": "51d1f0a4-6fa9-4f10-9776-5a043704e836",
      "name": "DEMO CLIENT",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        272,
        320
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "n1",
              "name": "lead_name",
              "value": "={{ ($json.body?.name ?? $json.name ?? $json.full_name ?? \"there\").toString().trim() }}",
              "type": "string"
            },
            {
              "id": "n2",
              "name": "first_name",
              "value": "={{ ($json.body?.name ?? $json.name ?? \"there\").toString().trim().split(\" \")[0] }}",
              "type": "string"
            },
            {
              "id": "n3",
              "name": "phone",
              "value": "={{ ($json.body?.phone ?? $json.phone ?? $json.phone_number ?? \"\").toString().replace(/[^0-9+]/g, \"\") }}",
              "type": "string"
            },
            {
              "id": "n4",
              "name": "email",
              "value": "={{ ($json.body?.email ?? $json.email ?? \"\").toString().trim().toLowerCase() }}",
              "type": "string"
            },
            {
              "id": "n5",
              "name": "service",
              "value": "={{ $json.body?.service ?? $json.service ?? \"service\" }}",
              "type": "string"
            },
            {
              "id": "n6",
              "name": "zip",
              "value": "={{ ($json.body?.zip ?? $json.zip ?? \"\").toString() }}",
              "type": "string"
            },
            {
              "id": "n7",
              "name": "details",
              "value": "={{ $json.body?.details ?? $json.details ?? \"\" }}",
              "type": "string"
            },
            {
              "id": "n8",
              "name": "source",
              "value": "={{ $json.body?.source ?? ($json.formMode ? \"website_form\" : \"webhook\") }}",
              "type": "string"
            },
            {
              "id": "n9",
              "name": "received_at",
              "value": "={{ $now.toISO() }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "fd71dcb7-dc5f-4970-9d04-105217d24a1b",
      "name": "Normalize Lead",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        496,
        320
      ]
    },
    {
      "parameters": {
        "from": "={{ $(\"DEMO CLIENT\").item.json.twilio_from }}",
        "to": "={{ $json.phone }}",
        "message": "={{ $json.sms_body }}",
        "options": {}
      },
      "id": "b2ebdcc9-c2dd-4b9b-b8c9-87637a26b166",
      "name": "Text the Lead",
      "type": "n8n-nodes-base.twilio",
      "typeVersion": 1,
      "position": [
        1328,
        128
      ],
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "dataTableId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_DATA_TABLE_ID",
          "cachedResultName": "speed_to_lead_leads"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "business_name": "={{ $(\"DEMO CLIENT\").item.json.business_name }}",
            "lead_name": "={{ $(\"Build Messages\").item.json.lead_name }}",
            "phone": "={{ $(\"Build Messages\").item.json.phone }}",
            "email": "={{ $(\"Build Messages\").item.json.email }}",
            "service": "={{ $(\"Build Messages\").item.json.service }}",
            "zip": "={{ $(\"Build Messages\").item.json.zip }}",
            "details": "={{ $(\"Build Messages\").item.json.details }}",
            "source": "={{ $(\"Build Messages\").item.json.source }}",
            "first_sms": "={{ $(\"Build Messages\").item.json.sms_body }}",
            "received_at": "={{ $(\"Build Messages\").item.json.received_at }}",
            "response_seconds": "={{ Math.max(1, Math.round($now.diff(DateTime.fromISO($(\"Build Messages\").item.json.received_at), \"seconds\").seconds)) }}",
            "booked": false,
            "nudged": false
          },
          "matchingColumns": [],
          "schema": [
            {
              "id": "business_name",
              "displayName": "business_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "lead_name",
              "displayName": "lead_name",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "phone",
              "displayName": "phone",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "email",
              "displayName": "email",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "service",
              "displayName": "service",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "zip",
              "displayName": "zip",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "details",
              "displayName": "details",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "source",
              "displayName": "source",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "first_sms",
              "displayName": "first_sms",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "received_at",
              "displayName": "received_at",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "dateTime",
              "canBeUsedToMatch": true
            },
            {
              "id": "response_seconds",
              "displayName": "response_seconds",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "number",
              "canBeUsedToMatch": true
            },
            {
              "id": "booked",
              "displayName": "booked",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "boolean",
              "canBeUsedToMatch": true
            },
            {
              "id": "nudged",
              "displayName": "nudged",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "boolean",
              "canBeUsedToMatch": true
            }
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {}
      },
      "id": "3053d319-8deb-4028-b09d-cc7c15cc610e",
      "name": "Log Lead",
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        1552,
        128
      ]
    },
    {
      "parameters": {
        "amount": "={{ $(\"DEMO CLIENT\").item.json.nudge_wait_minutes }}",
        "unit": "minutes"
      },
      "id": "569b403a-7cc9-461f-a233-5df906f565f5",
      "name": "Wait Before Nudge",
      "type": "n8n-nodes-base.wait",
      "typeVersion": 1.1,
      "position": [
        1856,
        128
      ]
    },
    {
      "parameters": {
        "operation": "get",
        "dataTableId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_DATA_TABLE_ID",
          "cachedResultName": "speed_to_lead_leads"
        },
        "matchType": "allConditions",
        "filters": {
          "conditions": [
            {
              "keyValue": "={{ $(\"Log Lead\").item.json.id }}"
            }
          ]
        },
        "limit": 1
      },
      "id": "7d2cd749-eabd-4864-9002-44894db3f538",
      "name": "Check If Booked",
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        2080,
        128
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 1
          },
          "conditions": [
            {
              "leftValue": "={{ $json.booked }}",
              "operator": {
                "type": "boolean",
                "operation": "false",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "436bfde7-69e4-4b1d-a10e-937ed3b1f10b",
      "name": "Not Booked Yet?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        2304,
        128
      ]
    },
    {
      "parameters": {
        "from": "={{ $(\"DEMO CLIENT\").item.json.twilio_from }}",
        "to": "={{ $json.phone }}",
        "message": "=Hi {{ $json.lead_name.split(\" \")[0] }}, just checking you saw our text. We have openings today and tomorrow: {{ $(\"DEMO CLIENT\").item.json.booking_link }} - {{ $(\"DEMO CLIENT\").item.json.owner_name }}, {{ $(\"DEMO CLIENT\").item.json.business_name }}",
        "options": {}
      },
      "id": "a2a967be-ca78-47d4-8f0f-2a5274f025a4",
      "name": "Send Nudge Text",
      "type": "n8n-nodes-base.twilio",
      "typeVersion": 1,
      "position": [
        2528,
        128
      ],
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "operation": "update",
        "dataTableId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_DATA_TABLE_ID",
          "cachedResultName": "speed_to_lead_leads"
        },
        "matchType": "allConditions",
        "filters": {
          "conditions": [
            {
              "keyValue": "={{ $(\"Check If Booked\").item.json.id }}"
            }
          ]
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "nudged": true
          },
          "schema": [
            {
              "id": "nudged",
              "displayName": "nudged",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "boolean",
              "canBeUsedToMatch": true
            }
          ]
        },
        "options": {}
      },
      "id": "9d5816df-3329-4024-8ea4-c6b00b86e3ce",
      "name": "Mark Nudged",
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        2752,
        128
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "loose",
            "version": 1
          },
          "conditions": [
            {
              "leftValue": "={{ $json.email }}",
              "operator": {
                "type": "string",
                "operation": "notEmpty",
                "singleValue": true
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "8f8f494d-85aa-4a1a-8902-3c5fa13c89ab",
      "name": "Lead Gave Email?",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.2,
      "position": [
        1440,
        192
      ]
    },
    {
      "parameters": {
        "sendTo": "={{ $json.email }}",
        "subject": "=Got your request, {{ $json.first_name }}",
        "message": "=<p>Hi {{ $json.first_name }},</p><p>Thanks for contacting {{ $(\"DEMO CLIENT\").item.json.business_name }} about <b>{{ $json.service }}</b>. We just sent you a text too.</p><p>Grab a time that suits you here: <a href=\"{{ $(\"DEMO CLIENT\").item.json.booking_link }}\">book your visit</a>.</p><p>Hours: {{ $(\"DEMO CLIENT\").item.json.hours }}</p><p>{{ $(\"DEMO CLIENT\").item.json.owner_name }}<br>{{ $(\"DEMO CLIENT\").item.json.business_name }}</p>",
        "options": {
          "appendAttribution": false,
          "senderName": "={{ $(\"DEMO CLIENT\").item.json.business_name }}"
        }
      },
      "id": "7216ee91-421e-45cb-a309-98bd3c0b4c8f",
      "name": "Email the Lead",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.2,
      "position": [
        1968,
        192
      ],
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "sendTo": "={{ $(\"DEMO CLIENT\").item.json.owner_email }}",
        "subject": "=New {{ $json.service }} lead: {{ $json.lead_name }}{{ $json.zip ? \" (\" + $json.zip + \")\" : \"\" }}",
        "message": "=<p><b>New lead for {{ $(\"DEMO CLIENT\").item.json.business_name }}</b></p><p>Name: {{ $json.lead_name }}<br>Phone: <a href=\"tel:{{ $json.phone }}\">{{ $json.phone }}</a><br>Email: {{ $json.email || \"not given\" }}<br>Service: {{ $json.service }}<br>ZIP: {{ $json.zip || \"not given\" }}<br>Source: {{ $json.source }}</p><p>What they said: {{ $json.details || \"nothing extra\" }}</p><p>They were texted automatically within {{ Math.max(1, Math.round($now.diff(DateTime.fromISO($json.received_at), \"seconds\").seconds)) }} seconds:</p><blockquote>{{ $json.sms_body.replace(/\\n/g, \"<br>\") }}</blockquote><p>If they do not book within {{ $(\"DEMO CLIENT\").item.json.nudge_wait_minutes }} minutes, they get one follow-up text.</p>",
        "options": {
          "appendAttribution": false,
          "senderName": "Speed-to-Lead"
        }
      },
      "id": "d7ace17c-652e-4215-83ae-9667c6a07a86",
      "name": "Alert the Owner",
      "type": "n8n-nodes-base.gmail",
      "typeVersion": 2.2,
      "position": [
        1440,
        384
      ],
      "onError": "continueRegularOutput"
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "speed-to-lead",
        "options": {}
      },
      "id": "21f2bcbb-e651-4a43-bc1d-4f4ef3b994d3",
      "name": "Lead Webhook (Meta / Tally / site)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.2,
      "position": [
        0,
        288
      ]
    },
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "speed-to-lead-booked",
        "options": {}
      },
      "id": "f17e14d9-66e4-4355-92e2-173998b519e6",
      "name": "Booking Confirmed (Cal.com)",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2.2,
      "position": [
        0,
        608
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "r1",
              "name": "email",
              "value": "={{ ($json.body?.payload?.attendees?.[0]?.email ?? $json.body?.email ?? $json.email ?? \"\").toString().trim().toLowerCase() }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "5b79a20f-ee42-48d0-9aeb-a4f4b994b841",
      "name": "Read Booking Email",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        272,
        736
      ]
    },
    {
      "parameters": {
        "operation": "update",
        "dataTableId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_DATA_TABLE_ID",
          "cachedResultName": "speed_to_lead_leads"
        },
        "matchType": "allConditions",
        "filters": {
          "conditions": [
            {
              "keyName": "email",
              "keyValue": "={{ $json.email }}"
            }
          ]
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "booked": true
          },
          "schema": [
            {
              "id": "booked",
              "displayName": "booked",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "boolean",
              "canBeUsedToMatch": true
            }
          ]
        },
        "options": {}
      },
      "id": "297097fc-41c3-498f-84de-fbf761f75b7e",
      "name": "Mark Lead Booked",
      "type": "n8n-nodes-base.dataTable",
      "typeVersion": 1.1,
      "position": [
        496,
        736
      ]
    },
    {
      "parameters": {
        "content": "## Speed-to-lead demo\n\n**Every new lead gets a personal text + email in under 60 seconds, the owner gets an alert, and anyone who does not book gets one nudge.**\n\n**Before a Loom:** edit only the **DEMO CLIENT** node (business name, city, owner, booking link). Set `nudge_wait_minutes` to 1.\n\n**One-time setup:**\n1. Twilio trial: add a Twilio credential to both Twilio nodes, put the trial number in `twilio_from`, and verify your own phone in Twilio (trial can only text verified numbers).\n2. Put your Cal.com link in `booking_link`. In Cal.com, add a webhook (Booking Created) pointing at the **Booking Confirmed** webhook URL.\n3. Leads are logged in the **speed_to_lead_leads** data table.\n\nReal agencies: point Meta Lead Ads, Tally, or a site form at the **Lead Webhook** URL.",
        "height": 420,
        "width": 520,
        "color": 4
      },
      "id": "ca1841c9-cdc6-4c99-b271-7c8a814334c8",
      "name": "Sticky Note 5cf11ae6",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        944,
        800
      ]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "b1",
              "name": "sms_body",
              "value": "={{ ((($json.choices && $json.choices[0] && $json.choices[0].message && $json.choices[0].message.content) || '').trim().replace(/^\"|\"$/g, '') || ('Hi ' + $('Normalize Lead').item.json.first_name + ', thanks for reaching out about ' + $('Normalize Lead').item.json.service + '. What is going on? - ' + $('DEMO CLIENT').item.json.owner_name + ', ' + $('DEMO CLIENT').item.json.business_name)) + '\\n\\nPick a time: ' + $('DEMO CLIENT').item.json.booking_link + '\\nReply STOP to opt out.' }}",
              "type": "string"
            },
            {
              "id": "b2",
              "name": "lead_name",
              "value": "={{ $(\"Normalize Lead\").item.json.lead_name }}",
              "type": "string"
            },
            {
              "id": "b3",
              "name": "first_name",
              "value": "={{ $(\"Normalize Lead\").item.json.first_name }}",
              "type": "string"
            },
            {
              "id": "b4",
              "name": "phone",
              "value": "={{ $(\"Normalize Lead\").item.json.phone }}",
              "type": "string"
            },
            {
              "id": "b5",
              "name": "email",
              "value": "={{ $(\"Normalize Lead\").item.json.email }}",
              "type": "string"
            },
            {
              "id": "b6",
              "name": "service",
              "value": "={{ $(\"Normalize Lead\").item.json.service }}",
              "type": "string"
            },
            {
              "id": "b7",
              "name": "zip",
              "value": "={{ $(\"Normalize Lead\").item.json.zip }}",
              "type": "string"
            },
            {
              "id": "b8",
              "name": "details",
              "value": "={{ $(\"Normalize Lead\").item.json.details }}",
              "type": "string"
            },
            {
              "id": "b9",
              "name": "source",
              "value": "={{ $(\"Normalize Lead\").item.json.source }}",
              "type": "string"
            },
            {
              "id": "b10",
              "name": "received_at",
              "value": "={{ $(\"Normalize Lead\").item.json.received_at }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "e4c8a481-7e10-42ee-a522-2022c01bbd5d",
      "name": "Build Messages",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        1152,
        320
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://openrouter.ai/api/v1/chat/completions",
        "authentication": "predefinedCredentialType",
        "nodeCredentialType": "openRouterApi",
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ model: 'deepseek/deepseek-v4-flash', temperature: 0.4, max_tokens: 400, reasoning: { effort: 'none' }, messages: [ { role: 'system', content: 'You write the first text message a home-services business sends to a brand-new lead.\\nRules:\\n- Under 240 characters.\\n- Warm, plain, sounds like a real person at a local business. No emojis, no exclamation-mark spam.\\n- Mention the service they asked about.\\n- Ask ONE short question that helps the technician (for example what is happening or when it started).\\n- Do not include any link. A booking link is added after your text.\\n- Sign off as: - ' + $('DEMO CLIENT').item.json.owner_name + ', ' + $('DEMO CLIENT').item.json.business_name + '\\nReturn only the text message, nothing else.' }, { role: 'user', content: 'Business: ' + $('DEMO CLIENT').item.json.business_name + ' (' + $('DEMO CLIENT').item.json.trade + ', ' + $('DEMO CLIENT').item.json.city + ')\\nLead first name: ' + $json.first_name + '\\nService requested: ' + $json.service + '\\nWhat they said: ' + ($json.details || 'nothing extra') } ] }) }}",
        "options": {
          "timeout": 30000
        }
      },
      "id": "b631d5fa-2899-42d9-b62d-7351fb979faa",
      "name": "Write First Text",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.5,
      "position": [
        880,
        304
      ],
      "onError": "continueRegularOutput"
    }
  ],
  "connections": {
    "Demo Lead Form": {
      "main": [
        [
          {
            "node": "DEMO CLIENT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DEMO CLIENT": {
      "main": [
        [
          {
            "node": "Normalize Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Text the Lead": {
      "main": [
        [
          {
            "node": "Log Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log Lead": {
      "main": [
        [
          {
            "node": "Wait Before Nudge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait Before Nudge": {
      "main": [
        [
          {
            "node": "Check If Booked",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Booked": {
      "main": [
        [
          {
            "node": "Not Booked Yet?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Not Booked Yet?": {
      "main": [
        [
          {
            "node": "Send Nudge Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Nudge Text": {
      "main": [
        [
          {
            "node": "Mark Nudged",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lead Gave Email?": {
      "main": [
        [
          {
            "node": "Email the Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lead Webhook (Meta / Tally / site)": {
      "main": [
        [
          {
            "node": "DEMO CLIENT",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Booking Confirmed (Cal.com)": {
      "main": [
        [
          {
            "node": "Read Booking Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Read Booking Email": {
      "main": [
        [
          {
            "node": "Mark Lead Booked",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Build Messages": {
      "main": [
        [
          {
            "node": "Alert the Owner",
            "type": "main",
            "index": 0
          },
          {
            "node": "Lead Gave Email?",
            "type": "main",
            "index": 0
          },
          {
            "node": "Text the Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Lead": {
      "main": [
        [
          {
            "node": "Write First Text",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Write First Text": {
      "main": [
        [
          {
            "node": "Build Messages",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": true
  },
  "pinData": {}
}
