Handle WhatsApp customer inquiries with AI and intent routing
Needs changesWhat this workflow does
This AI workflow has 14 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud, Google Gemini Chat Model and Google Docs.
How it runs
Trigger: On WhatsApp events (messages).
- Parse WhatsApp Message Data (Code): runs custom JavaScript code
- Classify User Intent (Code): runs custom JavaScript code
- Route by Intent (Switch): routes items into 2 branches
- Generate Product Response (Code): runs custom JavaScript code
- Generate Contact Info Response (Code): runs custom JavaScript code
- Generate Default Response (Code): runs custom JavaScript code
- Build AI System Prompt (Code): runs custom JavaScript code
- AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Google Docs - Product Catalog (Optional)); memory: Conversation Memory
- Format AI Response (Code): runs custom JavaScript code
- Send WhatsApp Response (WhatsApp Business Cloud): uses WhatsApp Business Cloud
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 - Handle Complex Queries (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).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent - Handle Complex Queries (v1.7) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (8)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Code
n8n-nodes-base.code - Switch
n8n-nodes-base.switch - AI Agent
@n8n/n8n-nodes-langchain.agent - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Google Docs Tool
n8n-nodes-base.googleDocsTool - WhatsApp Business Cloud
n8n-nodes-base.whatsApp
From the author
Handle WhatsApp customer inquiries with AI and intent routing (Whatsapp Chatbot) An intelligent, fully customizable WhatsApp customer support chatbot template that works for ANY business - whether you sell fashion, electronics, food, furniture, cosmetics, or…