Qualify and route inbound leads with OpenAI, Slack, HubSpot, and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects OpenAI Chat Model, Slack, Gmail and HubSpot and 1 more.
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Set ICP and Scoring Rules (Edit Fields (Set)): sets or maps fields
- Normalize Lead Fields (Edit Fields (Set)): sets or maps fields
- Validate Email and Detect Company Domain (Code): runs custom JavaScript code
- Is It a Valid Business Email? (If): checks a condition and branches into true / false
- Fetch Lead Website (HTTP Request): calls an HTTP API
- Mark Lead as Unqualified (Code): runs custom JavaScript code
- Extract Buying Signals from Website (Code): runs custom JavaScript code
- Log Every Lead to Google Sheets (Google Sheets): uses Google Sheets
- Score Lead Against ICP with AI (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Lead Score
- Respond to Form (Respond to Webhook): sends the response back to the webhook caller
…plus 6 more steps. See the full node list below.
Services it uses
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 (14)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - HTTP Request
n8n-nodes-base.httpRequest - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Switch
n8n-nodes-base.switch - Slack
n8n-nodes-base.slack - Gmail
n8n-nodes-base.gmail - HubSpot
n8n-nodes-base.hubspot - Google Sheets
n8n-nodes-base.googleSheets - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
Quick overview This workflow receives inbound lead submissions via a webhook, validates business emails, enriches leads by scraping their website, and uses OpenAI to score ICP fit. It then routes hot leads to Slack, Gmail, and HubSpot, logs all leads to…