Handle WhatsApp support text and voice messages with OpenAI GPT-5 Mini
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.
What this workflow does
This AI workflow has 13 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).
- Set Business Details (Edit Fields (Set)): sets 4 fields: businessName, aboutBusiness, senderPhoneNumberId…
- Route by WhatsApp Message Type (Switch): routes items into 2 branches
- Extract Text Message (Edit Fields (Set)): sets 1 field: userMessage
- Retrieve Voice Note URL (WhatsApp Business Cloud): media url get
- Prompt for Text or Voice Message (WhatsApp Business Cloud): send (message)
- AI Support Response Agent (AI Agent): runs an AI agent, with model: OpenAI GPT-5 Mini Model; memory: Memory for Each Contact
- Fetch Voice Note Audio (HTTP Request): calls an HTTP API (GET)
- Send WhatsApp Response (WhatsApp Business Cloud): send (message)
- Transcribe Audio to Text (OpenAI): transcribe (audio)
- Extract Text from Voice Note (Edit Fields (Set)): sets 1 field: userMessage
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 (9)
- WhatsApp Trigger
n8n-nodes-base.whatsAppTrigger - Edit Fields (Set)
n8n-nodes-base.set - Switch
n8n-nodes-base.switch - WhatsApp Business Cloud
n8n-nodes-base.whatsApp - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow
From the author
Quick overview This workflow responds to incoming WhatsApp Business messages, handling both text and voice notes by transcribing audio with OpenAI and replying with an OpenAI chat agent that uses per-contact conversation memory and answers only from the…