{
  "name": "Capture and schedule HVAC leads with OpenAI, Google Sheets, Slack and SMS",
  "nodes": [
    {
      "id": "6d09359d-ead5-4b51-90aa-df4747713963",
      "name": "Lead Submission Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -1888,
        432
      ]
    },
    {
      "id": "c60a3794-48b2-4cd9-b04e-333046bc82c7",
      "name": "Workflow Configuration",
      "type": "n8n-nodes-base.set",
      "position": [
        -1664,
        432
      ]
    },
    {
      "id": "00d690f5-6fe8-4b47-869e-0f918bb096d1",
      "name": "Normalize Lead Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -1440,
        432
      ]
    },
    {
      "id": "da3bb476-8152-4a84-8d77-ba162899e1b6",
      "name": "Store Lead in Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1216,
        432
      ]
    },
    {
      "id": "4594e557-307a-4bd6-905a-955b1382970c",
      "name": "Classify Lead Urgency and Service Type",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -992,
        432
      ]
    },
    {
      "id": "d0ae0912-8325-4668-884b-d5ff361043c0",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -984,
        656
      ]
    },
    {
      "id": "eb3c050e-c91a-4d2e-a48f-af3d3cde5500",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -856,
        656
      ]
    },
    {
      "id": "6c3c9799-2435-4f6c-bfa1-6fd6fe0a0f3f",
      "name": "Route by Service Type",
      "type": "n8n-nodes-base.switch",
      "position": [
        -640,
        416
      ]
    },
    {
      "id": "931273b7-3482-4420-8f62-8a633d77a7b0",
      "name": "Notify Installation Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        -416,
        240
      ]
    },
    {
      "id": "0deb64ec-8ac0-4b40-94af-f9fb0c964534",
      "name": "Notify Repair Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        -416,
        432
      ]
    },
    {
      "id": "febdf0e7-ee89-489a-9bfe-800233e8400c",
      "name": "Notify Maintenance Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        -416,
        624
      ]
    },
    {
      "id": "0c4ce068-7555-477e-a20b-6db95e9731c7",
      "name": "Send Confirmation Email to Lead",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        -192,
        432
      ]
    },
    {
      "id": "51c9640e-b444-4163-9659-0cc9c950fc19",
      "name": "Schedule Appointment",
      "type": "n8n-nodes-base.googleCalendar",
      "position": [
        32,
        432
      ]
    },
    {
      "id": "18143404-663a-411c-bdbb-2eee7ce2d7c8",
      "name": "Send SMS Reminder",
      "type": "n8n-nodes-base.twilio",
      "position": [
        256,
        432
      ]
    },
    {
      "id": "c4207810-dbce-44ff-9939-48e3cdce75c1",
      "name": "Send to CRM/Dispatch System",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        480,
        432
      ]
    },
    {
      "id": "4ac9cecb-30a5-4906-9e89-2b82668f55fb",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1936,
        224
      ],
      "parameters": {
        "width": 656,
        "height": 640,
        "content": "## Trigger & Config"
      }
    },
    {
      "id": "c0e00b46-b0ed-4cc3-b02c-372df648c3ca",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1264,
        224
      ],
      "parameters": {
        "width": 736,
        "height": 640,
        "content": "## AI Logic"
      }
    },
    {
      "id": "18060c7a-9898-4589-8ecb-cd0e9cf2f1e0",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -512,
        176
      ],
      "parameters": {
        "width": 496,
        "height": 688,
        "content": "## Notify"
      }
    },
    {
      "id": "17c6ee2d-41a8-4d95-9822-d03785d36a07",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        176
      ],
      "parameters": {
        "width": 624,
        "height": 688,
        "content": "## Appointment & Reminder"
      }
    },
    {
      "id": "5dba32bb-9b7f-49f7-b0d5-ab8efa89f9f8",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2304,
        224
      ],
      "parameters": {
        "width": 336,
        "height": 528,
        "content": "## Main\nAutomates door-to-door HVAC lead capture and appointment scheduling. AI classifies leads, routes to appropriate service, logs info, sends confirmations, and schedules appointments.\n\n## Setup\n1"
      }
    }
  ],
  "connections": {
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Classify Lead Urgency and Service Type",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Send SMS Reminder": {
      "main": [
        [
          {
            "node": "Send to CRM/Dispatch System",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Repair Team": {
      "main": [
        [
          {
            "node": "Send Confirmation Email to Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Lead Data": {
      "main": [
        [
          {
            "node": "Store Lead in Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lead Submission Form": {
      "main": [
        [
          {
            "node": "Workflow Configuration",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Appointment": {
      "main": [
        [
          {
            "node": "Send SMS Reminder",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Service Type": {
      "main": [
        [
          {
            "node": "Notify Installation Team",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notify Repair Team",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notify Maintenance Team",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Workflow Configuration": {
      "main": [
        [
          {
            "node": "Normalize Lead Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Maintenance Team": {
      "main": [
        [
          {
            "node": "Send Confirmation Email to Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Installation Team": {
      "main": [
        [
          {
            "node": "Send Confirmation Email to Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Classify Lead Urgency and Service Type",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Store Lead in Google Sheets": {
      "main": [
        [
          {
            "node": "Classify Lead Urgency and Service Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Confirmation Email to Lead": {
      "main": [
        [
          {
            "node": "Schedule Appointment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Classify Lead Urgency and Service Type": {
      "main": [
        [
          {
            "node": "Route by Service Type",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}