Lead Qualification, Scoring, and Automated Follow-up - n8n Workflow

Use this powerful n8n workflow to instantly qualify leads from JotForm, utilize Gemini AI for scoring and spam detection, send real-time Slack alerts, and automate personalized Gmail follow-up messages based on lead quality.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?


  • Sales Operations Teams: Seeking to instantly prioritize high-intent leads and reduce manual qualification time.

  • Marketing Managers: Who want to ensure fast, relevant follow-up communications for every form submission.

  • Automation Engineers: Looking for advanced n8n templates integrating AI agents and structured LLM outputs for complex decision-making.

  • Businesses Using JotForm: That need a robust, automated backend process for lead intake and routing.

Overview

Manually reviewing every new form submission to assess lead quality and potential spam is a massive drain on sales resources. This sophisticated n8n workflow solves this problem by creating an intelligent, hands-off qualification system. Starting with the JotForm n8n trigger, the submission data is immediately routed to the Google Gemini AI model. This powerful AI agent assesses the lead's inquiry for relevance and intent, producing a structured output: an isspam boolean and a leadscore (1-10).

This robust n8n automation ensures that only legitimate, high-quality leads proceed, saving your team significant time. The subsequent flow control logic routes the lead data, first filtering spam, then alerting the sales team via Slack, and finally executing a customized Gmail follow-up based on whether the lead is categorized as Hot, Warm, or Cold. This is a crucial n8n workflow for any organization focused on optimizing conversion rates through timely, relevant engagement. Implementing this n8n template drastically improves response efficiency.

How it Works

The entire process is initiated by the JotForm n8n trigger whenever a user completes the designated contact form.


  1. Trigger & Data Intake: The JotForm n8n trigger receives the submission data, including the critical 'How can we help?' message field.

  2. AI Qualification: The core AI Agent n8n node, configured with the Google Gemini Chat Model and a Structured Output Parser n8n node, analyzes the inquiry. It strictly outputs a JSON object containing the spam check status (isspam) and the qualification score (leadscore).

  3. Spam Filtering: An If n8n node checks if the isspam result is true. If it is, the workflow ends immediately to conserve resources. If false, the lead proceeds.

  4. Sales Alert: The Send lead alert to sales n8n node posts a real-time notification to a designated Slack channel, including the full inquiry details and the newly generated lead score.

  5. Lead Routing: A Switch n8n node evaluates the leadscore variable and directs the lead down one of three specific paths: Hot Lead (Score 8-10), Warm Lead (Score 5-7), or Cold Lead (Score 1-4).

  6. Automated Follow-up: Finally, one of three dedicated Gmail n8n node instances executes, sending a highly personalized email. Hot leads receive a prompt to book a meeting, while colder leads receive standard acknowledgments or resource links, ensuring every lead receives an appropriate, timely response. This comprehensive approach is key to maximizing the value of your n8n workflow.

Installation Guide

To use this lead qualification n8n workflow, follow these steps:


  1. Import the n8n template: Copy the provided JSON and import it into your n8n instance.

  2. JotForm Setup: Configure the JotForm Trigger n8n node by selecting the specific form you wish to monitor and connecting your JotForm credentials. Ensure your form fields match the names used in the workflow expressions (e.g., 'Full Name', 'Work Email', 'How can we help?').

  3. AI Credentials: Connect your Google Gemini Chat Model n8n node with your Google AI API key.

  4. Check AI Prompting: Verify that the field references inside the AI Agent n8n node prompt (e.g., {{ $json['How can we help?'] }}) correctly match your JotForm field names.

  5. Slack Setup: Connect your Slack credentials to the Send lead alert to sales n8n node and select the appropriate channel for lead notifications.

  6. Gmail Setup: Connect your Gmail credentials to all three Gmail n8n node instances (Hot Reply, Warm Reply, Cold Reply).

  7. Customize Content: Crucially, customize the subject and body of all three Gmail n8n node messages to reflect your company's tone and include necessary links (e.g., booking links).

Node Details


  • JotForm Trigger: This is the n8n trigger that starts the workflow. It waits for submissions from a configured JotForm and captures all entry data, initializing the n8n workflow.

  • Google Gemini Chat Model / AI Agent: The core processing unit. The AI Agent n8n node leverages Gemini to analyze the lead's message, utilizing a defined prompt to categorize and score the lead. The mandatory output format is enforced by the Structured Output Parser n8n node.

  • If Spam: A conditional n8n node that acts as a spam filter. It checks the boolean output of the AI. If isspam is true, the flow terminates, preventing wasted time on junk leads.

  • Send lead alert to sales (Slack): A Slack n8n node responsible for immediate internal notification. It sends a rich message detailing the lead's inquiry and the newly calculated score, speeding up sales response time.

  • Switch: A powerful flow control n8n node that handles qualification routing based on the numeric leadscore. It creates three distinct paths (Hot, Warm, Cold) using numerical criteria (e.g., Score >= 8 for Hot).

  • Hot Reply, Warm Reply, Cold Reply (Gmail): Three separate Gmail n8n node instances. These nodes send contextually relevant, personalized follow-up emails, using data pulled dynamically from the initial JotForm n8n trigger submission.

Related n8n Workflows

Free

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

Hi 👋 I design automation workflows with n8n, AI, and custom APIs. My focus is on building reliable systems that save time and boost productivity. Always happy to answer questions about my templates.

Featured*