# Score leads and send WhatsApp proposals with Gemini: n8n workflow

> Started by an incoming WhatsApp message, and works across Apify, GoHighLevel and WhatsApp.

Source: https://millionrounds.com/workflow/score-leads-and-send-whatsapp-proposals-with-gemini-2 (Millionrounds; every figure on the page links to its filing or article)

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

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

Large Calls a model: Gemini Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fscore-leads-and-send-whatsapp-proposals-with-gemini-2)

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

**3** Branches: places the flow splits

**0** Loops or waits

**3** Services it connects to

## The flow

Starts it 2 Model 6 Logic 4 Service 16

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

- 1 **When New Lead Received** Webhook *Starts it*
- 2 **Gemini Chat Model** Lm Chat Google Gemini *Model*
- 3 **Parse Structured Output** Output Parser Structured *Model*
- 4 **When WhatsApp Message Received** Whats App trigger *Starts it*
- 5 **Gemini Chat Model Service** Lm Chat Google Gemini *Model*
- 6 **Get Redis Chat History** Memory Redis Chat *Model*
- 7 **Update Stage to Proposal Sent** High Level Tool *Service*
- 8 **Close Opportunity** High Level Tool *Service*
- 9 **Save User Requirements** High Level Tool *Service*
- 10 **Send Telegram Message** Telegram Tool *Service*
- 11 **Prepare Lead Data** Set *Logic*
- 12 **Lead Processor Agent** Agent *Model*
- 13 **If Valid Sender Exists** If *Logic*
- 14 **Customer Service Agent** Agent *Model*
- 15 **Fetch Google AI Lead Overview** Apify *Service*
- 16 **Route by Lead Type** Switch *Logic*
- 17 **Fetch GHL Contacts** High Level *Service*
- 18 **Send WhatsApp Response** Whats App *Service*
- 19 **Upsert Contact B** High Level *Service*
- 20 **Upsert Contact A** High Level *Service*
- 21 **Get Opportunities** High Level *Service*
- 22 **Create Opportunity B** High Level *Service*
- 23 **Create Opportunity** High Level *Service*
- 24 **If Opportunity Exists** If *Logic*
- 25 **Send WhatsApp Template B** Whats App *Service*
- 26 **Send WhatsApp Template A** Whats App *Service*
- 27 **Update Opportunity B** High Level *Service*
- 28 **Update Opportunity A** High Level *Service*

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

## 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%2Fscore-leads-and-send-whatsapp-proposals-with-gemini-2)
- **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.

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

## Workflows like it

Also money admin, with the same services where possible, closest in size first.

- [**Score leads and send WhatsApp proposals with Gemini** 28 steps · calls a model · Apify, GoHighLevel](https://millionrounds.com/workflow/score-leads-and-send-whatsapp-proposals-with-gemini)
- [**Parse WhatsApp invoice images with Gemini and Slack** 21 steps · HubSpot, Slack](https://millionrounds.com/workflow/parse-whatsapp-invoice-images-with-gemini-and-slack)
- [**WhatsApp AI Receipt and Expense Tracker for n8n** 18 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/whatsapp-ai-receipt-and-expense-tracker-for-n8n)
- [**Monitor revenue tax compliance and auto-correct anomalies** 17 steps · calls a model · Gmail, WhatsApp](https://millionrounds.com/workflow/monitor-revenue-tax-compliance-and-auto-correct-anomalies)
- [**Send multi-carrier shipping quotes with WhatsApp and Gemini** 17 steps · calls a model · GoHighLevel, Google Sheets](https://millionrounds.com/workflow/send-multi-carrier-shipping-quotes-with-whatsapp-and-gemini)
- [**Quote freight shipments with WhatsApp and Gemini** 16 steps · calls a model · GoHighLevel, WhatsApp](https://millionrounds.com/workflow/quote-freight-shipments-with-whatsapp-and-gemini)
