# Large Language Learning with OpenAI and WhatsApp: n8n workflow

> 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...

Source: https://millionrounds.com/workflow/large-language-learning-with-openai-and-whatsapp (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Chat assistants](https://millionrounds.com/workflows?category=Chat+assistants#library)

# 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.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Flarge-language-learning-with-openai-and-whatsapp)

**24 steps** Large: read it before trusting it with anything live

**4** Branches: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 3 Model 6 Logic 10 Service 5

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **Validation Memory** Memory Buffer Window *Model*
- 3 **Phrase Generation Memory** Memory Buffer Window *Model*
- 4 **Daily 5PM Trigger** Schedule trigger *Starts it*
- 5 **WhatsApp Message Received** Whats App trigger *Starts it*
- 6 **Form Received** Form trigger *Starts it*
- 7 **Guessing Assistant** Agent *Model*
- 8 **Process form to generate phrase** Agent *Model*
- 9 **Store Phrase in Validation Memory** Agent *Model*
- 10 **Code in JavaScript 2** Code *Logic*
- 11 **If Text Node** If *Logic*
- 12 **Code in JavaScript** Code *Logic*
- 13 **Merge Form with News Data** Merge *Logic*
- 14 **Merge Form with News Data 2** Merge *Logic*
- 15 **Send Message After Guess** Whats App *Service*
- 16 **Send Phrase Message** Whats App *Service*
- 17 **RSS Reading System** Rss Feed Read *Service*
- 18 **If Start Node** If *Logic*
- 19 **RSS Reading System1** Rss Feed Read *Service*
- 20 **If Recent Node 2** If *Logic*
- 21 **Send Form Link Message** Whats App *Service*
- 22 **If Recent Node** If *Logic*
- 23 **Aggregate Node 2** Aggregate *Logic*
- 24 **Aggregate Node** Aggregate *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Flarge-language-learning-with-openai-and-whatsapp)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[RSS](https://millionrounds.com/workflows?service=RSS#library)[WhatsApp](https://millionrounds.com/workflows?service=WhatsApp#library)

## Workflows like it

Also chat assistants, with the same services where possible, closest in size first.

- [**Build an AI WhatsApp chatbot with Gemini and Wikipedia** 24 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/build-an-ai-whatsapp-chatbot-with-gemini-and-wikipedia)
- [**Respond to WhatsApp messages with Gemini** 24 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/respond-to-whatsapp-messages-with-gemini)
- [**Score AQI health risks with Open-Meteo and AirNow** 24 steps · calls a model · Slack, Twilio](https://millionrounds.com/workflow/score-aqi-health-risks-with-open-meteo-and-airnow)
- [**WhatsApp chatbot with OpenAI and OpenRouter** 24 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/whatsapp-chatbot-with-openai-and-openrouter)
- [**Build a multimodal WhatsApp assistant with OpenAI and Gemini** 23 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/build-a-multimodal-whatsapp-assistant-with-openai-and-gemini)
- [**AI-powered WhatsApp chatbot for text, voice, images & PDFs** 26 steps · calls a model · WhatsApp](https://millionrounds.com/workflow/ai-powered-whatsapp-chatbot-for-text-voice-images-and-pdfs)
