Skip to main content

Qualify & auto-reply to leads with OpenAI, Airtable, and Gmail

Workflow preview

Workflow preview
100%
Qualify & auto-reply to leads with OpenAI, Airtable, and Gmail preview
Open on n8n.io

Important notice

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

1. Workflow Overview

How it works This workflow turns your website form into a fully automated AI Lead Qualification system. Whenever a new lead submits your form, the workflow: 1. Receives the submission through a ...

Best for

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

Tools used

n8n-nodes-base.formtrigger, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.airtable, n8n-nodes-base.stickynote, n8n-nodes-base.if, n8n-nodes-base.slack

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Qualify & auto-reply to leads with OpenAI, Airtable, and Gmail
Workflow name
Qualify & auto-reply to leads with OpenAI, Airtable, and Gmail

đź§  How it works

This workflow turns your website form into a fully automated AI Lead Qualification system.
Whenever a new lead submits your form, the workflow:

  1. Receives the submission through a Webhook
  2. Cleans and normalizes the input fields
  3. Uses the AI Agent node to score and qualify the lead
  4. Saves all details (including AI analysis) into an Airtable CRM
  5. Automatically routes high-quality leads (score ≥ 7)
  6. Sends an instant Gmail notification
  7. Sends an AI-generated personalized auto-reply back to the lead

This gives you a hands-free, intelligent front-door to your business — ensuring you only spend time on high-value opportunities.


⚙️ Set-up steps

These steps help users configure the workflow quickly:

  1. Create a Webhook trigger
    – Copy the webhook URL and add it to your form tool (Tally, Typeform, Webflow, etc.).

  2. Prepare your Airtable base
    – Create a "Leads" table with fields for name, email, website, message, lead score, priority, use case, timeline, budget, and AI notes.

  3. Add the AI Agent node
    – Insert the provided System + User prompts
    – Enable Structured Output
    – Paste the JSON Schema included in the sticky note inside the workflow.

  4. Connect Airtable
    – Map the original form fields + AI Agent “output” fields to Airtable columns.

  5. Set up the Gmail node
    – Connect your Gmail account
    – Configure the notification email and auto-reply templates.

  6. Configure the IF node
    – Score ≥ 7 routes to the “Hot Lead” branch
    – Everything else is captured but not routed.

  7. Run a test submission
    – Verify that the workflow writes to Airtable
    – Confirm the Gmail notification + auto-reply are delivered
    – Adjust prompting if needed.

All detailed explanations and prompt configurations are included inside the workflow through sticky notes for easy reference.

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 - On form submission

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

Block 2 - AI Agent

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

Block 3 - OpenAI Chat Model

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

Block 4 - Structured Output Parser

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

Block 5 - Create a record

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

Block 6 - Sticky Note

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

Block 7 - Quality Leads Based On Score

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

Block 8 - Sticky Note1

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

Block 9 - Sticky Note2

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

Block 10 - Send a message

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

Block 11 - Send message

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

Block 12 - Sticky Note3

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

Block 13 - Send a message1

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

Block 14 - Gmail Trigger

Type / Role
n8n-nodes-base.gmailTrigger - gmailTrigger
Config choices
Version 1.3

Block 15 - If

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

Block 16 - Create a draft

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

Block 17 - Basic LLM Chain

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 18 - OpenAI Chat Model1

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

Block 19 - Sticky Note4

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

Block 20 - Sticky Note5

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

3. Summary Table

Workflow Qualify & auto-reply to leads with OpenAI, Airtable, and Gmail
Complexity advanced
Nodes 20
Categories Lead Generation, AI Summarization
Author Shri Deshmukh
Published 17 Nov 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/10928/10928.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 Qualify & auto-reply to leads with OpenAI, Airtable, and Gmail do?

How it works This workflow turns your website form into a fully automated AI Lead Qualification system. Whenever a new lead submits your form, the workflow: 1. Receives the submission through a ...

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.