Templates / Handle WhatsApp customer inquiries with AI and intent routing

Handle WhatsApp customer inquiries with AI and intent routing

Needs changes

by Hemanth Arety ✓ · 3,084 views · created 2025-10-28 · Support Chatbot, AI Chatbot

Needs 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 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).

  1. Parse WhatsApp Message Data (Code): runs custom JavaScript code
  2. Classify User Intent (Code): runs custom JavaScript code
  3. Route by Intent (Switch): routes items into 2 branches
  4. Generate Product Response (Code): runs custom JavaScript code
  5. Generate Contact Info Response (Code): runs custom JavaScript code
  6. Generate Default Response (Code): runs custom JavaScript code
  7. Build AI System Prompt (Code): runs custom JavaScript code
  8. AI Agent: runs an AI agent, with model: Google Gemini Chat Model; 1 tool (Google Docs - Product Catalog (Optional)); memory: Conversation Memory
  9. Format AI Response (Code): runs custom JavaScript code
  10. Send WhatsApp Response (WhatsApp Business Cloud): uses WhatsApp Business Cloud

Services it uses

WhatsApp Business CloudGoogle Gemini Chat ModelGoogle Docs

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.0Replace 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)

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…

Excerpt from Hemanth Arety's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.