{
  "name": "Score and route leads with Google Gemini, Sheets, Slack and Gmail",
  "nodes": [
    {
      "id": "aba8b75a-6c5a-4d19-ab32-5fe7cbd557c6",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        752
      ],
      "parameters": {
        "width": 540,
        "height": 752,
        "content": "## 💰 AI Revenue Intelligence: 360° Customer Journey Automation\n\nThis workflow automates lead capture, AI-powered scoring, revenue prediction, and sales team notifications using Google Gemini AI.\n\n### "
      }
    },
    {
      "id": "9d52e9a8-89cb-4dfb-9b8d-add1f6e1216c",
      "name": "Step 1 - Lead Capture",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        96,
        752
      ],
      "parameters": {
        "width": 820,
        "height": 508,
        "content": "### 📥 Step 1 - Lead Capture & Enrichment\nLead submits details via web form. Data is processed and enriched with external API data."
      }
    },
    {
      "id": "9b78e016-f605-477d-af7c-bc26961f4a1a",
      "name": "Step 2 - AI Analysis",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        944,
        752
      ],
      "parameters": {
        "width": 420,
        "height": 504,
        "content": "### 🤖 Step 2 - AI Analysis & Scoring\nGoogle Gemini AI analyzes purchase intent, scores the lead, and recommends next actions."
      }
    },
    {
      "id": "6eefe50a-a250-4251-a9e9-ca98a104b52a",
      "name": "Step 3 - Prediction & Routing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1376,
        752
      ],
      "parameters": {
        "width": 540,
        "height": 508,
        "content": "### 📊 Step 3 - Revenue Prediction & Routing\nAI scoring is parsed, leads are routed by quality, and revenue is predicted."
      }
    },
    {
      "id": "e67af1e6-bd1a-4c19-b054-ea43c77b3411",
      "name": "Step 4 - CRM & Notifications",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1936,
        752
      ],
      "parameters": {
        "width": 960,
        "height": 568,
        "content": "### 📧 Step 4 - CRM Update & Notifications\nLeads are logged to Google Sheets dashboard, hot leads trigger Slack alerts, and reports are emailed."
      }
    },
    {
      "id": "d4d3045b-8931-45f9-9c9e-c805b09b82ed",
      "name": "Lead Capture Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        128,
        960
      ]
    },
    {
      "id": "4dfba62b-35a3-4e8f-a3f9-1a3b48888865",
      "name": "Process Lead Data",
      "type": "n8n-nodes-base.code",
      "position": [
        416,
        960
      ]
    },
    {
      "id": "3d08907a-0276-463b-88e3-4d79e946d929",
      "name": "Enrich Lead Data",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        688,
        960
      ]
    },
    {
      "id": "32f95dd9-5587-4374-9fd4-2b21a19265de",
      "name": "AI Lead Analyzer",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1008,
        960
      ]
    },
    {
      "id": "53e75807-3950-43ae-8330-e439718d780d",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1008,
        1120
      ]
    },
    {
      "id": "c7e1884e-7ff1-4860-8bf2-6f44368aee79",
      "name": "Parse AI Scoring",
      "type": "n8n-nodes-base.code",
      "position": [
        1424,
        960
      ]
    },
    {
      "id": "cf273a9d-70f3-4c30-b799-1bed21c00a4d",
      "name": "Lead Quality Router",
      "type": "n8n-nodes-base.if",
      "position": [
        1680,
        960
      ]
    },
    {
      "id": "b54674a1-5e91-4fdb-b5cc-b93ab7907e7b",
      "name": "Revenue Predictor",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        2000,
        960
      ]
    },
    {
      "id": "f5e2f4b2-4912-4aa9-8520-21e6a4d85b6b",
      "name": "Google Gemini Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2000,
        1168
      ]
    },
    {
      "id": "86bb60e8-66e7-47a5-a664-1e964596745d",
      "name": "Update Revenue Dashboard",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2288,
        960
      ]
    },
    {
      "id": "53d005e0-f76a-4463-8242-9dae247dbacc",
      "name": "Sales Team Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        2000,
        816
      ]
    },
    {
      "id": "373430e2-bd56-468f-9df0-b2c544752d59",
      "name": "Send Lead Report",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2688,
        960
      ]
    }
  ],
  "connections": {
    "AI Lead Analyzer": {
      "main": [
        [
          {
            "node": "Parse AI Scoring",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enrich Lead Data": {
      "main": [
        [
          {
            "node": "AI Lead Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse AI Scoring": {
      "main": [
        [
          {
            "node": "Lead Quality Router",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lead Capture Form": {
      "main": [
        [
          {
            "node": "Process Lead Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process Lead Data": {
      "main": [
        [
          {
            "node": "Enrich Lead Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Revenue Predictor": {
      "main": [
        [
          {
            "node": "Send Lead Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Lead Quality Router": {
      "main": [
        [
          {
            "node": "Revenue Predictor",
            "type": "main",
            "index": 0
          },
          {
            "node": "Sales Team Alert",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update Revenue Dashboard",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Revenue Dashboard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Lead Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Revenue Predictor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}