Customer support WhatsApp bot with Google Docs knowledge base and Gemini AI
Needs changesWhat this workflow does
This AI workflow has 13 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud, Google Gemini Chat Model, Google Sheets and Google Docs.
How it runs
Trigger: On WhatsApp events (messages).
- company's knowledge (Google Docs): get
- Prepare Prompt (AI Transform): uses AI Transform
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; memory: Simple Memory
- Date & Time: formats or calculates dates
- Google Sheets: append or update
- 24-hour window check (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- cleanAnswer (Code): runs custom JavaScript code
- Send Pre-approved Template Message to Reopen the Conversation (WhatsApp Business Cloud): uses WhatsApp Business Cloud
- Send AI Agent's Answer (WhatsApp Business Cloud): send
Services it uses
Other Google Gemini + Google Sheets templates (819) · Other Google Sheets + Google Docs templates (122) · Other WhatsApp + Google Sheets templates (119)
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 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.
- Also check AI Transform: Automatically migrated to a Code node on upgrade, keeping the generated JavaScript. You can no longer add new AI Transform nodes.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
Published 2025 — 19% of 2025 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) AI 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)
- AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - AI Transform
n8n-nodes-base.aiTransform - Google Sheets
n8n-nodes-base.googleSheets - Date & Time
n8n-nodes-base.dateTime - Google Docs
n8n-nodes-base.googleDocs - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
From the author
Document-Aware WhatsApp AI Bot for Customer Support Google Docs-Powered WhatsApp Support Agent 24/7 WhatsApp AI Assistant with Live Knowledge from Google Docs 📝Description Template Smart WhatsApp AI Assistant Using Google Docs Help customers instantly on…