Handle WhatsApp customer inquiries with AI and intent routing
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| 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
What it does
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 anything else. This workflow combines pre-built responses for common queries with AI for complex questions, creating a cost-effective 24/7 customer support solution that adapts to your specific products and services. Who it's for This universal template works for ANY business type: - E-commerce stores (fashion, electronics, home goods, beauty, etc.) - Local retail shops (boutiques, grocery stores, bookshops, etc.) - Service businesses (salons, repair services, consultancies, etc.) - Restaurants & cafes (food delivery, reservations, menu inquiries) - Any business using WhatsApp Business API for customer communication What it does This is a UNIVERSAL template - it works for ANY business by simply updating the product categories, company information, and response templates. No coding knowledge required for basic customization! The workflow automates WhatsApp customer support through intelligent routing and AI assistance: 1. Receives WhatsApp messages via WhatsApp Business API webhook trigger 2. Parses message data extracting user info, chat ID, and message text 3. Classifies intent using pattern matching to determine what the customer wants (product inquiry, contact info, support, greeting, etc.) 4. Routes intelligently to the most appropriate response handler: - Product inquiries → Pre-built catalog responses with pricing and links - Contact information → Static company details (address, phone, hours) - Complex queries → AI agent with full company context 5. Maintains conversation context using memory to remember previous messages 6. Sends formatted responses back to the customer via WhatsApp with markdown formatting The hybrid approach (pre-built responses + AI) balances speed, cost, and intelligence - common questions get instant answers while complex queries receive personalized AI assistance. How to set up Requirements You'll need: - WhatsApp Business API access (via Twilio, 360Dialog, Meta Cloud API, or other providers) - Google Gemini API key (for AI responses) - Get API key - Google Docs (optional - for product catalog reference) - n8n instance with WhatsApp nodes installed Setup Steps 1. Configure WhatsApp Business API - Sign up with a WhatsApp Business API provider (Twilio, 360Dialog, or Meta) - Get your API credentials (phone number ID, access token, webhook verify token) - Add credentials to n8n's WhatsApp node - Copy the webhook URL from n8n and configure it in your provider's dashboard 2. Customize Company Information - Open the "Build AI System Prompt" node - Replace all placeholder text with your actual company details: - Company name - Address and phone numbers - Email and website - Product categories and brands - Policies (COD, warranty, returns, delivery) - Store hours 3. Configure Product Responses - Edit the "Generate Product Response" node - Replace the sample products with your actual catalog: - Product names and specifications - Prices (update currency if not using INR) - Product URLs from your website - Add/remove product categories as needed 4. Update Contact Details - Edit the "Generate Contact Info Response" node - Add your complete contact information - Update store hours and addresses 5. Set Up AI Credentials - Add your Google Gemini API key to the credential manager - (Optional) Connect Google Docs if you want to use a product catalog document 6. Activate and Test - Activate the workflow in n8n - Send test messages to your WhatsApp Business number - Test different intents: greetings, product questions, contact requests - Verify responses are accurate and timely WhatsApp Business API Providers Option 1: Meta Cloud API (Official, free for moderate usage) - Sign up at: https://developers.facebook.com/ - Requires Facebook Business account - Best for