Automation library · Chat assistants

Large Language Learning with OpenAI and WhatsApp

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

LargeCalls a model: OpenAIRetrieval

24 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
0Loops or waits
2Services it connects to

The flow

Starts it 3Model 6Logic 10Service 5

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

  1. 1OpenAI Chat ModelLm Chat Open AiModel
  2. 2Validation MemoryMemory Buffer WindowModel
  3. 3Phrase Generation MemoryMemory Buffer WindowModel
  4. 4Daily 5PM TriggerSchedule triggerStarts it
  5. 5WhatsApp Message ReceivedWhats App triggerStarts it
  6. 6Form ReceivedForm triggerStarts it
  7. 7Guessing AssistantAgentModel
  8. 8Process form to generate phraseAgentModel
  9. 9Store Phrase in Validation MemoryAgentModel
  10. 10Code in JavaScript 2CodeLogic
  11. 11If Text NodeIfLogic
  12. 12Code in JavaScriptCodeLogic
  13. 13Merge Form with News DataMergeLogic
  14. 14Merge Form with News Data 2MergeLogic
  15. 15Send Message After GuessWhats AppService
  16. 16Send Phrase MessageWhats AppService
  17. 17RSS Reading SystemRss Feed ReadService
  18. 18If Start NodeIfLogic
  19. 19RSS Reading System1Rss Feed ReadService
  20. 20If Recent Node 2IfLogic
  21. 21Send Form Link MessageWhats AppService
  22. 22If Recent NodeIfLogic
  23. 23Aggregate Node 2AggregateLogic
  24. 24Aggregate NodeAggregateLogic

How it's built

Starts on
An incoming WhatsApp message
Steps
24, with 4 branches
Size
Large: read it before trusting it with anything live
Connects to
RSS, 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 RSS and WhatsApp accounts, 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 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.