Send WhatsApp lead follow-ups and triage replies with Google Sheets and OpenAI
Ready for 3.0What this workflow does
This AI workflow has 28 nodes and runs on a schedule (cron 0 9-18 * * 1-6) (plus 1 other trigger). Along the way it connects WhatsApp Business Cloud, Google Sheets, Gmail and OpenAI Chat Model.
How it runs
Trigger: On a schedule (cron 0 9-18 * * 1-6) (plus 1 other trigger).
- Settings (Edit Fields (Set)): sets 11 fields: clinic_name, sheet_url, sheet_tab…
- Is this a patient reply? (If): checks a condition and branches into true / false
- Read the reply (Code): runs custom JavaScript code
- Get enquiries (Google Sheets): read
- Get enquiries for reply (Google Sheets): read
- Plan follow-ups (Code): runs custom JavaScript code
- Match the lead (Code): runs custom JavaScript code
- Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
- Understand the reply (Information Extractor): extracts structured fields from text with AI, with model: OpenAI Chat Model
- Save follow-up stages (Google Sheets): update
…plus 15 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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 (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - Switch
n8n-nodes-base.switch - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Gmail
n8n-nodes-base.gmail - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
From the author
Quick overview This workflow manages clinic lead follow-ups from Google Sheets by sending timed WhatsApp template nudges, triaging inbound WhatsApp replies with OpenAI, and alerting your team via Gmail with both a scheduled digest and instant reply…