Skip to main content

Classify lead sentiment with Google Gemini and send WhatsApp responses via Typeform & Supabase

Workflow preview

Workflow preview
100%
Classify lead sentiment with Google Gemini and send WhatsApp responses via Typeform & Supabase preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automatically classify incoming leads based on the sentiment of their message using Google Gemini, store them in Supabase by category, and send tailored WhatsApp messages via the official WhatsApp ...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.webhook, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.sentimentanalysis, n8n-nodes-base.supabase, n8n-nodes-base.merge, n8n-nodes-base.whatsapp, n8n-nodes-base.stickynote

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Classify lead sentiment with Google Gemini and send WhatsApp responses via Typeform & Supabase
Workflow name
Classify lead sentiment with Google Gemini and send WhatsApp responses via Typeform & Supabase

Automatically classify incoming leads based on the sentiment of their message using Google Gemini, store them in Supabase by category, and send tailored WhatsApp messages via the official WhatsApp Cloud API.

✅ Use Case: This workflow is ideal for sales, onboarding, and customer support teams who want to:

Understand the tone and urgency of each lead

Prioritize hot leads instantly

Send smart, automatic WhatsApp replies based on user sentiment

🧠 How it works: Capture lead via a Typeform webhook

Clean and structure the data (name, email, message, etc.)

Run sentiment analysis using Google Gemini to classify the message as:

Positive → Hot Lead

Neutral → Warm Lead

Negative → Cold Lead

Store lead data in Supabase under the corresponding category

Merge data to unify flow paths

Send WhatsApp message using the official WhatsApp Cloud API, with a custom reply for each sentiment result

🔧 Tools used: Typeform (incoming data)

Google Gemini (AI-based sentiment classification)

Supabase (database)

WhatsApp Cloud API (response automation)

🏷 Tags: AI, Sentiment Analysis, Lead Qualification, Supabase, WhatsApp, Gemini, Typeform, CRM, Automation, Customer Engagement

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 - Google Gemini Chat Model

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

Block 2 - Receive New Lead (Typeform)

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

Block 3 - Prepare Lead Data

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

Block 4 - Classify Sentiment (Gemini or other ai model)

Type / Role
@n8n/n8n-nodes-langchain.sentimentAnalysis - sentimentAnalysis
Config choices
Version 1

Block 5 - Store Hot Lead

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

Block 6 - Store Neutral Lead

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

Block 7 - Store Cold Lead

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

Block 8 - Combine Lead Data

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.1

Block 9 - Send WhatsApp Message

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

Block 10 - Sticky Note

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

Block 11 - Sticky Note1

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

3. Summary Table

Workflow Classify lead sentiment with Google Gemini and send WhatsApp responses via Typeform & Supabase
Complexity intermediate
Nodes 11
Categories Lead Generation, AI Summarization
Author Danielle Gomes
Published 22 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4322/4322.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 Classify lead sentiment with Google Gemini and send WhatsApp responses via Typeform & Supabase do?

Automatically classify incoming leads based on the sentiment of their message using Google Gemini, store them in Supabase by category, and send tailored WhatsApp messages via the official WhatsApp ...

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 Summarization use case.