Qualify roofing leads and send WhatsApp icebreakers with Gemini and Sheets
Needs changesWhat this workflow does
This AI workflow has 22 nodes and runs when someone submits an n8n form (“New Lead Inquiry”). Along the way it connects Google Sheets, Slack, Google Gemini Chat Model and WhatsApp Business Cloud.
How it runs
Trigger: When someone submits an n8n form (“New Lead Inquiry”).
- Normalize Lead Data (Code): runs custom JavaScript code
- Read Leads from Sheets (Google Sheets): uses Google Sheets
- If: checks a condition and branches into true / false
- Notify Duplicate Lead on Slack (Slack): uses Slack
- Append New Lead to Sheets (Google Sheets): append or update
- Lead Qualification Agent (AI Agent): runs an AI agent, with model: Gemini Model Provider; output parser: Parse AI Output
- Prepare AI Lead Data (Edit Fields (Set)): sets 8 fields: lead_name, company, inquiry_message…
- Update Lead AI Results in Sheets (Google Sheets): update
- Route by Lead Intent (Switch): routes items into 2 branches
- Alert Sales on Slack (Slack): uses Slack
…plus 9 more steps. See the full node list below.
Services it uses
Other Google Sheets + Slack templates (1,314) · Other Google Gemini + Google Sheets templates (819) · Other Google Gemini + Slack templates (309)
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 Lead Qualification Agent (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).
Published 2026 — 6% of 2026 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Lead Qualification Agent (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (11)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - WhatsApp Business Cloud
n8n-nodes-base.whatsApp
From the author
Quick overview Youtube Video: https://youtu.be/X28g1l70k8?si=GejNEDdS5ML6PX17 This workflow captures roofing inquiries via an n8n Form, deduplicates and stores leads in Google Sheets, uses Google Gemini to score buying intent and draft a WhatsApp icebreaker,…