Automation library · Chat assistants

AI-powered WhatsApp chatbot for text, voice, images & PDFs

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. 26 steps, 3 branches: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

26 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
0Loops or waits
1Service it connects to

The flow

Starts it 1Model 6Logic 8Service 11

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

  1. 1WhatsApp TriggerWhats App triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Simple MemoryMemory Buffer WindowModel
  4. 4Input typeSwitchLogic
  5. 5AI Agent1AgentModel
  6. 6TextSetLogic
  7. 7Get Audio UrlWhats AppService
  8. 8Get Image UrlWhats AppService
  9. 9Only PDF FileIfLogic
  10. 10Not supportedWhats AppService
  11. 11From audio to audio?IfLogic
  12. 12Download AudioHttp RequestService
  13. 13Download ImageHttp RequestService
  14. 14Get File UrlWhats AppService
  15. 15Incorrect formatWhats AppService
  16. 16Generate Audio ResponseOpen AiModel
  17. 17Send messageWhats AppService
  18. 18Transcribe AudioOpen AiModel
  19. 19Analyze ImageOpen AiModel
  20. 20Download FileHttp RequestService
  21. 21Fix mimeType for AudioCodeLogic
  22. 22AudioSetLogic
  23. 23ImageSetLogic
  24. 24Extract from FileExtract From FileService
  25. 25Send audioWhats AppService
  26. 26FileSetLogic

How it's built

Starts on
An incoming WhatsApp message
Steps
26, with 3 branches
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 26 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 26 steps before you point it at anything that matters.