Qualify & route leads with GPT-4o, Clearbit, HubSpot CRM & Slack alerts
Needs changesWhat this workflow does
This AI workflow has 16 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Airtable, Slack, HubSpot and OpenAI Chat Model.
How it runs
Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).
- AI Lead Analysis Agent (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Clearbit Enrichment Tool); output parser: Structured Output Parser
- Clearbit API (HTTP Request): calls an HTTP API
- Structure Lead Data (Code): runs custom JavaScript code
- Company Found? (If): checks a condition and branches into true / false
- High Quality Lead? (If): checks a condition and branches into true / false
- Format Data (Code): runs custom JavaScript code
- No Data (Code): runs custom JavaScript code
- Add to HubSpot CRM (HubSpot): uses HubSpot
- Log to Airtable (Airtable): create
- Notify Sales Team (Slack): uses Slack
…plus 1 more step. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in AI Lead Analysis Agent5 (v1.7): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Lead Analysis Agent5 (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (12)
- Webhook
n8n-nodes-base.webhook - AI Agent
@n8n/n8n-nodes-langchain.agent - If
n8n-nodes-base.if - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Airtable
n8n-nodes-base.airtable - Slack
n8n-nodes-base.slack - HubSpot
n8n-nodes-base.hubspot - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Call n8n Workflow Tool
@n8n/n8n-nodes-langchain.toolWorkflow - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
From the author
How it works • Webhook receives lead form submissions from your website • AI Agent (GPT-4o) analyzes lead quality using intelligent scoring framework • Clearbit enriches company data automatically (employee count, industry, revenue) • Qualification score…