Qualify WhatsApp leads and book sales calls with GPT‑4.1 and Google Sheets
Needs changesWhat this workflow does
This AI workflow has 18 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects OpenAI Chat Model. It also calls api.twilio.com, sheets.googleapis.com and slack.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Normalize Message Fields (Edit Fields (Set)): sets 6 fields: phoneNumber, incomingMessage, messageId…
- Load Lead State from Sheet (HTTP Request): calls an HTTP API
- JS - Resolve Lead State (Code): runs custom JavaScript code
- Python - Detect Intent (Code): runs custom Python code
- Route - Book Call? (Filter): keeps only the items that match a condition
- Route - FAQ? (Filter): keeps only the items that match a condition
- Route - Hot Lead? (Filter): keeps only the items that match a condition
- Wait: pauses before continuing
- AI - Sales Closer Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-4.1-mini
- JS - Score & Format Reply (Code): runs custom JavaScript code
…plus 6 more steps. See the full node list below.
Services it uses
Other OpenAI + Google Sheets templates (2,011) · Other Google Sheets + Slack templates (1,314) · Other OpenAI + Slack templates (979)
HTTP calls to: api.twilio.com, sheets.googleapis.com, slack.com, googleapis.com
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 AI - Sales Closer Agent (v1.6): 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 →
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI - Sales Closer Agent (v1.6) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Filter
n8n-nodes-base.filter - Wait
n8n-nodes-base.wait - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
This workflow automatically qualifies leads, answers FAQs, and books sales calls via WhatsApp using AI-powered conversation logic. Who's it for • Sales teams handling high inbound message volume • SaaS / service businesses using WhatsApp for outreach •…