Automation library · Documents and files

Create a WhatsApp chatbot with OpenAI and Whisper

Started by an event in a connected app, and works across Redis. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 27 steps, 2 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAIRetrieval

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

The flow

Starts it 1Model 5Logic 14Service 7

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

  1. 1Simple MemoryMemory Buffer WindowModel
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3When clicking 'Execute workflow'Manual triggerStarts it
  4. 4AI AgentAgentModel
  5. 5Set fields1SetLogic
  6. 6WaitWaitLogic
  7. 7RedisRedisService
  8. 8Send Message to UserHttp RequestService
  9. 9Redis1RedisService
  10. 10SwitchSwitchLogic
  11. 11No Operation, do nothing3No OpLogic
  12. 12Redis2RedisService
  13. 13Wait3WaitLogic
  14. 14Split OutSplit OutLogic
  15. 15Code in JavaScriptCodeLogic
  16. 16Switch TypeSwitchLogic
  17. 17Text ContentSetLogic
  18. 18Get the audioHttp RequestService
  19. 19Get the photoHttp RequestService
  20. 20AggregateAggregateLogic
  21. 21Download the audioHttp RequestService
  22. 22Analyze imageOpen AiModel
  23. 23MergeMergeLogic
  24. 24Transcribe a recordingOpen AiModel
  25. 25Image ContentSetLogic
  26. 26Chat InputSetLogic
  27. 27Audio ContentSetLogic

How it's built

Starts on
An event in a connected app
Steps
27, with 2 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Redis
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 Redis account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

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 27 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 27 steps before you point it at anything that matters.