Automation library · CRM

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.

LargeCalls a model: Gemini, OpenAIRetrieval

29 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 2Model 13Logic 4Service 10

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

  1. 1Populate Product CatalogueManual triggerStarts it
  2. 2Embeddings for IndexingEmbeddings Open AiModel
  3. 3Split Brochure TextText Splitter Recursive Character Text SplitterModel
  4. 4WhatsApp TriggerWhats App triggerStarts it
  5. 5OpenAI Chat ModelLm Chat Open AiModel
  6. 6Per-Customer Chat MemoryMemory Buffer WindowModel
  7. 7Embeddings for RetrievalEmbeddings Open AiModel
  8. 8Knowledge Base SettingsSetLogic
  9. 9Insert Product Catalogue into Vector StoreVector Store In MemoryModel
  10. 10Load Brochure DocumentDocument Default Data LoaderModel
  11. 11ConfigurationSetLogic
  12. 12AI Sales AgentAgentModel
  13. 13query_product_catalogueTool Vector StoreModel
  14. 14Product Catalogue (Retrieve)Vector Store In MemoryModel
  15. 15Download Product BrochureHttp RequestService
  16. 16Route by Message TypeSwitchLogic
  17. 17Reply to CustomerWhats AppService
  18. 18Extract Brochure TextExtract From FileService
  19. 19Get Audio Media URLWhats AppService
  20. 20Get Image Media URLWhats AppService
  21. 21Get Video Media URLWhats AppService
  22. 22Prepare Agent InputSetLogic
  23. 23Reply Unsupported MessageWhats AppService
  24. 24Download Audio FileHttp RequestService
  25. 25Download Image FileHttp RequestService
  26. 26Download Video FileHttp RequestService
  27. 27Transcribe Voice NoteOpen AiModel
  28. 28Analyze Image with GPT VisionOpen AiModel
  29. 29Describe Video with GeminiGoogle GeminiModel

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.