Skip to main content

Lead generation and qualification with GPT-4o, Google Workspace, and automated follow-up

Workflow preview

Workflow preview
100%
Lead generation and qualification with GPT-4o, Google Workspace, and automated follow-up preview
Open on n8n.io

Important notice

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

1. Workflow Overview

AI Lead Generation and Follow Up Template Overview This n8n workflow template automates your lead generation and follow up process using AI. It captures leads through a form, enriches them wi...

Best for

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

Tools used

n8n-nodes-base.gmail, n8n-nodes-base.set, n8n-nodes-base.code, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.formtrigger, n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.agent

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Lead generation and qualification with GPT-4o, Google Workspace, and automated follow-up
Workflow name
Lead generation and qualification with GPT-4o, Google Workspace, and automated follow-up

🚀 AI Lead Generation and Follow-Up Template

📋 Overview

This n8n workflow template automates your lead generation and follow-up process using AI. It captures leads through a form, enriches them with company data, classifies them into different categories, and sends appropriate follow-up sequences automatically.

Key Features:

  • 🤖 AI-powered lead classification (Demo-ready, Nurture, Drop)
  • 📊 Automatic lead enrichment with company data
  • 📧 Intelligent email responses and follow-up sequences
  • 📅 Automated demo scheduling for qualified leads
  • 📝 Complete lead logging in Google Sheets
  • 💬 AI assistant for immediate query responses

🛠️ Prerequisites

Before setting up this workflow, ensure you have:

  1. n8n Instance: Self-hosted or cloud version
  2. OpenAI API Key: For AI-powered features
  3. Google Workspace Account with:
    • Gmail access
    • Google Sheets
    • Google Calendar
  4. Basic understanding of your Ideal Customer Profile (ICP)

⚡ Quick Start Guide

Step 1: Import the Workflow

  1. Copy the workflow JSON
  2. Import into your n8n instance
  3. The workflow will appear with all nodes connected

Step 2: Configure Credentials

You'll need to set up the following credentials:

  • OpenAI API: For AI agents and classification
  • Gmail OAuth2: For sending emails
  • Google Sheets OAuth2: For lead logging
  • Google Calendar OAuth2: For demo scheduling

Step 3: Create Your Lead Log Sheet

Create a Google Sheet with these columns:

  • Date
  • Name
  • Email
  • Company
  • Job Title
  • Message
  • Number of Employees
  • Industry
  • Geography
  • Annual Revenue
  • Technology
  • Pain Points
  • Lead Classification

Step 4: Update Configuration Nodes

  1. Replace Sheet ID: Update all Google Sheets nodes with your sheet ID
  2. Update Email Templates: Customize all email content
  3. Set Escalation Email: Replace "[email protected]" with your team's email
  4. Configure ICP Criteria: Edit the "Define ICP and Lead Criteria" node

🎯 Lead Classification Setup

Define Your ICP (Ideal Customer Profile)

Edit the "Define ICP and Lead Criteria" node to set your criteria:

📌 ICP Criteria Example:
- Company Size: 50+ employees
- Industry: SaaS, Finance, Healthcare, Manufacturing
- Geography: North America, Europe
- Pain Points: Manual processes, compliance needs, scaling challenges
- Annual Revenue: $5M+
✅ Demo-Ready Criteria:

High-intent prospects who meet multiple qualifying factors:

  • Large company size (your threshold)
  • Clear pain points mentioned
  • Urgent timeline
  • Budget authority indicated
  • Specific solution requests
🌱 Nurture Criteria:

Prospects with future potential:

  • Meet basic size requirements
  • In target industry
  • General interest expressed
  • Planning future implementation
  • Exploring options
❌ Drop Criteria:

Only drop leads that clearly don't fit:

  • Outside target geography
  • Wrong industry (B2C if you're B2B)
  • Too small with no growth
  • Already with competitor
  • Spam or test messages

📧 Email Customization

Customize Follow-Up Sequences:

Demo-Ready Sequence:
  1. Immediate calendar invitation
  2. Personalized demo confirmation
  3. Meeting reminder (optional)
Nurture Sequence:
  1. Welcome email with resources
  2. Educational content (Day 2)
  3. Webinar/event invitation (Day 3)
  4. Demo offer (Day 4)
Drop Message:
  • Polite acknowledgment
  • Clear explanation
  • Keep door open for future

🔧 Advanced Configuration

AI Answer Agent Setup:

  1. Update the system prompt with your company information
  2. Add common Q&A patterns
  3. Set escalation rules
  4. Configure language preferences

Lead Enrichment Options:

  • Add API keys for additional data sources
  • Configure enrichment fields
  • Set data quality thresholds
  • Enable duplicate detection

Calendar Integration:

  • Set available meeting times
  • Configure meeting duration
  • Add buffer times
  • Set timezone handling

📊 Monitoring and Optimization

Track Key Metrics:

  • Lead volume by classification
  • Response rates
  • Demo conversion rates
  • Time to first response
  • Enrichment success rate

Optimization Tips:

  1. Regular Review: Check classification accuracy weekly
  2. A/B Testing: Test different email sequences
  3. Feedback Loop: Use outcomes to refine ICP criteria
  4. AI Training: Update prompts based on results

🎉 Best Practices

  1. Start Simple: Begin with basic criteria and refine over time
  2. Test Thoroughly: Use test leads before going live
  3. Monitor Daily: Check logs for the first week
  4. Iterate Quickly: Adjust based on results
  5. Document Changes: Keep track of criteria updates

📈 Scaling Your Workflow

As your lead volume grows:

  1. Add Sub-workflows: Separate complex processes
  2. Implement Queuing: Handle high volumes
  3. Add CRM Integration: Sync with your sales tools
  4. Enable Analytics: Track detailed metrics
  5. Set Up Alerts: Monitor for issues

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 - Send Drop Message

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

Block 2 - Define ICP and Lead Criteria

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

Block 3 - Demo-ready Data Processing

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 4 - Sticky Note1

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

Block 5 - Sticky Note

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

Block 6 - Sticky Note2

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

Block 7 - Sticky Note3

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

Block 8 - Sticky Note4

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

Block 9 - Sticky Note5

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

Block 10 - Sticky Note6

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

Block 11 - Sticky Note7

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

Block 12 - Structured Output Parser

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

Block 13 - Input Form

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

Block 14 - Get all columns

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 15 - Return latest column

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - AI Answer Agent

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

Block 17 - Log Lead to Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 18 - OpenAI Chat Model

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

Block 19 - Send Answer or Escalate

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

Block 20 - AI Lead Enrichment

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

Block 21 - OpenAI Search Model

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

Block 22 - AI Lead Classifier

Type / Role
@n8n/n8n-nodes-langchain.textClassifier - textClassifier
Config choices
Version 1.1

Block 23 - OpenAI Chat

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

Block 24 - If demo-ready not empty

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

Showing the first 24 of 41 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Lead generation and qualification with GPT-4o, Google Workspace, and automated follow-up
Complexity advanced
Nodes 41
Categories Lead Generation, AI Summarization
Author Franz
Published 03 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6941/6941.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 generation and qualification with GPT-4o, Google Workspace, and automated follow-up do?

AI Lead Generation and Follow Up Template Overview This n8n workflow template automates your lead generation and follow up process using AI. It captures leads through a form, enriches them wi...

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.