{
  "name": "Ai-powered lead scoring & personalized responses with JotForm, GPT, and Gmail",
  "nodes": [
    {
      "id": "372728ab-7a20-4a2d-bbf0-76f8fed19211",
      "name": "Trigger: JotForm Submission",
      "type": "n8n-nodes-base.jotFormTrigger",
      "position": [
        -560,
        -224
      ]
    },
    {
      "id": "d5eb227f-dfcd-457e-865b-925636a309ba",
      "name": "AI: Lead Scoring Analysis",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        -336,
        -224
      ]
    },
    {
      "id": "8d04bdae-caf6-42f8-936d-636a39ab007d",
      "name": "Process: Extract & Merge Data",
      "type": "n8n-nodes-base.code",
      "position": [
        16,
        -224
      ]
    },
    {
      "id": "9510e135-6881-46ea-99ab-861e63b03b2c",
      "name": "Sheets: Create Lead Record",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        240,
        -224
      ]
    },
    {
      "id": "5f21398e-568b-417d-b7d1-f6d080ec89f1",
      "name": "API: Company Enrichment Request",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        464,
        -224
      ]
    },
    {
      "id": "8e7d85b2-269b-4ee8-bab7-c9a6596ac662",
      "name": "AI: Generate Personalized Email",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        688,
        -224
      ]
    },
    {
      "id": "fabd8eab-9fc2-4f24-bceb-ddcc5787e7a2",
      "name": "Email: Send Lead Response",
      "type": "n8n-nodes-base.gmail",
      "position": [
        1040,
        -224
      ]
    },
    {
      "id": "0f6949a3-0765-42f7-b86b-4e382fc0c44b",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -96,
        -1248
      ],
      "parameters": {
        "width": 944,
        "height": 544,
        "content": "# 🤖 AI-Powered Lead Scoring & Personalized Outreach\n\nThis workflow automatically qualifies, scores, and responds to leads from JotForm submissions.\n\n## 📊 What happens:\n1. Lead submits form → AI scores"
      }
    },
    {
      "id": "46a86749-55d7-48fa-a334-26425ffca5e2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1136,
        -320
      ],
      "parameters": {
        "width": 528,
        "height": 368,
        "content": "## 1️⃣ JotForm Trigger Setup\n\n**What it does:** Captures form submissions in real-time\n\n**Setup:**\n1. Click \"Credentials\" → Add JotForm account\n2. Select your form from the dropdown\n3. Test with a sam"
      }
    },
    {
      "id": "35fe5e10-f6b8-4bac-91dc-600cd92531ba",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        -640
      ],
      "parameters": {
        "width": 480,
        "height": 352,
        "content": "## 2️⃣ AI Lead Scoring\n\n**What it does:** Analyzes lead quality and assigns score (1-100) + tier\n\n**Scoring logic:**\n- **High (80-100):** Clear need, $25k+ budget, known company\n- **Medium (40-79):** "
      }
    },
    {
      "id": "c2ed72d5-d26e-4958-8d22-fb33f9580b09",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -176,
        16
      ],
      "parameters": {
        "width": 448,
        "height": 288,
        "content": "## 3️⃣ Extract & Merge Data\n\n**What it does:** Parses AI response and combines with lead data\n\n**Why needed:** OpenAI returns a string, we need clean JSON\n\n**Output structure:**\n- Original lead fields"
      }
    },
    {
      "id": "31a8b91f-7377-43a6-bfba-79b11bd0bed3",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        -640
      ],
      "parameters": {
        "width": 480,
        "height": 352,
        "content": "## 4️⃣ Google Sheets Logging\n\n**What it does:** Creates permanent record of all leads with AI scores\n\n**Setup:**\n1. Create new Google Sheet\n2. Add headers: first_name, last_name, company, email, messa"
      }
    },
    {
      "id": "bb3067c1-cb27-4eb5-99c9-f81f700225b6",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        352,
        16
      ],
      "parameters": {
        "width": 512,
        "height": 304,
        "content": "## 5️⃣ Company Enrichment API\n\n**What it does:** Fetches company data (industry, size, tech stack, location)\n\n**Setup required:**\n1. Deploy the enrichment workflow: https://drive.google.com/file/d/1OK"
      }
    },
    {
      "id": "b7b0fea7-5298-4b5f-8657-1689e0d5e9d4",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        640,
        -640
      ],
      "parameters": {
        "width": 512,
        "height": 352,
        "content": "## 6️⃣ Personalized Email AI\n\n**What it does:** Writes custom emails based on lead tier + company data\n\n**Email variations:**\n- **High tier:** Enthusiastic, direct call with senior strategist\n- **Medi"
      }
    },
    {
      "id": "e9462407-a72b-4673-98f6-02c9576ef21b",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1264,
        -256
      ],
      "parameters": {
        "width": 432,
        "height": 288,
        "content": "## 7️⃣ Send Email Response\n\n**What it does:** Delivers personalized email via Gmail\n\n**Setup:**\n1. Connect your Gmail account\n2. Subject auto-generated with company name\n3. Email content comes from AI"
      }
    }
  ],
  "connections": {
    "AI: Lead Scoring Analysis": {
      "main": [
        [
          {
            "node": "Process: Extract & Merge Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sheets: Create Lead Record": {
      "main": [
        [
          {
            "node": "API: Company Enrichment Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Trigger: JotForm Submission": {
      "main": [
        [
          {
            "node": "AI: Lead Scoring Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process: Extract & Merge Data": {
      "main": [
        [
          {
            "node": "Sheets: Create Lead Record",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI: Generate Personalized Email": {
      "main": [
        [
          {
            "node": "Email: Send Lead Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "API: Company Enrichment Request": {
      "main": [
        [
          {
            "node": "AI: Generate Personalized Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}