Score and route web form leads using Claude Haiku, HubSpot and Slack
Ready for 3.0What this workflow does
This AI workflow has 24 nodes and runs manually, when you click “Execute workflow” (plus 1 other trigger). Along the way it connects Anthropic Chat Model, HubSpot and Slack.
How it runs
Trigger: Manually, when you click “Execute workflow” (plus 1 other trigger).
- Sample Payloads (Code): runs custom JavaScript code
- Respond (Respond to Webhook): sends the response back to the webhook caller
- Normalise and Validate (Code): runs custom JavaScript code
- Valid? (If): checks a condition and branches into true / false
- Intent From Free Text (Basic LLM Chain): sends a prompt to an LLM, with model: Claude Haiku; output parser: Intent Parser
- Collect Leads (Merge): merges the data from its input branches
- Score and Route (Code): runs custom JavaScript code
- Lead Log (Data table): insert (row)
- Check Step (Code): runs custom JavaScript code
- Scorecard (Code): runs custom JavaScript code
…plus 10 more steps. See the full node list below.
Services it uses
Other Anthropic + Slack templates (204) · Other HubSpot + Slack templates (137) · Other Anthropic + HubSpot templates (13)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (13)
- Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - HubSpot
n8n-nodes-base.hubspot - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Merge
n8n-nodes-base.merge - Data table
n8n-nodes-base.dataTable
From the author
Quick overview This workflow receives website form leads via webhook (or runs with sample payloads), uses Anthropic Claude Haiku to classify intent from the message, scores and tiers each lead, then upserts contacts in HubSpot, optionally alerts sales in…