Templates / AI-powered WhatsApp customer service with GPT-4, smart routing & knowledge base

AI-powered WhatsApp customer service with GPT-4, smart routing & knowledge base

Needs changes

by Paul ✓ · 613 views · created 2025-08-24 · AI Chatbot, Multimodal AI

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 37 nodes and runs on WhatsApp events. Along the way it connects OpenAI, OpenAI Chat Model, Postgres Chat Memory and Google Docs and 4 more.

How it runs

Trigger: On WhatsApp events.

  1. Voice or Text (Switch): routes items into branches
  2. Download media (WhatsApp Business Cloud): uses WhatsApp Business Cloud
  3. Text (Edit Fields (Set)): sets or maps fields
  4. Transcribe (OpenAI): uses OpenAI
  5. Merge: merges the data from its input branches
  6. intent classifier (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  7. sentiment classifier (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  8. privacy classifier (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
  9. Merge: merges the data from its input branches
  10. Generate conv context (AI Agent): runs an AI agent, with model: OpenAI Chat Model; 1 tool (Supabase)

…plus 11 more steps. See the full node list below.

Services it uses

OpenAIOpenAI Chat ModelPostgres Chat MemoryGoogle DocsGoogle SheetsGmailSupabaseWhatsApp Business Cloud

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 Customer service AGENT (v1.8): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Removed in 3.0Replace with
AI Agent v1 (old agent modes)
Customer service AGENT (v1.8)
Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Nodes used (21)

From the author

AI-Powered Customer Service Automation with Smart Routing How it works Core Intelligence Pipeline • Multi-Layer Message Analysis - Every customer interaction passes through three specialized AI classifiers: privacy detection (identifies sensitive data and…

Excerpt from Paul'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.