Templates / Score inbound leads with Claude and route HubSpot lifecycle stages

Score inbound leads with Claude and route HubSpot lifecycle stages

Ready for 3.0

by Anas Ashfaq ✓ · 17 views · created 2026-05-29 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What 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.

  1. Post Lead Score Property (HTTP Request): calls api.hubapi.com (POST)
  2. Post Lead Tier Property (HTTP Request): calls api.hubapi.com (POST)
  3. Post Score Reason Property (HTTP Request): calls api.hubapi.com (POST)
  4. Set Lead Scoring Params (Edit Fields (Set)): sets 4 fields: my_icp, hot_threshold, warm_threshold…
  5. Extract Domain from Email (Code): runs custom JavaScript code
  6. Get Company Website (HTTP Request): calls an HTTP API
  7. Setup Web Search Params (Code): runs custom JavaScript code
  8. Post to Company News API (HTTP Request): calls api.anthropic.com (POST)
  9. Compile Lead Profile (Code): runs custom JavaScript code
  10. 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

HubSpotSlackGmail

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)

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…

Excerpt from Anas Ashfaq's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.