Automation library ยท Lead generation

Auto-respond and classify WhatsApp leads with Ollama AI

Started by an incoming WhatsApp message, and works across Google Calendar, Google Sheets and WhatsApp. It puts a local model behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 20 steps, 1 branch: a working afternoon to understand properly.

MediumCalls a model: a local modelRetrieval

20 stepsMedium: a working afternoon
1Branch: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 3Logic 7Service 9

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

  1. 1WhatsApp TriggerWhats App triggerStarts it
  2. 2Simple MemoryMemory Buffer WindowModel
  3. 3Ollama Chat ModelLm Chat OllamaModel
  4. 4๐Ÿ”ง Parse WhatsApp MessageCodeLogic
  5. 5๐Ÿค– AI Intent ClassifierAgentModel
  6. 6๐ŸŽฏ Extract ClassificationCodeLogic
  7. 7๐Ÿ”€ Route by IntentSwitchLogic
  8. 8๐Ÿ’ฌ Hot Lead ReplyCodeLogic
  9. 9๐Ÿ’ฌ Warm Lead ReplyCodeLogic
  10. 10๐Ÿ’ฌ Support ReplyCodeLogic
  11. 11๐Ÿง  Smart Qualification ReplyCodeLogic
  12. 12๐Ÿ“Š Log Hot LeadGoogle SheetsService
  13. 13๐Ÿ“Š Log Warm LeadGoogle SheetsService
  14. 14๐Ÿ“Š Log SupportGoogle SheetsService
  15. 15๐Ÿ“ฑ Send Qualifying QuestionWhats AppService
  16. 16๐Ÿ“… Book Meeting (Hot)Google CalendarService
  17. 17๐Ÿ“… Book Meeting (Warm)Google CalendarService
  18. 18๐Ÿ“ฑ Send Support ReplyWhats AppService
  19. 19๐Ÿ“ฑ Send Meeting (Hot)Whats AppService
  20. 20๐Ÿ“ฑ Send Meeting (Warm)Whats AppService

How it's built

Starts on
An incoming WhatsApp message
Steps
20, with 1 branch
Size
Medium: a working afternoon
Connects to
Google Calendar, Google Sheets, WhatsApp
Model
a local model
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 Google Calendar, Google Sheets and WhatsApp accounts, and a key for a local model. 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 a local model. 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?

Plan an afternoon. 20 steps is enough that you should read each one before running it.

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