Skip to main content

Lead qualification and scoring with Jotform, Gemini AI, and Slack

Workflow preview

Workflow preview
100%
Lead qualification and scoring with Jotform, Gemini AI, and Slack preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automate your lead qualification process by connecting Jotform to Gemini AI. This workflow instantly analyzes new form submissions, assigns a priority score, filters out spam, and routes legitimate...

Best for

  • Lead Nurturing automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.jotformtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.if, n8n-nodes-base.switch, n8n-nodes-base.gmail, 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 Atta.

Original n8n.io source

1.1 Workflow description

Title
Lead qualification and scoring with Jotform, Gemini AI, and Slack
Workflow name
Lead qualification and scoring with Jotform, Gemini AI, and Slack

Automate your lead qualification process by connecting Jotform to Gemini AI. This workflow instantly analyzes new form submissions, assigns a priority score, filters out spam, and routes legitimate leads for immediate action. Stop manually sorting through submissions and let your sales team focus on what matters: closing deals with hot leads.

This template captures a lead from a "Talk to an Expert" form, uses AI to determine its quality, sends a real-time notification to your sales team on Slack, and automatically sends a tiered, personalized email response to the lead based on their qualification score.

Features

  • Automated Spam Filtering: Uses Gemini AI to analyze incoming leads and automatically discard spam.
  • AI-Powered Lead Scoring: Assigns a priority score (1-10) to every legitimate lead based on the content of their inquiry.
  • Instant Team Notifications: Sends a detailed alert for every qualified lead to a designated Slack channel.
  • Tiered Email Responses: Automatically sends a different, personalized email to hot, warm, and cold leads.
  • Seamless Jotform Integration: Triggers the moment a new form is submitted.

Nodes Used

  • 🟣 Jotform Trigger: Starts the workflow when a new form submission is received.
  • đź§  AI Agent / Google AI: Connects to Gemini to analyze the form data.
  • âť“ IF: Filters out submissions flagged as spam.
  • 📣 Slack: Sends a real-time notification to your team.
  • 🔀 Switch: Routes the lead down different paths based on its AI-generated score.
  • ✉️ Gmail: Sends a personalized follow-up email to the lead.

How to use this template

This workflow is designed to be easy to set up. Follow these steps to get it running:

1. Set up your Jotform Trigger:

  • In the Jotform Trigger node, connect your Jotform account.
  • Select the specific form you want to use for lead capture from the dropdown list.
  • Ensure your form has the required fields as described in the "Required Jotform Fields" section below.

2. Configure the AI Agent / Google AI Node:

  • Connect your Google AI credentials to the node.
  • Ensure the prompt is set up to analyze the message from your form and return a JSON object with is_spam (a boolean) and lead_score (an integer) keys.

3. Set up the IF Node:

  • This node should check the is_spam value from the AI node. The workflow should only continue on the false path.

4. Configure the Slack Node:

  • Connect your Slack account credentials.
  • In the "Channel" field, select the channel where you want lead notifications to be sent (e.g., #sales-leads).

5. Configure the Switch Node:

  • This node should be set to route based on the lead_score from the AI node.
  • The template is pre-configured with three paths:
    • Hot: Score is 8 or higher.
    • Warm: Score is between 5 and 7.
    • Cold: Score is 4 or lower (the "Default" path).

6. Configure the Gmail Nodes

Connect your Gmail account credentials to each of the three Gmail nodes. This step is critical for personalization, and you must adapt the content to fit your business. The provided text is a template; its effectiveness depends on your customization.

For each of the three email templates (Hot, Warm, and Cold), be sure to:

  • Update the Email Body: Rewrite the text to match your company's tone and brand voice.
  • Change Company/Team Information: Replace placeholder text like [Your Company Name] and update the signature from The Team to your specific team or company name (e.g., The Sales Team at Acme Corp).
  • Customize Your Links:
    • In the 'Hot' lead email, replace the placeholder [Your Calendly/Booking Link] with your actual link from Calendly, HubSpot Meetings, or another scheduling tool.
    • In the 'Warm' lead email, replace [Link to a resource or case study] with a real link to a relevant blog post, whitepaper, or case study on your website.

7. Activate your Workflow:

  • Once all nodes are configured, save and activate your workflow. Now, every new Jotform submission will be processed automatically!

How to Adapt the Template

This workflow is a powerful starting point. Here are a few ideas to customize it for your specific needs:

  • Integrate Your CRM: Add a node for your CRM (like HubSpot, Salesforce, or Pipedrive) after the IF node. You can create or update a contact and a deal, and then include the link to the CRM record directly in the Slack notification for easy access.
  • Use a Different Notification Service: If your team doesn't use Slack, you can easily replace the Slack node with one for Microsoft Teams, Discord, or even a simple email notification.
  • Create Tiered Notifications: For a more advanced setup, use the Switch node's outputs to send notifications to different channels. For example, send "Hot" leads to a high-priority #sales-urgent channel with an @channel mention, and send "Warm" or "Cold" leads to a less noisy #leads-review channel.
  • Adjust the Scoring Logic: Your definition of a "hot" lead might be different. Simply change the values in the Switch node to match your business rules (e.g., you might consider any score of 7 or higher to be a hot lead).

Required Jotform Fields for this Workflow

For this template to work correctly, your Jotform should have the following fields. The names in parentheses are the internal field names used in the n8n expressions.

  • Full Name (Full Name): A text input for the user's name, used for personalizing emails.
  • Work Email (Work Email): An email field, used as the recipient for the automated follow-up.
  • Role (Role): A text input for the user's job title, providing context for your sales team.
  • Number of Employees (Number of Employees): A dropdown or number input for company size, used for lead segmentation.
  • How can we help you? (How can we help you?): A text area. This is the most critical field, as its content is sent to the AI for spam checking and lead scoring.

More Information

About Jotform

Jotform is a powerful and easy-to-use online form builder that helps you create and publish online forms without writing a single line of code. It's an excellent tool for capturing leads, conducting surveys, accepting payments, and much more. Its seamless integration capabilities make it a perfect starting point for all kinds of n8n automations.

If you don't have an account yet, you can get started with Jotform through the link above.

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 - JotForm Trigger

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

Block 2 - AI Agent

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

Block 3 - Structured Output Parser

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

Block 4 - Google Gemini Chat Model

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

Block 5 - If Spam

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

Block 6 - Switch

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

Block 7 - Warm Reply

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

Block 8 - Hot Reply

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

Block 9 - Cold Reply

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

Block 10 - Sticky Note

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

Block 11 - Nothing to do for spams!

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

Block 12 - Sticky Note1

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

Block 13 - Sticky Note2

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

Block 14 - Sticky Note3

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

Block 15 - Sticky Note4

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

Block 16 - Sticky Note5

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

Block 17 - Send lead alert to sales

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

3. Summary Table

Workflow Lead qualification and scoring with Jotform, Gemini AI, and Slack
Complexity advanced
Nodes 17
Categories Lead Nurturing, AI Summarization
Author Atta
Published 14 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9650/9650.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 Lead qualification and scoring with Jotform, Gemini AI, and Slack do?

Automate your lead qualification process by connecting Jotform to Gemini AI. This workflow instantly analyzes new form submissions, assigns a priority score, filters out spam, and routes legitimate...

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