Qualify and triage inbound leads with forms, webhooks and Google Gemini
Ready for 3.0What this workflow does
This AI workflow has 10 nodes and runs when someone submits an n8n form (“Tell us about your project”) (plus 1 other trigger). Along the way it connects Google Gemini Chat Model.
How it runs
Trigger: When someone submits an n8n form (“Tell us about your project”) (plus 1 other trigger).
- Clean up the lead (Code): runs custom JavaScript code
- Qualify the lead (AI) (Information Extractor): extracts structured fields from text with AI, with model: Gemini
- Build the lead record (Code): runs custom JavaScript code
- Save to Leads table (Data table): uses Data table
- Hot lead? (If): checks a condition and branches into true / false
- Take the lead record (Code): runs custom JavaScript code
- Add to Hot leads table (Data table): uses Data table
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Webhook
n8n-nodes-base.webhook - Code
n8n-nodes-base.code - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Data table
n8n-nodes-base.dataTable - If
n8n-nodes-base.if
From the author
Quick overview This workflow captures incoming leads from an n8n Form or a webhook, uses Google Gemini to qualify and summarize them, drafts a reply email, and stores everything in n8n Data Tables, copying hot leads into a separate hotleads table. How it…