# Build a multimodal WhatsApp assistant with OpenAI and Gemini: n8n workflow

> Started by an incoming WhatsApp message, and works across WhatsApp. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply...

Source: https://millionrounds.com/workflow/build-a-multimodal-whatsapp-assistant-with-openai-and-gemini (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# Build a multimodal WhatsApp assistant with OpenAI and Gemini

Started by an incoming WhatsApp message, and works across WhatsApp. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 23 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fbuild-a-multimodal-whatsapp-assistant-with-openai-and-gemini)

**23 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 7 Logic 7 Service 8

The steps in the order they run, from what starts it.

- 1 **WhatsApp Trigger** Whats App trigger *Starts it*
- 2 **OpenAI Vision Model** Lm Chat Open Ai *Model*
- 3 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 4 **Conversation Memory** Memory Buffer Window *Model*
- 5 **Wikipedia** Tool Wikipedia *Model*
- 6 **Split out messages** Split Out *Logic*
- 7 **Analyze image with GPT** Chain Llm *Model*
- 8 **AI Agent** Agent *Model*
- 9 **Configuration** Set *Logic*
- 10 **Normalize user message** Set *Logic*
- 11 **Format reply for WhatsApp** Set *Logic*
- 12 **Route by message type** Switch *Logic*
- 13 **Send WhatsApp reply** Whats App *Service*
- 14 **Get audio URL** Whats App *Service*
- 15 **Get video URL** Whats App *Service*
- 16 **Get image URL** Whats App *Service*
- 17 **Get text message** Set *Logic*
- 18 **Download audio** Http Request *Service*
- 19 **Download video** Http Request *Service*
- 20 **Download image** Http Request *Service*
- 21 **Transcribe audio with OpenAI** Open Ai *Model*
- 22 **Describe video with Gemini** Http Request *Service*
- 23 **Extract video description** Set *Logic*

## How it's built

- **Starts on:** An incoming WhatsApp message
- **Steps:** 23, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** WhatsApp
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own WhatsApp account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an incoming WhatsApp message.

Does it use AI?

Yes. It calls OpenAI. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 23 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fbuild-a-multimodal-whatsapp-assistant-with-openai-and-gemini)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Build an AI WhatsApp chatbot with Gemini and Wikipedia** 24 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/build-an-ai-whatsapp-chatbot-with-gemini-and-wikipedia)
- [**Complete business WhatsApp AI-powered RAG chatbot with OpenAI** 22 steps · calls a model · Google Drive, Qdrant](https://millionrounds.com/workflow/complete-business-whatsapp-ai-powered-rag-chatbot-with-opena)
- [**Large Language Learning with OpenAI and WhatsApp** 24 steps · calls a model · RSS, WhatsApp](https://millionrounds.com/workflow/large-language-learning-with-openai-and-whatsapp)
- [**Respond to WhatsApp messages with Gemini** 24 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/respond-to-whatsapp-messages-with-gemini)
- [**Score AQI health risks with Open-Meteo and AirNow** 24 steps · calls a model · Slack, Twilio](https://millionrounds.com/workflow/score-aqi-health-risks-with-open-meteo-and-airnow)
- [**Send daily birthday greetings with Gmail and WhatsApp** 22 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/send-daily-birthday-greetings-with-gmail-and-whatsapp)
