Templates / Qualify and triage inbound leads with forms, webhooks and Google Gemini

Qualify and triage inbound leads with forms, webhooks and Google Gemini

Ready for 3.0

by Khan Muhammad · 0 views · created 2026-11-23

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What 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).

  1. Clean up the lead (Code): runs custom JavaScript code
  2. Qualify the lead (AI) (Information Extractor): extracts structured fields from text with AI, with model: Gemini
  3. Build the lead record (Code): runs custom JavaScript code
  4. Save to Leads table (Data table): uses Data table
  5. Hot lead? (If): checks a condition and branches into true / false
  6. Take the lead record (Code): runs custom JavaScript code
  7. Add to Hot leads table (Data table): uses Data table

Services it uses

Google Gemini Chat Model

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (7)

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…

Excerpt from Khan Muhammad's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.