Skip to main content

Automated lead qualification for JotForm with Google Gemini & Telegram alerts

Workflow preview

Workflow preview
100%
Automated lead qualification for JotForm with Google Gemini & Telegram alerts preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Smart Lead Qualification for JotForm Contact Forms Automatically classify and manage contact form submissions using AI powered lead scoring. This workflow analyzes JotForm submissions in real time,...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.outputparserstructured, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.jotformtrigger, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.switch, n8n-nodes-base.noop, n8n-nodes-base.telegram

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automated lead qualification for JotForm with Google Gemini & Telegram alerts
Workflow name
Automated lead qualification for JotForm with Google Gemini & Telegram alerts

Smart Lead Qualification for JotForm Contact Forms

Automatically classify and manage contact form submissions using AI-powered lead scoring. This workflow analyzes JotForm submissions in real-time, categorizes them as hot leads, cold leads, or spam, and takes intelligent actions—sending Telegram notifications for hot leads, ignoring irrelevant inquiries, and automatically deleting spam.

Who's It For

This template is perfect for:

  • Businesses receiving high volumes of contact form submissions who need to prioritize responses
  • Marketing and sales teams wanting to focus on qualified leads immediately
  • Agencies and consultants offering AI/automation services who want to filter out noise
  • Anyone struggling with spam or low-quality form submissions

What It Does

The workflow uses Google Gemini AI to intelligently classify each JotForm submission into three categories:

  • Hot Lead (1): Genuine inquiries about your services, collaboration requests, or project proposals → Sends Telegram notification + Flags in JotForm
  • Cold Lead (0): Legitimate but irrelevant inquiries (job applications, unrelated business queries) → No action taken
  • Garbage/Spam (2): Test submissions, bots, gibberish, or fake data → Automatically deleted from JotForm

How It Works

  1. JotForm trigger captures new contact form submissions
  2. Submission data is extracted and formatted
  3. Google Gemini AI analyzes the content and classifies the lead
  4. A switch routes the submission based on classification:
    • Hot leads trigger Telegram notifications and get flagged
    • Cold leads are ignored
    • Spam submissions are automatically deleted

Requirements

  • n8n instance (cloud or self-hosted)
  • JotForm account with a contact form (Get JotForm here)
  • Google Gemini API key (free tier available)
  • Telegram account for notifications

How to Set Up

📋 Detailed setup instructions are included inside the workflow in sticky notes.

Quick setup overview:

  1. Create your contact form in JotForm using the "Contact Form with Fancy Header and Footer" template
  2. Get your JotForm API key and form ID
  3. Obtain a Google Gemini API key from Google AI Studio
  4. Create a Telegram bot via @BotFather and get your chat ID
  5. Configure all credentials in the respective nodes
  6. Update the HTTP request nodes with your JotForm API key
  7. Test the workflow with sample submissions

The workflow includes comprehensive sticky notes with step-by-step instructions, including how to get your Telegram chat ID and configure all integrations.

How to Customize

  • Adjust classification criteria: Modify the AI Agent's system prompt to match your business type and lead qualification criteria
  • Change notification format: Edit the Telegram message template to include/exclude specific fields
  • Add more actions: Extend hot lead handling with additional nodes (e.g., add to CRM, send email, create task)
  • Modify form fields: Update field references if your JotForm uses different field names
  • Multi-channel notifications: Add Slack, Discord, or email notifications alongside Telegram

Note

All API keys and credentials shown in the workflow are placeholders. You'll need to replace them with your own credentials during setup.

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 - Structured Output Parser

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

Block 2 - Google Gemini Chat Model

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

Block 3 - Trigger: When Form Submitted

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

Block 4 - Parse AI Classification

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

Block 5 - Classify Lead Quality

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

Block 6 - Route by Lead Type

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

Block 7 - Ignore Cold Lead

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

Block 8 - Notify Hot Lead

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 9 - Get Chat ID (One-Time Setup)

Type / Role
n8n-nodes-base.telegramTrigger - telegramTrigger
Config choices
Version 1.2

Block 10 - Flag in JotForm

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 11 - Delete Spam Submission

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Sticky Note2

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

3. Summary Table

Workflow Automated lead qualification for JotForm with Google Gemini & Telegram alerts
Complexity intermediate
Nodes 12
Categories Lead Nurturing, AI Summarization
Author Roshan Ramani
Published 09 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9419/9419.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 Automated lead qualification for JotForm with Google Gemini & Telegram alerts do?

Smart Lead Qualification for JotForm Contact Forms Automatically classify and manage contact form submissions using AI powered lead scoring. This workflow analyzes JotForm submissions in real time,...

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.