{
  "id": "3BHghGUgnBAx64fz",
  "name": "AI-Powered Website Form Lead Scoring with Auto-Response",
  "tags": [],
  "nodes": [
    {
      "id": "9df79639-32c0-47c3-9919-c55377f53c0e",
      "name": "Website Form Submission",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -1200,
        336
      ],
      "parameters": {
        "path": "website-form-submissions",
        "options": {},
        "httpMethod": "POST"
      },
      "typeVersion": 2
    },
    {
      "id": "e4665978-7d01-443b-9d96-2bac5ad7e430",
      "name": "Save to Lead Database",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1168,
        0
      ],
      "parameters": {
        "columns": {
          "value": {
            "Email": "={{ $json['Email'] }}",
            "Phone": "={{ $json['Phone'] }}",
            "Company": "={{ $json['Company Name'] }}",
            "Industry": "={{ $json['Industry'] }}",
            "Last Name": "={{ $json['Last Name'] }}",
            "First Name": "={{ $json['First Name'] }}",
            "Lead Score": "={{ $json.output }}",
            "Request Type": "={{ $json['Request Type'] }}",
            "Specific Request": "={{ $json['Specific Request'] }}"
          },
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "Email"
          ]
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "name",
          "value": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "id",
          "value": "YOUR_GOOGLE_SHEET_ID"
        }
      },
      "credentials": {
        "googleSheetsOAuth2Api": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.5
    },
    {
      "id": "cb31a05e-1de1-4452-892e-e81240db9dee",
      "name": "Notify Sales Team",
      "type": "n8n-nodes-base.telegram",
      "position": [
        1136,
        848
      ],
      "parameters": {
        "text": "=\ud83d\udd14 New Lead Submission!\n\n\ud83d\udc64 Name: {{ $json['First Name'] }} {{ $json['Last Name'] }}\n\ud83c\udfe2 Company: {{ $json['Company Name'] }}\n\ud83c\udfed Industry: {{ $json['Industry'] }}\n\ud83d\udcde Phone: {{ $json['Phone'] }}\n\ud83d\udce7 Email: {{ $json['Email'] }}\n\n\ud83d\udcdd Request Type:\n{{ $json['Request Type'] }}\n\n\ud83d\udcac Specific Request:\n{{ $json['Specific Request'] }}\n\n\u2b50 Lead Score: {{ $json.output }}\n\nTime to follow up! \ud83d\ude80",
        "chatId": "YOUR_TELEGRAM_CHAT_ID",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "ae0e6a69-4c61-466c-b9af-9fc01b8ac7a7",
      "name": "Prepare Email Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1664,
        -64
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "33f69835-f48f-4d12-b067-0d8ed68354e6",
              "name": "First Name",
              "type": "string",
              "value": "={{ $json['First Name'] }}"
            },
            {
              "id": "8b882f2e-7279-422c-aa27-86eae8bd71ac",
              "name": "Email",
              "type": "string",
              "value": "={{ $json['Email'] }}"
            },
            {
              "id": "bb5fdfcb-471c-4533-a873-ddfb1edc75fb",
              "name": "Request Type",
              "type": "string",
              "value": "={{ $json['Request Type'] }}"
            },
            {
              "id": "7bf4579c-1ecc-4eec-9df5-15b4646a4a18",
              "name": "Company Name",
              "type": "string",
              "value": "={{ $json['Company Name'] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "c0e0759a-6cec-4e03-9f27-2ce15b6eeb8a",
      "name": "Send Auto-Reply Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1872,
        -64
      ],
      "parameters": {
        "sendTo": "={{ $json['Email'] }}",
        "message": "=Hello {{ $json['First Name'] }},\n\nThank you for reaching out to us!\n\nWe've received your inquiry regarding:\n\"{{ $json['Request Type'] }}\"\n\nOur team is already reviewing your request and one of our experts will contact you within 24 hours.\n\nWe appreciate {{ $json['Company Name'] }}'s interest in our AI automation services.\n\nBest regards,\nThe Team",
        "options": {
          "appendAttribution": false
        },
        "subject": "Thank you for your inquiry!",
        "emailType": "text"
      },
      "typeVersion": 2.1
    },
    {
      "id": "1b6b2327-b833-4680-91ce-48b1cf5e61dc",
      "name": "Extract Form Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -592,
        160
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "ea8e29d9-abfc-4ecb-b06c-6f7e78df872c",
              "name": "First Name",
              "type": "string",
              "value": "={{ $json.body.data.fields[0].value }}"
            },
            {
              "id": "cb46e5b8-6f6a-48e9-bdf9-ee89e19cf4ea",
              "name": "Last Name",
              "type": "string",
              "value": "={{ $json.body.data.fields[1].value }}"
            },
            {
              "id": "8b7a40f7-c0ef-4b0c-9f7c-e80f3e6ee89f",
              "name": "Company Name",
              "type": "string",
              "value": "={{ $json.body.data.fields[2].value }}"
            },
            {
              "id": "a6a8354e-6da0-47f7-bdd9-5eec62c8fbaf",
              "name": "Industry",
              "type": "string",
              "value": "={{ $json.body.data.fields[3].value }}"
            },
            {
              "id": "5cf8e9e9-863e-4f97-bcba-a8a11883dc65",
              "name": "Phone",
              "type": "string",
              "value": "={{ $json.body.data.fields[4].value }}"
            },
            {
              "id": "f4131f26-175a-47fe-8831-67ce37dc948b",
              "name": "Email",
              "type": "string",
              "value": "={{ $json.body.data.fields[5].value }}"
            },
            {
              "id": "87c23b03-3924-4343-893b-d30fad3a9eb9",
              "name": "Request Type",
              "type": "string",
              "value": "={{ $json.body.data.fields[6].value }}"
            },
            {
              "id": "ca62ccaf-4eb4-43fe-9689-ab2a99a6e508",
              "name": "Specific Request",
              "type": "string",
              "value": "={{ $json.body.data.fields[7].value }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "e0bd5ebe-6fac-4d3d-923a-aa1cab25ae89",
      "name": "AI Lead Scoring Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -144,
        832
      ],
      "parameters": {
        "text": "=# TASK\nAnalyze the lead priority level based on the provided scoring value and return ONLY the corresponding emoji indicator.\n\n# INPUT DATA\nScoring Value: {{ $json.Scoring }}\n\n# SCORING SYSTEM\nYou must match the scoring value to one of these priority levels:\n\n**Priority Level 1 - Cold Lead** \u26aa\ufe0f\n- Criteria: {{ $('Website Form Submission').item.json.body.data.fields[8].options[0].text }}\n- ID Match: {{ $('Website Form Submission').item.json.body.data.fields[8].options[0].id }}\n- Output: \u26aa\ufe0f\n\n**Priority Level 2 - Warm Lead** \ud83d\udfe2\n- Criteria: {{ $('Website Form Submission').item.json.body.data.fields[8].options[1].text }}\n- ID Match: {{ $('Website Form Submission').item.json.body.data.fields[8].options[1].id }}\n- Output: \ud83d\udfe2\n\n**Priority Level 3 - Hot Lead** \ud83d\udd35\n- Criteria: {{ $('Website Form Submission').item.json.body.data.fields[8].options[2].text }}\n- ID Match: {{ $('Website Form Submission').item.json.body.data.fields[8].options[2].id }}\n- Output: \ud83d\udd35\n\n**Priority Level 4 - Qualified Lead** \ud83d\udfe3\n- Criteria: {{ $('Website Form Submission').item.json.body.data.fields[8].options[3].text }}\n- ID Match: {{ $('Website Form Submission').item.json.body.data.fields[8].options[3].id }}\n- Output: \ud83d\udfe3\n\n**Priority Level 5 - VIP Lead** \ud83d\udd34\n- Criteria: {{ $('Website Form Submission').item.json.body.data.fields[8].options[4].text }}\n- ID Match: {{ $('Website Form Submission').item.json.body.data.fields[8].options[4].id }}\n- Output: \ud83d\udd34\n\n# OUTPUT REQUIREMENTS\n- Return ONLY the emoji (\u26aa\ufe0f, \ud83d\udfe2, \ud83d\udd35, \ud83d\udfe3, or \ud83d\udd34)\n- NO explanatory text\n- NO additional characters\n- NO markdown formatting\n- Just the single emoji that matches the scoring value",
        "options": {},
        "promptType": "define"
      },
      "typeVersion": 1.7
    },
    {
      "id": "c874bf9b-0c3e-4a5b-815a-14566bd3bfcc",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -224,
        992
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "gpt-4o-mini"
        },
        "options": {}
      },
      "typeVersion": 1.2
    },
    {
      "id": "0a2c019e-cf55-497e-afee-06a0f1380eac",
      "name": "Window Buffer Memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        -96,
        992
      ],
      "parameters": {
        "sessionKey": "={{ $('Website Form Submission').item.json.body.eventId}}",
        "sessionIdType": "customKey"
      },
      "typeVersion": 1.3
    },
    {
      "id": "6a01094a-80b6-4138-8908-a8c05c7af91f",
      "name": "Extract Priority Score",
      "type": "n8n-nodes-base.set",
      "position": [
        -592,
        688
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "cca4b69d-60cb-44a1-9a56-5295022c5834",
              "name": "Scoring",
              "type": "string",
              "value": "={{ $json.body.data.fields[8].value[0] }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "3108b428-bc29-4f1d-b06d-c0b23eef2342",
      "name": "Combine Form Data with Score",
      "type": "n8n-nodes-base.merge",
      "position": [
        528,
        176
      ],
      "parameters": {
        "mode": "combine",
        "options": {},
        "combineBy": "combineAll"
      },
      "typeVersion": 3
    },
    {
      "id": "b9b44eaa-9cb9-4818-ae0e-9cce56c9df6f",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2960,
        -368
      ],
      "parameters": {
        "color": 4,
        "width": 640,
        "height": 1220,
        "content": "## AI-Powered Website Form Lead Scoring with Auto-Response\n\n### Automate your lead qualification process with AI-driven scoring!\n\nThis workflow captures website form submissions, automatically scores leads using AI based on custom criteria, stores data in Google Sheets, sends instant notifications to your sales team via Telegram, and delivers personalized auto-reply emails to prospects.\n\n### Who's it for\n- Sales and marketing teams managing inbound leads\n- Agencies handling client inquiries\n- SaaS companies qualifying trial signups\n- B2B businesses prioritizing lead follow-up\n- Service providers automating client onboarding\n\n### How it works\n1. **Webhook receives** form submission from your website\n2. **Extracts** all form fields (name, email, company, etc.)\n3. **AI analyzes** submission and assigns priority score (\u26aa\ufe0f\ud83d\udfe2\ud83d\udd35\ud83d\udfe3\ud83d\udd34)\n4. **Combines** form data with AI score\n5. **Saves** complete lead data to Google Sheets\n6. **Sends** instant notification to sales team via Telegram\n7. **Delivers** personalized auto-reply email to prospect\n\n### Requirements\n- OpenAI API key (GPT-4o-mini for cost-effective scoring)\n- Google Sheets for lead database\n- Gmail for auto-reply emails\n- Telegram bot for team notifications\n- Website form with webhook capability\n\n### Setup Instructions\n1. Create Google Sheet with appropriate columns\n2. Set up Telegram bot via @BotFather\n3. Configure webhook URL in your website form\n4. Add all credentials (OpenAI, Google, Gmail, Telegram)\n5. Customize scoring criteria in AI Agent node\n6. Test with sample submission\n7. Activate workflow\n\n### Customization Options\n- Modify lead scoring criteria and priority levels\n- Add custom fields to form extraction\n- Integrate with CRM (Salesforce, HubSpot, Pipedrive)\n- Add SMS notifications for VIP leads\n- Create different email templates per score level\n- Add Slack notifications alongside Telegram\n- Implement lead enrichment APIs"
      },
      "typeVersion": 1
    },
    {
      "id": "0f6e6ee9-f5f0-4414-ad05-de3405fb6b13",
      "name": "Step 1 Details",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1312,
        -80
      ],
      "parameters": {
        "color": 7,
        "width": 360,
        "height": 616,
        "content": "## Step 1: Receive Form Submission\n\n[Read about Webhook node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.webhook/)\n\nThis webhook endpoint receives POST requests from your website contact form. Configure your form to send data to this webhook URL.\n\n**Integration tips:**\n- Works with any form builder (Webflow, WordPress, custom HTML, Tally, Google Forms,...)\n- Supports JSON payload\n- Returns success response to form\n\n**Security:** Add authentication if needed"
      },
      "typeVersion": 1
    },
    {
      "id": "5c4cee3e-a02c-4ed4-a064-bfdaf124610c",
      "name": "Step 2 Details",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -752,
        -256
      ],
      "parameters": {
        "color": 7,
        "width": 400,
        "height": 592,
        "content": "## Step 2: Extract Form Fields\n\n[Read about Edit Fields node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.set/)\n\nParses the incoming webhook payload and extracts all form fields into clean, named variables.\n\n**Extracted fields:**\n- First Name & Last Name\n- Company Name & Industry\n- Phone & Email\n- Request Type\n- Specific Request Details\n\n**Note:** Adjust field mappings based on your form structure (fields[0], fields[1], etc.)"
      },
      "typeVersion": 1
    },
    {
      "id": "2a38aaaa-ee1e-42fc-9e67-c63029baec97",
      "name": "Step 3 Details",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -752,
        416
      ],
      "parameters": {
        "color": 7,
        "width": 396,
        "height": 468,
        "content": "## Step 3: Extract Priority Score\n\n[Read about Edit Fields node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.set/)\n\nExtracts the lead priority field (field[8]) from the form submission. This value is sent to the AI agent for intelligent scoring.\n\n**Why separate?** Keeps scoring logic independent from other form data for easier debugging and modification."
      },
      "typeVersion": 1
    },
    {
      "id": "56b7a24c-52f1-40a8-9ab3-c3497cd39584",
      "name": "Step 4 Details",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        272
      ],
      "parameters": {
        "color": 7,
        "width": 480,
        "height": 900,
        "content": "## Step 4: AI Lead Scoring Agent\n\n[Read about AI Agent](https://docs.n8n.io/integrations/builtin/cluster-nodes/root-nodes/n8n-nodes-langchain.agent/)\n\n**\ud83c\udfaf Core Function:** Intelligent lead qualification using GPT-4o-mini\n\n**Scoring Logic:**\n- \u26aa\ufe0f Cold Lead - Low priority/general inquiry\n- \ud83d\udfe2 Warm Lead - Interested but needs nurturing\n- \ud83d\udd35 Hot Lead - Ready for sales conversation\n- \ud83d\udfe3 Qualified Lead - Budget confirmed, timeline set\n- \ud83d\udd34 VIP Lead - High-value, immediate action required\n\n**Enhanced Prompt Structure:**\n\u2713 Clear task definition\n\u2713 Structured input data\n\u2713 Explicit scoring criteria\n\u2713 ID matching logic for accuracy\n\u2713 Strict output format (emoji only)\n\n**Why improved?**\nThe structured prompt eliminates ambiguity, ensures consistent scoring, and prevents unwanted explanatory text in output.\n\n**Cost:** ~$0.0001 per lead (GPT-4o-mini)"
      },
      "typeVersion": 1
    },
    {
      "id": "35f82e40-ba1e-4f94-b57d-8b1c46e6fb71",
      "name": "Step 5 Details",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        384,
        -176
      ],
      "parameters": {
        "color": 7,
        "width": 380,
        "height": 536,
        "content": "## Step 5: Combine Data\n\n[Read about Merge node](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.merge/)\n\nMerges the extracted form fields with the AI-generated lead score into a single data object.\n\n**Result:** Complete lead profile with:\n- All contact information\n- Request details\n- AI priority score\n\n**Ready for:** Database storage and notifications"
      },
      "typeVersion": 1
    },
    {
      "id": "26f75499-a2ac-48f3-b75e-03919171a786",
      "name": "Step 6 Details",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1024,
        -480
      ],
      "parameters": {
        "color": 7,
        "width": 400,
        "height": 640,
        "content": "## Step 6: Save to Lead Database\n\n[Read about Google Sheets](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.googlesheets/)\n\nAppends the complete lead data (with AI score) to your Google Sheets database.\n\n**Columns saved:**\n- Contact details (name, email, phone)\n- Company info (name, industry)\n- Request information\n- AI lead score (emoji indicator)\n\n**Pro tip:** Use Email as matching column to prevent duplicates.\n\n**Setup:** \n- Replace `YOUR_GOOGLE_SHEET_ID` with your actual Sheet ID\n- Map data into the right colums"
      },
      "typeVersion": 1
    },
    {
      "id": "84c10145-177e-4181-b113-471266d1e4e7",
      "name": "Step 7 Details",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        992,
        384
      ],
      "parameters": {
        "color": 7,
        "width": 400,
        "height": 628,
        "content": "## Step 7: Notify Sales Team\n\n[Read about Telegram node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.telegram/)\n\nSends instant notification to your sales team Telegram channel with complete lead details.\n\n**Message includes:**\n- Full contact information\n- Company and industry\n- Request type and details\n- AI priority score\n\n**Setup required:**\n1. Create bot via @BotFather\n2. Get chat ID (use @userinfobot)\n3. Replace `YOUR_TELEGRAM_CHAT_ID`\n\n**Tip:** Create separate channels for different priority levels"
      },
      "typeVersion": 1
    },
    {
      "id": "f095569e-d9e0-4448-8afe-118b833474a2",
      "name": "Step 8 Details",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1600,
        -624
      ],
      "parameters": {
        "color": 7,
        "width": 488,
        "height": 776,
        "content": "## Step 8: Send Auto-Reply Email\n\n[Read about Gmail node](https://docs.n8n.io/integrations/builtin/app-nodes/n8n-nodes-base.gmail/)\n\nDelivers personalized confirmation email to the prospect immediately after submission.\n\n**Email personalization:**\n- Uses prospect's first name\n- References their specific request\n- Includes company name\n- Sets expectation for 24h response\n\n**Professional touch:**\n- Instant confirmation builds trust\n- Shows you're responsive\n- Prevents \"did they get it?\" anxiety\n\n**Customization:** Modify email template to match your brand voice and services\n\n**Alternative:** Use SendGrid, Mailgun, or SMTP for higher volumes"
      },
      "typeVersion": 1
    },
    {
      "id": "a5d3aa8e-bce8-4e37-bb02-87b9d7ecfae6",
      "name": "Configuration Checklist",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2080,
        112
      ],
      "parameters": {
        "color": 5,
        "width": 500,
        "height": 344,
        "content": "## \ud83d\udd27 Configuration Checklist\n\n**Before activating:**\n\n- [ ] Replace `YOUR_GOOGLE_SHEET_ID` with actual Sheet ID\n- [ ] Replace `YOUR_TELEGRAM_CHAT_ID` with your chat ID  \n- [ ] Configure all credentials (OpenAI, Google Sheets, Gmail, Telegram)\n- [ ] Adjust field mappings to match your form structure\n- [ ] Customize AI scoring criteria for your business\n- [ ] Update email template with your branding\n- [ ] Test with sample form submission\n- [ ] Set webhook URL in your website form"
      },
      "typeVersion": 1
    },
    {
      "id": "59a16dbb-6529-44ef-ba29-1259d040a193",
      "name": "Customization Ideas",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1904,
        656
      ],
      "parameters": {
        "color": 6,
        "width": 500,
        "height": 468,
        "content": "## \ud83d\udca1 Advanced Customization Ideas\n\n**Lead Management:**\n- Route VIP leads (\ud83d\udd34) to different workflows\n- Schedule follow-up tasks in project management tools\n- Add leads to email marketing sequences based on score\n\n**Integrations:**\n- Connect to CRM (Salesforce, HubSpot, Pipedrive)\n- Add SMS for urgent high-priority leads\n- Integrate with calendly for automatic meeting booking\n- Enrich leads with Clearbit/Hunter.io\n\n**Analytics:**\n- Track conversion rates by lead score\n- Monitor response times\n- A/B test scoring criteria"
      },
      "typeVersion": 1
    },
    {
      "id": "440eefa2-41cb-4e9f-8018-1480fb2e22ed",
      "name": "Workflow Benefits",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1904,
        320
      ],
      "parameters": {
        "color": 3,
        "width": 500,
        "height": 260,
        "content": "## \ud83c\udfaf Why This Workflow is Powerful\n\n\u2705 **Instant lead qualification** - No manual sorting required\n\u2705 **Consistent scoring** - AI applies same criteria every time  \n\u2705 **Immediate engagement** - Prospects get instant confirmation\n\u2705 **Sales team efficiency** - Prioritize high-value leads first\n\u2705 **Complete audit trail** - All data saved automatically\n\u2705 **Scalable** - Handles unlimited form submissions\n\n**ROI:** Save 2-3 hours daily on lead management"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e0124722-bba0-42db-8d91-7e04fcb6f870",
  "connections": {
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Lead Scoring Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Email Data": {
      "main": [
        [
          {
            "node": "Send Auto-Reply Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Form Fields": {
      "main": [
        [
          {
            "node": "Combine Form Data with Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Window Buffer Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Lead Scoring Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "AI Lead Scoring Agent": {
      "main": [
        [
          {
            "node": "Combine Form Data with Score",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Save to Lead Database": {
      "main": [
        [
          {
            "node": "Prepare Email Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Priority Score": {
      "main": [
        [
          {
            "node": "AI Lead Scoring Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Website Form Submission": {
      "main": [
        [
          {
            "node": "Extract Form Fields",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract Priority Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine Form Data with Score": {
      "main": [
        [
          {
            "node": "Notify Sales Team",
            "type": "main",
            "index": 0
          },
          {
            "node": "Save to Lead Database",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}