AI-powered WhatsApp chatbot 🤖📲 for text, voice, images & PDFs with memory 🧠
Needs changesWhat this workflow does
This AI workflow has 26 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud, OpenAI and OpenAI Chat Model.
How it runs
Trigger: On WhatsApp events (messages).
- Input type (Switch): routes items into 4 branches
- Text (Edit Fields (Set)): sets 1 field: text
- Get Audio Url (WhatsApp Business Cloud): media url get
- Get Image Url (WhatsApp Business Cloud): media url get
- Only PDF File (If): checks a condition and branches into true / false
- Not supported (WhatsApp Business Cloud): send
- AI Agent: runs an AI agent, with model: OpenAI Chat Model; memory: Simple Memory
- Download Audio (HTTP Request): calls an HTTP API
- Download Image (HTTP Request): calls an HTTP API
- Get File Url (WhatsApp Business Cloud): media url get
…plus 13 more steps. See the full node list below.
Services it uses
Other WhatsApp + OpenAI templates (104)
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 Agent1 (v1.8): 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).
Published 2025 — 19% of 2025 templates need changes for 3.0. See how template age affects 3.0 readiness →
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent1 (v1.8) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (12)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Extract from File
n8n-nodes-base.extractFromFile - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch
From the author
This workflow is a highly advanced multimodal AI assistant designed to operate through WhatsApp. It can understand and respond to text, images, voice messages, and PDF documents by combining OpenAI models with smart logic to adapt to the content received. ---…