# Answer WhatsApp sales queries from text, voice, photos, and video: n8n workflow

> Started by an incoming WhatsApp message, and works across WhatsApp and in-memory vectors. It puts Gemini and OpenAI behind a retrieval step, so answers are...

Source: https://millionrounds.com/workflow/answer-whatsapp-sales-queries-from-text-voice-photos-and-vid (Millionrounds; every figure on the page links to its filing or article)

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

# Answer WhatsApp sales queries from text, voice, photos, and video

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

Large Calls a model: Gemini, OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fanswer-whatsapp-sales-queries-from-text-voice-photos-and-vid)

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

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 13 Logic 4 Service 10

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

- 1 **Populate Product Catalogue** Manual trigger *Starts it*
- 2 **Embeddings for Indexing** Embeddings Open Ai *Model*
- 3 **Split Brochure Text** Text Splitter Recursive Character Text Splitter *Model*
- 4 **WhatsApp Trigger** Whats App trigger *Starts it*
- 5 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 6 **Per-Customer Chat Memory** Memory Buffer Window *Model*
- 7 **Embeddings for Retrieval** Embeddings Open Ai *Model*
- 8 **Knowledge Base Settings** Set *Logic*
- 9 **Insert Product Catalogue into Vector Store** Vector Store In Memory *Model*
- 10 **Load Brochure Document** Document Default Data Loader *Model*
- 11 **Configuration** Set *Logic*
- 12 **AI Sales Agent** Agent *Model*
- 13 **query_product_catalogue** Tool Vector Store *Model*
- 14 **Product Catalogue (Retrieve)** Vector Store In Memory *Model*
- 15 **Download Product Brochure** Http Request *Service*
- 16 **Route by Message Type** Switch *Logic*
- 17 **Reply to Customer** Whats App *Service*
- 18 **Extract Brochure Text** Extract From File *Service*
- 19 **Get Audio Media URL** Whats App *Service*
- 20 **Get Image Media URL** Whats App *Service*
- 21 **Get Video Media URL** Whats App *Service*
- 22 **Prepare Agent Input** Set *Logic*
- 23 **Reply Unsupported Message** Whats App *Service*
- 24 **Download Audio File** Http Request *Service*
- 25 **Download Image File** Http Request *Service*
- 26 **Download Video File** Http Request *Service*
- 27 **Transcribe Voice Note** Open Ai *Model*
- 28 **Analyze Image with GPT Vision** Open Ai *Model*
- 29 **Describe Video with Gemini** Google Gemini *Model*

## How it's built

- **Starts on:** An incoming WhatsApp message
- **Steps:** 29, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** WhatsApp, in-memory vectors
- **Model:** Gemini, 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 and in-memory vectors accounts, and a key for Gemini and 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 Gemini and 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 29 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 29 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%2Fanswer-whatsapp-sales-queries-from-text-voice-photos-and-vid)
- **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)[in-memory vectors](https://millionrounds.com/workflows?service=in-memory+vectors#library)

## Workflows like it

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

- [**Manage Streak CRM with WhatsApp and OpenAI** 29 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/manage-streak-crm-with-whatsapp-and-openai)
- [**Handle WhatsApp sales queries with OpenAI and Supabase** 26 steps · calls a model · Supabase vectors, WhatsApp](https://millionrounds.com/workflow/handle-whatsapp-sales-queries-with-openai-and-supabase)
- [**Send sales forecast charts and answer Q&A on WhatsApp** 23 steps · calls a model · Google Sheets, WhatsApp](https://millionrounds.com/workflow/send-sales-forecast-charts-and-answer-q-and-a-on-whatsapp)
- [**Send AI-personalized deal follow-ups from Zoho CRM with Slack** 15 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/send-ai-personalized-deal-follow-ups-from-zoho-crm-with-slac)
- [**RAG OCR pipeline for PDF document processing with OpenAI** 11 steps · calls a model · Google Drive, in-memory vectors](https://millionrounds.com/workflow/rag-ocr-pipeline-for-pdf-document-processing-with-openai)
- [**Run a WhatsApp sales chatbot with Gemini and HubSpot** 11 steps · calls a model · Google Sheets, WhatsApp](https://millionrounds.com/workflow/run-a-whatsapp-sales-chatbot-with-gemini-and-hubspot)
