{
  "name": "Automate lead qualification & routing with GPT-4o-mini, Google Sheets & HighLevel CRM",
  "nodes": [
    {
      "id": "f21bba3e-5268-4569-aa3f-586879c7c701",
      "name": "Sticky Note - Main Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1888,
        656
      ],
      "parameters": {
        "width": 380,
        "height": 880,
        "content": "## AI-Powered Lead Qualification & Routing\n\nThis workflow automatically scores, categorizes, and routes new leads from Google Sheets using GPT-4o-mini, then syncs them to HighLevel CRM.\n\n## How it wor"
      }
    },
    {
      "id": "45fc67ec-cd6e-4a8c-960f-2c261d66a110",
      "name": "Sticky Note - AI Section",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1392,
        624
      ],
      "parameters": {
        "width": 392,
        "height": 240,
        "content": "## AI Qualification\n\nGPT-4o-mini analyzes lead data using a scoring rubric: opportunity value (+30), lead stage (+25), company info (+20), complete contact (+15), professional email (+10). Returns str"
      }
    },
    {
      "id": "3231aff8-a7f9-453e-88a7-b6beab1781f0",
      "name": "Sticky Note - Processing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -864,
        640
      ],
      "parameters": {
        "width": 328,
        "height": 240,
        "content": "## Data Processing & Storage\n\nParses AI response, handles errors gracefully, then saves enriched lead data to Google Sheets for tracking and reporting."
      }
    },
    {
      "id": "889552de-d146-4887-b1ff-54b35cd6c0b7",
      "name": "Sticky Note - Routing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -416,
        624
      ],
      "parameters": {
        "width": 536,
        "height": 240,
        "content": "## Lead Routing\n\nCategorizes by score (Hot/Warm/Cold), syncs to HighLevel CRM, and emails sales rep with full context and next steps."
      }
    },
    {
      "id": "c4f43b9f-58de-4762-980d-071d11555fee",
      "name": "Categorize Lead Priority1",
      "type": "n8n-nodes-base.function",
      "position": [
        -400,
        896
      ]
    },
    {
      "id": "24aad0d8-a091-4b8e-bb35-b361acda8486",
      "name": "New Lead Form Submission1",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -1424,
        896
      ]
    },
    {
      "id": "21c01f29-bd3d-49c6-8ff4-cb2313cecdbc",
      "name": "AI Lead Qualification Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1200,
        896
      ]
    },
    {
      "id": "b5c42afa-29b5-4df4-b6ce-c00015f05114",
      "name": "Azure OpenAI Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatAzureOpenAi",
      "position": [
        -1136,
        1120
      ]
    },
    {
      "id": "8d8f3510-0a98-411a-88b4-b8e10ae6332e",
      "name": "Parse AI Response to JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        -848,
        896
      ]
    },
    {
      "id": "c034ae38-cfdf-4680-8674-d5f603d6c43b",
      "name": "Save Lead to Status Sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -624,
        896
      ]
    },
    {
      "id": "04dda893-ccaa-482b-8e47-609f6d8f0176",
      "name": "Add Contact to CRM",
      "type": "n8n-nodes-base.highLevel",
      "position": [
        -176,
        896
      ]
    },
    {
      "id": "28ac9233-5576-491d-b719-f0c83661c2cc",
      "name": "Send Email to Sales Rep",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        48,
        896
      ]
    }
  ],
  "connections": {
    "Add Contact to CRM": {
      "main": [
        [
          {
            "node": "Send Email to Sales Rep",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Azure OpenAI Model1": {
      "ai_languageModel": [
        [
          {
            "node": "AI Lead Qualification Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Categorize Lead Priority1": {
      "main": [
        [
          {
            "node": "Add Contact to CRM",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New Lead Form Submission1": {
      "main": [
        [
          {
            "node": "AI Lead Qualification Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Response to JSON": {
      "main": [
        [
          {
            "node": "Save Lead to Status Sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save Lead to Status Sheet": {
      "main": [
        [
          {
            "node": "Categorize Lead Priority1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Lead Qualification Agent1": {
      "main": [
        [
          {
            "node": "Parse AI Response to JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}