Qualify and route inbound leads with GPT-5, Google Sheets, Gmail, and Slack
Ready for 3.0What this workflow does
This AI workflow has 21 nodes and runs when someone submits an n8n form (“Get in Touch”). Along the way it connects Google Sheets, OpenAI Chat Model, Slack and Gmail.
How it runs
Trigger: When someone submits an n8n form (“Get in Touch”).
- Clean & Validate Lead (Code): runs custom JavaScript code
- Is Email Valid? (If): checks a condition and branches into true / false
- Check Existing Lead (Google Sheets): lookup
- Is New Lead? (If): checks a condition and branches into true / false
- Notify Workflow Error (Gmail): uses Gmail
- Enrich Company Data (HTTP Request): calls an HTTP API
- Merge Enrichment (Code): runs custom JavaScript code
- AI Lead Qualification (AI Agent): runs an AI agent
- Log All Leads (Google Sheets): append
- Route by Category (Switch): routes items into 3 branches
…plus 8 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)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - AI Agent
@n8n/n8n-nodes-langchain.agent - 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 - Edit Fields (Set)
n8n-nodes-base.set - No Operation, do nothing
n8n-nodes-base.noOp - Wait
n8n-nodes-base.wait
From the author
Quick overview This workflow captures leads via an n8n hosted form, validates and de-duplicates them in Google Sheets, enriches company details with Clearbit autocomplete, qualifies the lead with OpenAI, then logs results and routes follow-ups through Gmail…