{
  "name": "Score B2B leads with OpenAI from webhook or form submissions",
  "nodes": [
    {
      "id": "9ea04987-285e-450e-a8e9-d95c956ccb68",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        -128
      ],
      "parameters": {
        "width": 480,
        "height": 380,
        "content": "## Score B2B Leads with AI\n\n**Who it's for:** Sales teams, freelancers, and agencies receiving leads via webhook or contact forms.\n\n**What it does:** Receives lead data (name, email, company, website)"
      }
    },
    {
      "id": "9003ee31-df43-4b1c-b2cd-3cc9dc084202",
      "name": "Sticky Note 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1152,
        -336
      ],
      "parameters": {
        "width": null,
        "height": 140,
        "content": "**Step 1 — Triggers**\n\n• Webhook: POST to `/incoming-lead`\n• Manual: Test with sample data"
      }
    },
    {
      "id": "b905b0c6-6080-43a8-98ca-25c4c9264164",
      "name": "Sticky Note 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1616,
        -320
      ],
      "parameters": {
        "width": 280,
        "height": 120,
        "content": "**Step 2–4 — Process**\n\nNormalize → AI Score (OpenAI) → Parse"
      }
    },
    {
      "id": "017f10ca-70ab-4de5-bf26-b4597ba22e52",
      "name": "Sticky Note 3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        -320
      ],
      "parameters": {
        "width": 320,
        "height": 120,
        "content": "**Step 5 — Route**\n\nHot (≥7) → immediate follow-up  |  Nurture → add to sequence"
      }
    },
    {
      "id": "51751392-d4ee-47f7-aa2a-af98b19033cd",
      "name": "Config",
      "type": "n8n-nodes-base.set",
      "position": [
        1184,
        16
      ]
    },
    {
      "id": "b1b1561e-d014-4939-a078-23fabac0ed36",
      "name": "Route by Source",
      "type": "n8n-nodes-base.if",
      "position": [
        1408,
        16
      ]
    },
    {
      "id": "c878ffac-d4a7-4f53-9f3e-9a01d6fedcee",
      "name": "Manual Test",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        1184,
        176
      ]
    },
    {
      "id": "05e009ce-a50c-49a3-b229-dab5612c0e8a",
      "name": "Sample Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1696,
        224
      ]
    },
    {
      "id": "e134a073-3ab5-4ce1-9043-b93238cd7c10",
      "name": "Webhook Receive Lead",
      "type": "n8n-nodes-base.webhook",
      "position": [
        1184,
        -176
      ]
    },
    {
      "id": "2523c78d-8eb2-47a2-9a58-40658d77b5db",
      "name": "Normalize Lead Data",
      "type": "n8n-nodes-base.set",
      "position": [
        1616,
        -64
      ]
    },
    {
      "id": "aae6950d-861a-41ed-a579-ac612d99b2cd",
      "name": "AI Score Lead",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1760,
        -64
      ]
    },
    {
      "id": "7326f10a-a44c-4cd9-98ca-378d3c740dac",
      "name": "Parse Score",
      "type": "n8n-nodes-base.code",
      "position": [
        1904,
        -32
      ]
    },
    {
      "id": "a260869e-574a-4771-8fd5-dc9afc96d42d",
      "name": "Is Hot Lead?",
      "type": "n8n-nodes-base.if",
      "position": [
        2128,
        -32
      ]
    },
    {
      "id": "868d32ba-fa5e-4756-b938-ffe7c935810a",
      "name": "Hot Lead",
      "type": "n8n-nodes-base.set",
      "position": [
        2336,
        -128
      ]
    },
    {
      "id": "a5dbb376-57f2-4b0f-8849-d31dda75b6fb",
      "name": "Nurture Lead",
      "type": "n8n-nodes-base.set",
      "position": [
        2336,
        80
      ]
    },
    {
      "id": "2b19f883-5abc-4ade-8bb3-62a0522bd05e",
      "name": "Merge Output",
      "type": "n8n-nodes-base.merge",
      "position": [
        2560,
        -32
      ]
    }
  ],
  "connections": {
    "Config": {
      "main": [
        [
          {
            "node": "Route by Source",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Hot Lead": {
      "main": [
        [
          {
            "node": "Merge Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Manual Test": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Score": {
      "main": [
        [
          {
            "node": "Is Hot Lead?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Sample Data": {
      "main": [
        [
          {
            "node": "AI Score Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Hot Lead?": {
      "main": [
        [
          {
            "node": "Hot Lead",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Nurture Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Nurture Lead": {
      "main": [
        [
          {
            "node": "Merge Output",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "AI Score Lead": {
      "main": [
        [
          {
            "node": "Parse Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Route by Source": {
      "main": [
        [
          {
            "node": "Normalize Lead Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Sample Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Normalize Lead Data": {
      "main": [
        [
          {
            "node": "AI Score Lead",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook Receive Lead": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}