Automation library · Content

Reply to WhatsApp text, audio, image, and video with Gemini

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

LargeCalls a model: GeminiRetrieval

24 stepsLarge: read it before trusting it with anything live
1Branch: places the flow splits
1Loop or waits
1Service it connects to

The flow

Starts it 1Model 8Logic 6Service 9

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

  1. 1WhatsApp TriggerWhats App triggerStarts it
  2. 2Window Buffer MemoryMemory Buffer WindowModel
  3. 3WikipediaTool WikipediaModel
  4. 4Google Gemini Chat ModelLm Chat Google GeminiModel
  5. 5Google Gemini Chat Model1Lm Chat Google GeminiModel
  6. 6Google Gemini Chat Model2Lm Chat Google GeminiModel
  7. 7Split Out Message PartsSplit OutLogic
  8. 8AI AgentAgentModel
  9. 9Image ExplainerChain LlmModel
  10. 10Text SummarizerChain LlmModel
  11. 11Redirect Message TypesSwitchLogic
  12. 12Respond to UserWhats AppService
  13. 13Get User's MessageSetLogic
  14. 14Get Audio URLWhats AppService
  15. 15Get Video URLWhats AppService
  16. 16Get Image URLWhats AppService
  17. 17Get TextWaitLogic
  18. 18Download AudioHttp RequestService
  19. 19Download VideoHttp RequestService
  20. 20Download ImageHttp RequestService
  21. 21Google Gemini AudioHttp RequestService
  22. 22Google Gemini VideoHttp RequestService
  23. 23Format Response1SetLogic
  24. 24Format ResponseSetLogic

How it's built

Starts on
An incoming WhatsApp message
Steps
24, with 1 branch, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
WhatsApp
Model
Gemini
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 Gemini. 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. 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 24 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 24 steps before you point it at anything that matters.