Skip to main content

Score leads and send WhatsApp proposals with Gemini, HighLevel and Redis

Workflow preview

Workflow preview
100%
Score leads and send WhatsApp proposals with Gemini, HighLevel and Redis preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow captures new leads via webhook, enriches them with Apify powered Google AI search, scores them using Google Gemini, and updates HighLevel CRM while sending WhatsApp tem...

Best for

  • Lead Generation automation workflows
  • AI Chatbot automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.webhook, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.switch, n8n-nodes-base.highlevel

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by iamvaar.

Original n8n.io source

1.1 Workflow description

Title
Score leads and send WhatsApp proposals with Gemini, HighLevel and Redis
Workflow name
Score leads and send WhatsApp proposals with Gemini, HighLevel and Redis

Quick Overview

This workflow captures new leads via webhook, enriches them with Apify-powered Google AI search, scores them using Google Gemini, and updates HighLevel CRM while sending WhatsApp template messages; it also handles inbound WhatsApp support with a Gemini-driven agent that uses Redis memory, updates HighLevel, and notifies a team via Telegram.

How it works

  1. Receives new lead details through an HTTP webhook.
  2. Normalizes the lead fields and uses Apify (Google AI Mode search) to fetch a public professional background overview for the lead.
  3. Sends the enriched lead context to Google Gemini to produce a structured lead score, rationale, recommendation, and next steps.
  4. Routes the lead based on the score threshold and upserts the contact in HighLevel with the AI scoring details stored in custom fields.
  5. Creates a HighLevel opportunity, sends a WhatsApp template message to the lead, and updates the opportunity’s pipeline/stage fields.
  6. Triggers on incoming WhatsApp messages, looks up the sender in HighLevel, fetches related opportunities, and hands the conversation to a Google Gemini agent with Redis chat history.
  7. Uses the agent’s decisions to save requirement notes and update/close the HighLevel opportunity, sends an internal Telegram notification, and replies to the customer via WhatsApp.

Setup

  1. Create and connect credentials for Google Gemini (Google PaLM API), HighLevel OAuth2, WhatsApp Business API (send + trigger), Apify API, Redis, and Telegram.
  2. Configure the “newlead” webhook URL in your lead source so it sends first_name, last_name/full_name, email, phone, and contact_id in the request body.
  3. In HighLevel, create the needed custom fields for lead_score, score_breakdown, recommendation, and next_steps, then paste their field IDs into the contact upsert steps.
  4. Set your HighLevel pipelineId and stageId values in the opportunity create/update steps (including “Proposal Sent” and “Closed” stages).
  5. In WhatsApp, set the correct phoneNumberId and template name (and ensure the template is approved), and in Telegram replace the placeholder chatId with your target chat or user ID.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - Sticky Note5

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 7 - Sticky Note6

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note7

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note8

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - When New Lead Received

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2.1

Block 11 - Prepare Lead Data

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 12 - Lead Processor Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 3.1

Block 13 - Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1.1

Block 14 - Parse Structured Output

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 15 - Route by Lead Type

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 16 - Create Opportunity

Type / Role
n8n-nodes-base.highLevel - highLevel
Config choices
Version 2

Block 17 - Send WhatsApp Template A

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1.1

Block 18 - Update Opportunity A

Type / Role
n8n-nodes-base.highLevel - highLevel
Config choices
Version 2

Block 19 - Upsert Contact B

Type / Role
n8n-nodes-base.highLevel - highLevel
Config choices
Version 2

Block 20 - Create Opportunity B

Type / Role
n8n-nodes-base.highLevel - highLevel
Config choices
Version 2

Block 21 - Send WhatsApp Template B

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1.1

Block 22 - Update Opportunity B

Type / Role
n8n-nodes-base.highLevel - highLevel
Config choices
Version 2

Block 23 - Send WhatsApp Response

Type / Role
n8n-nodes-base.whatsApp - whatsApp
Config choices
Version 1.1

Block 24 - If Valid Sender Exists

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.3

Showing the first 24 of 37 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Score leads and send WhatsApp proposals with Gemini, HighLevel and Redis
Complexity advanced
Nodes 37
Categories Lead Generation, AI Chatbot
Author iamvaar
Published 27 May 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/15984/15984.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Score leads and send WhatsApp proposals with Gemini, HighLevel and Redis do?

Quick Overview This workflow captures new leads via webhook, enriches them with Apify powered Google AI search, scores them using Google Gemini, and updates HighLevel CRM while sending WhatsApp tem...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Chatbot use case.