Run a multimodal WhatsApp AI assistant with OpenAI for text, voice and images
Ready for 3.0What this workflow does
This AI workflow has 30 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).
- Configuration (Edit Fields (Set)): sets 9 fields: whatsapp_phone_number_id, image_command, image_size…
- Input type (Switch): routes items into 4 branches
- Is image request? (If): checks a condition and branches into true / false
- 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
- Generate image (OpenAI): work with image
- Text (Edit Fields (Set)): sets 1 field: text
- Download Audio (HTTP Request): calls an HTTP API
…plus 17 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (12)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - HTTP Request
n8n-nodes-base.httpRequest - Extract from File
n8n-nodes-base.extractFromFile - Code
n8n-nodes-base.code
From the author
Quick overview This workflow turns WhatsApp into a multimodal assistant that answers text, voice notes, images, and PDF documents using OpenAI, and can generate images with DALL·E on demand, replying back in WhatsApp with either text, audio, or an image. How…