{
  "name": "Score and nurture HubSpot leads with Clearbit and Gemini AI",
  "nodes": [
    {
      "id": "45e1f381-8a76-4207-9fcd-abe847624191",
      "name": "HubSpot Contact Created",
      "type": "n8n-nodes-base.hubspotTrigger",
      "position": [
        -48,
        80
      ]
    },
    {
      "id": "6a4b4d14-a182-4a20-b236-f126b80f6a7b",
      "name": "Clearbit Company Enrichment",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        176,
        80
      ]
    },
    {
      "id": "f20a4c05-8a6f-45d2-aa0f-829790e15df4",
      "name": "Set Scoring Criteria",
      "type": "n8n-nodes-base.set",
      "position": [
        400,
        80
      ]
    },
    {
      "id": "09613fd8-26d3-4c91-98cc-6e5fed74b0d8",
      "name": "Calculate Basic Score",
      "type": "n8n-nodes-base.code",
      "position": [
        688,
        80
      ]
    },
    {
      "id": "84e9ecb5-9c62-42a7-b3b8-aced78658339",
      "name": "AI Lead Analysis",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        928,
        80
      ]
    },
    {
      "id": "f6283615-1151-40ac-a518-82ae1fc772d1",
      "name": "Score Threshold Check",
      "type": "n8n-nodes-base.if",
      "position": [
        1184,
        80
      ]
    },
    {
      "id": "ea26aabc-feb5-41aa-9d8c-c9ee33de1cd4",
      "name": "Update Contact Properties",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1632,
        240
      ]
    },
    {
      "id": "feefd14b-f229-41f7-84c7-d557f871177d",
      "name": "Send Personalized Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2128,
        176
      ]
    },
    {
      "id": "aadf9557-5134-49fb-b31c-43265afe4da6",
      "name": "Add to Nurturing Sequence",
      "type": "n8n-nodes-base.hubspot",
      "position": [
        1632,
        448
      ]
    },
    {
      "id": "4e788ba6-6e08-4c70-9299-e4d3ee105a31",
      "name": "Notify Sales Team",
      "type": "n8n-nodes-base.slack",
      "position": [
        2128,
        0
      ]
    },
    {
      "id": "ef768151-30ae-4595-b420-46cf62deb34e",
      "name": "Log Scoring History",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2144,
        368
      ]
    },
    {
      "id": "4ea14e8c-a452-4e52-9fe0-5c8d08867401",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -608,
        -112
      ],
      "parameters": {
        "width": 452,
        "height": 648,
        "content": "# Lead Scoring Automation\n\nThis workflow automatically scores and nurtures new HubSpot contacts using Clearbit enrichment and Gemini AI analysis.\n\n## How it works\n1. **Trigger**: New contact created i"
      }
    },
    {
      "id": "a8494e55-1e7d-4373-8a44-fc8e2da38860",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        -112
      ],
      "parameters": {
        "width": 712,
        "height": 528,
        "content": "## Data enrichment\nClearbit adds company information to score based on size, industry, and funding status."
      }
    },
    {
      "id": "9f7c3baa-ede2-469e-b4d3-ab8c66eb2770",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        608,
        -112
      ],
      "parameters": {
        "width": 692,
        "height": 528,
        "content": "## AI-powered scoring\nGemini AI analyzes the enriched data and generates personalized outreach content."
      }
    },
    {
      "id": "dafbadce-96e6-4a2f-8004-51310555c5e8",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1312,
        -112
      ],
      "parameters": {
        "width": 568,
        "height": 736,
        "content": "## Lead routing & outreach\nHot leads get personalized emails, warm leads enter nurturing sequences."
      }
    },
    {
      "id": "55cdb857-8695-4f39-ad5b-0865e90cca06",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1904,
        -112
      ],
      "parameters": {
        "width": 584,
        "height": 736,
        "content": "## Notifications & tracking\nSales team gets Slack alerts for hot leads. All scores are logged for analysis."
      }
    },
    {
      "id": "eb2716f3-ede4-4b64-a5bf-9babe45fe76d",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        928,
        256
      ]
    }
  ],
  "connections": {
    "AI Lead Analysis": {
      "main": [
        [
          {
            "node": "Score Threshold Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Scoring Criteria": {
      "main": [
        [
          {
            "node": "Calculate Basic Score",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Calculate Basic Score": {
      "main": [
        [
          {
            "node": "AI Lead Analysis",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Score Threshold Check": {
      "main": [
        [
          {
            "node": "Update Contact Properties",
            "type": "main",
            "index": 0
          },
          {
            "node": "Send Personalized Email",
            "type": "main",
            "index": 0
          },
          {
            "node": "Notify Sales Team",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Update Contact Properties",
            "type": "main",
            "index": 0
          },
          {
            "node": "Add to Nurturing Sequence",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HubSpot Contact Created": {
      "main": [
        [
          {
            "node": "Clearbit Company Enrichment",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Lead Analysis",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Update Contact Properties": {
      "main": [
        [
          {
            "node": "Log Scoring History",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clearbit Company Enrichment": {
      "main": [
        [
          {
            "node": "Set Scoring Criteria",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}