AI-powered WhatsApp customer service with GPT-4, smart routing & knowledge base
Needs changesWhat 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.
- Voice or Text (Switch): routes items into branches
- Download media (WhatsApp Business Cloud): uses WhatsApp Business Cloud
- Text (Edit Fields (Set)): sets or maps fields
- Transcribe (OpenAI): uses OpenAI
- Merge: merges the data from its input branches
- intent classifier (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- sentiment classifier (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- privacy classifier (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Merge: merges the data from its input branches
- 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
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.0 | Replace 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)
- OpenAI
@n8n/n8n-nodes-langchain.openAi - Merge
n8n-nodes-base.merge - Aggregate
n8n-nodes-base.aggregate - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Think Tool
@n8n/n8n-nodes-langchain.toolThink - Switch
n8n-nodes-base.switch - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Postgres Chat Memory
@n8n/n8n-nodes-langchain.memoryPostgresChat - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Docs Tool
n8n-nodes-base.googleDocsTool - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Google Sheets
n8n-nodes-base.googleSheets - Edit Fields (Set)
n8n-nodes-base.set - No Operation, do nothing
n8n-nodes-base.noOp - Gmail
n8n-nodes-base.gmail - Supabase Tool
n8n-nodes-base.supabaseTool - Text Classifier
@n8n/n8n-nodes-langchain.textClassifier - Supabase
n8n-nodes-base.supabase - AI Agent
@n8n/n8n-nodes-langchain.agent - WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - WhatsApp Business Cloud
n8n-nodes-base.whatsApp
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…