Lead Qualification and WhatsApp Responder using AI and Supabase - n8n Workflow

Use this powerful n8n workflow to automatically classify leads from Typeform using Google Gemini sentiment analysis, store them in Supabase by category, and send instant replies via the WhatsApp Cloud API.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Sales and marketing teams needing instant lead qualification.
Businesses using Typeform for lead generation.
Users looking for advanced AI-driven classification in an n8n workflow.
Developers and power users seeking robust n8n templates integrating Supabase and WhatsApp.

Overview

Effective lead management requires speed and accurate prioritization. This n8n workflow solves the problem of manual lead triage by automating the qualification process using powerful AI models like Google Gemini. When a new lead submits a Typeform, the automation instantly analyzes the sentiment of their message (Hot, Neutral, or Cold). This classification dictates where the data is stored within your Supabase database, ensuring sales teams can immediately prioritize 'Hot' leads. Finally, a personalized response is sent via the WhatsApp Cloud API. This complete n8n workflow eliminates delays, ensures data integrity in Supabase, and provides immediate customer engagement, making it one of the most valuable n8n templates for sales operations. Every n8n node in this flow is designed for efficiency and scalability.

How it Works

This automation begins with the Receive New Lead (Typeform) n8n trigger, which listens for new submissions via a dedicated webhook path.


  1. Lead Capture: The n8n trigger activates upon receiving data from Typeform.

  2. Data Preparation: The Prepare Lead Data n8n node formats the incoming JSON data for processing.

  3. AI Classification: The process moves to the Classify Sentiment n8n node, which utilizes the connected Google Gemini Chat Model. This node analyzes the lead message content and returns a sentiment classification (Positive, Neutral, or Negative).

  4. Conditional Storage: Based on the sentiment result, the n8n workflow simultaneously initiates three parallel paths to store the data using the Supabase n8n node (titled Store Hot Lead, Store Neutral Lead, or Store Cold Lead). Though executed in parallel in the visual flow, the downstream systems should only process the relevant data item matching the classification.

  5. Data Consolidation: The Combine Lead Data merge n8n node waits for the Supabase operations to complete, ensuring all necessary data—including storage confirmation—is available.

  6. Final Communication: The workflow concludes by using the Send WhatsApp Message n8n node, leveraging the official WhatsApp Cloud API to send a tailored confirmation or follow-up message to the newly qualified lead.

Installation Guide

To deploy this powerful n8n workflow, follow these steps:


  1. Import: Copy the provided JSON data and import it directly into your self-hosted or cloud n8n instance.

  2. Webhook Setup: The Receive New Lead (Typeform) n8n trigger requires activation. Note the provided webhook URL and configure your Typeform submission endpoint to send POST requests to this address.

  3. Credential Configuration:

Google Gemini: Set up credentials for the Google Gemini Chat Model n8n node to enable AI processing.
Supabase: Configure credentials for the three Supabase n8n nodes (Store Hot Lead, etc.), ensuring API key and table details are correctly set up to handle the classified lead data.
* WhatsApp: Provide the necessary credentials for the Send WhatsApp Message n8n node, including your WhatsApp Business account details and template information.

  1. Activation: Once credentials are confirmed for every critical n8n node, set the n8n workflow to 'Active' to start listening for incoming leads.

Node Details

Receive New Lead (Typeform) (n8n trigger): This is the starting point of the n8n workflow. It is a Webhook n8n node configured to listen for POST requests at the /lead-webhook path, capturing all incoming lead data from Typeform.
Google Gemini Chat Model: This LangChain n8n node establishes the connection to the Google Gemini service, providing the language model context required for the sentiment analysis step.
Classify Sentiment (Gemini or other ai model): A crucial LangChain Sentiment Analysis n8n node. It analyzes the incoming text ($json["message"], $json["mensagem"], or $json["resposta"]) and outputs a sentiment label (Positive, Neutral, or Negative).
Store Hot Lead / Store Neutral Lead / Store Cold Lead (Supabase n8n node): These three n8n nodes handle persistent storage. They insert the lead data into specified tables within Supabase, categorizing the lead based on the AI sentiment classification.
Combine Lead Data (Merge n8n node): Gathers the outputs from the three Supabase branches, ensuring the execution flow continues only after the data has been securely logged.
Send WhatsApp Message (WhatsApp n8n node): The final action n8n node. It uses the official WhatsApp Cloud API to send an automated, personalized response to the lead using the collected data and status.

Related n8n Workflows

Free

Nodes: 8 Nodes
Updated: December 26 2025
View all
Created by

Product Designer | n8n Automation | Practical AI Solutions I turn ideas into smart digital experiences focused on efficiency and personalization. Specialized in building solutions that combine design, n8n workflows, and AI to scale products, optimize processes, and maximize impact.

Featured*