Score inbound leads with Claude and route HubSpot lifecycle stages
Ready for 3.0What this workflow does
This workflow has 20 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects HubSpot, Slack and Gmail. It also calls api.hubapi.com and api.anthropic.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Post Lead Score Property (HTTP Request): calls api.hubapi.com (POST)
- Post Lead Tier Property (HTTP Request): calls api.hubapi.com (POST)
- Post Score Reason Property (HTTP Request): calls api.hubapi.com (POST)
- Set Lead Scoring Params (Edit Fields (Set)): sets 4 fields: my_icp, hot_threshold, warm_threshold…
- Extract Domain from Email (Code): runs custom JavaScript code
- Get Company Website (HTTP Request): calls an HTTP API
- Setup Web Search Params (Code): runs custom JavaScript code
- Post to Company News API (HTTP Request): calls api.anthropic.com (POST)
- Compile Lead Profile (Code): runs custom JavaScript code
- Post Lead to Claude AI (HTTP Request): calls api.anthropic.com (POST)
…plus 9 more steps. See the full node list below.
Services it uses
HTTP calls to: api.hubapi.com, api.anthropic.com
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (8)
- Webhook
n8n-nodes-base.webhook - HTTP Request
n8n-nodes-base.httpRequest - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - HubSpot
n8n-nodes-base.hubspot - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail
From the author
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…