Skip to main content

Score inbound leads with Claude and route HubSpot lifecycle stages

Workflow preview

Workflow preview
100%
Score inbound leads with Claude and route HubSpot lifecycle stages preview
Open on n8n.io

1. Workflow Overview

Quick overview This workflow receives inbound leads via webhook, uses Anthropic Claude (with website scraping and web search) to score and classify them, then updates HubSpot lifecycle stage, creat...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.httprequest, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.hubspot, n8n-nodes-base.switch, n8n-nodes-base.slack

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Anas Ashfaq.

Original n8n.io source

1.1 Workflow description

Title
Score inbound leads with Claude and route HubSpot lifecycle stages
Workflow name
Score inbound leads with Claude and route HubSpot lifecycle stages

Quick overview

This workflow receives inbound leads via webhook, uses Anthropic Claude (with website scraping and web search) to score and classify them, then updates HubSpot lifecycle stage, creates deals for hot leads, alerts Slack, and sends tier-specific replies through Gmail.

How it works

  1. Receives a POST webhook request containing lead details (name, email, company, job title, and message).
  2. Ensures three HubSpot contact properties exist for AI scoring (ai_lead_score, ai_lead_tier, ai_score_reason).
  3. Extracts the company domain from the lead’s email and fetches the company website homepage content.
  4. Uses Anthropic Claude web search to gather third-party company intelligence while excluding the company’s own domain.
  5. Builds a lead profile and sends the form data, website text, and external research to Anthropic Claude to return a 1–10 score, a reason, and a drafted reply email.
  6. Upserts the contact in HubSpot, sets the lifecycle stage based on score thresholds, and writes the AI score fields to the contact record.
  7. Routes by tier: for hot leads it creates a HubSpot deal, posts a Slack alert, and sends the generated email via Gmail, while warm and cold leads receive their respective generated emails via Gmail.

Setup

  1. Add credentials for HubSpot (App Token), Anthropic (API key), Slack (OAuth2), and Gmail (OAuth2).
  2. Set your ICP description, hot/warm score thresholds, and the target Slack channel ID in the Lead Scoring Config step.
  3. Activate the workflow, copy the webhook URL, and configure your lead capture form to POST the expected fields to the webhook path (lead-intake).

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - When Lead Submitted

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 11 - Post Lead Score Property

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Post Lead Tier Property

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 13 - Post Score Reason Property

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Set Lead Scoring Params

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Extract Domain from Email

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Get Company Website

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 17 - Compile Lead Profile

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 18 - Post Lead to Claude AI

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Parse Claude AI Score

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - Upsert Contact in HubSpot

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2.2

Block 21 - Enrich Data with HubSpot ID

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 22 - Route Lead by Tier

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 23 - Create Deal in HubSpot

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2.2

Block 24 - Notify Sales via Slack

Type / Role
n8n-nodes-base.slack - slack
Config choices
Version 2.4

Showing the first 24 of 29 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Score inbound leads with Claude and route HubSpot lifecycle stages
Complexity advanced
Nodes 29
Categories Lead Generation, AI Summarization
Author Anas Ashfaq
Published 29 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16011/16011.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Score inbound leads with Claude and route HubSpot lifecycle stages do?

Quick overview This workflow receives inbound leads via webhook, uses Anthropic Claude (with website scraping and web search) to score and classify them, then updates HubSpot lifecycle stage, creat...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.