Templates / Answer WhatsApp text, voice, image and video messages with OpenAI and Gemini

Answer WhatsApp text, voice, image and video messages with OpenAI and Gemini

Ready for 3.0

by Dr. Firas ✓ · 278 views · created 2026-07-22 · Support Chatbot, AI Chatbot

Ready 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 19 nodes and runs on WhatsApp events (messages). Along the way it connects WhatsApp Business Cloud, OpenAI, Google Gemini and OpenAI Chat Model and 1 more.

How it runs

Trigger: On WhatsApp events (messages).

  1. Configuration (Edit Fields (Set)): sets 7 fields: system_prompt, openai_model, gemini_model…
  2. Split Out: splits a list into separate items
  3. Route by Message Type (Switch): routes items into 3 branches
  4. Get Audio Download URL (WhatsApp Business Cloud): media url get
  5. Get Video Download URL (WhatsApp Business Cloud): media url get
  6. Get Image Download URL (WhatsApp Business Cloud): media url get
  7. Prepare Agent Input (Edit Fields (Set)): sets 4 fields: message_type, message_text, message_caption…
  8. Download Audio File (HTTP Request): calls an HTTP API
  9. Download Video File (HTTP Request): calls an HTTP API
  10. Download Image File (HTTP Request): calls an HTTP API

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

Services it uses

WhatsApp Business CloudOpenAIGoogle GeminiOpenAI Chat ModelWikipedia

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)

From the author

Quick overview This workflow replies to incoming WhatsApp Business messages (text, voice notes, images, and videos) by transcribing or describing media with OpenAI and Google Gemini, then generating a conversational response with an OpenAI-powered agent that…

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