Automate customer support with WhatsApp AI assistant for Whatsapp groups
Needs changesWhat this workflow does
This AI workflow has 13 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Google Gemini Chat Model, Google Sheets and Google Docs.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- 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: uses Google Sheets
- 24-hour window check (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- cleanAnswer (Code): runs custom JavaScript code
- WhapAround - Respond Template (Respond to Webhook): sends the response back to the webhook caller
- WhapAround - Respond Message (Respond to Webhook): sends the response back to the webhook caller
Services it uses
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).
| 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 - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - 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 - Webhook
n8n-nodes-base.webhook - Respond to Webhook
n8n-nodes-base.respondToWebhook
From the author
How it works Your WhatsApp AI Assistant automatically handles customer inquiries by linking your Google Docs knowledge base to incoming WhatsApp messages. The system instantly processes customer questions, references your business documentation, and delivers…