Automation library · Money admin

Score leads and send WhatsApp proposals with Gemini

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

LargeCalls a model: GeminiRetrieval

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

The flow

Starts it 2Model 6Logic 4Service 16

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

  1. 1When New Lead ReceivedWebhookStarts it
  2. 2Gemini Chat ModelLm Chat Google GeminiModel
  3. 3Parse Structured OutputOutput Parser StructuredModel
  4. 4When WhatsApp Message ReceivedWhats App triggerStarts it
  5. 5Gemini Chat Model ServiceLm Chat Google GeminiModel
  6. 6Get Redis Chat HistoryMemory Redis ChatModel
  7. 7Update Stage to Proposal SentHigh Level ToolService
  8. 8Close OpportunityHigh Level ToolService
  9. 9Save User RequirementsHigh Level ToolService
  10. 10Send Telegram MessageTelegram ToolService
  11. 11Prepare Lead DataSetLogic
  12. 12Lead Processor AgentAgentModel
  13. 13If Valid Sender ExistsIfLogic
  14. 14Customer Service AgentAgentModel
  15. 15Fetch Google AI Lead OverviewApifyService
  16. 16Route by Lead TypeSwitchLogic
  17. 17Fetch GHL ContactsHigh LevelService
  18. 18Send WhatsApp ResponseWhats AppService
  19. 19Upsert Contact BHigh LevelService
  20. 20Upsert Contact AHigh LevelService
  21. 21Get OpportunitiesHigh LevelService
  22. 22Create Opportunity BHigh LevelService
  23. 23Create OpportunityHigh LevelService
  24. 24If Opportunity ExistsIfLogic
  25. 25Send WhatsApp Template BWhats AppService
  26. 26Send WhatsApp Template AWhats AppService
  27. 27Update Opportunity BHigh LevelService
  28. 28Update Opportunity AHigh LevelService

How it's built

Starts on
An incoming WhatsApp message
Steps
28, with 3 branches
Size
Large: read it before trusting it with anything live
Connects to
Apify, GoHighLevel, WhatsApp
Model
Gemini
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 Apify, GoHighLevel and WhatsApp accounts, and a key for Gemini. 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 Gemini. 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 28 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 28 steps before you point it at anything that matters.