AI Lead Qualification System
An AI-powered lead qualification and categorization system built using n8n, Google Gemini, Google Sheets, and Gmail.
Project Overview
The AI Lead Qualification System automates the process of reviewing, validating, analyzing, and categorizing business leads. It uses AI-powered analysis to help organize lead information and streamline follow-up processes.
📥 Download Workflow
Download the main n8n workflow JSON file:
To import it:
- Download the JSON file.
- Open your n8n instance.
- Select Overview → Add workflow → Import from File.
- Select the downloaded JSON file.
- Configure your credentials and review the workflow settings before execution.
Business Problem
Manually reviewing and qualifying leads can consume time, create inconsistent assessments, and delay follow-ups. Businesses need a structured process to validate incoming lead data, prioritize potential customers, and manage lead records efficiently.
Proposed Solution
This project uses n8n to automate lead processing. It retrieves lead records from Google Sheets, validates the data, analyzes valid leads using Google Gemini, and routes them according to their qualification categories.
Technologies Used
- n8n: Workflow automation and orchestration
- Google Gemini: AI-powered lead analysis
- Google Sheets: CRM data storage and management
- Gmail: Automated email notifications
- JavaScript: Data validation and processing
- JSON: Structured data exchange
- APIs and Webhooks: Workflow integration and triggering
Key Features
- Automated CRM lead retrieval
- Lead data validation
- AI-powered lead analysis and scoring
- Automated lead categorization
- Category-based workflow routing
- Google Sheets record updates
- Automated email notifications
- Error handling and workflow monitoring
Workflow Architecture
The main workflow follows these stages:
- Lead Data Retrieval
- Data Validation
- Lead Data Preparation
- AI-Powered Analysis
- AI Output Validation
- Lead Categorization
- CRM Updates and Email Notifications
Error Handling Workflow
A separate Error Handling Workflow is configured in the main workflow’s error workflow settings to capture execution failures and send automated Gmail notifications.
Download Error Handling Workflow (JSON)
Sample Data Files
Email Notifications
Automated Lead Notifications
- Hot Lead Notification: Automated email sent for high-priority leads.
- Warm Lead Notification: Automated email sent for potential leads.
Error Notification
- Error Notification Email: Example of an error alert successfully received by email through the separate error-handling workflow.
Data Processing Notes
- Invalid Leads: Lead Score and AI qualification fields remain blank for invalid records because they are excluded from the AI qualification process.
- Valid Leads: Follow-up Status is intentionally not updated by the current workflow. Automated follow-up status management is outside the current implementation scope.
These behaviors are intentional and reflect the current workflow design.
Project Status
Developed and tested as a practical AI automation project using fictional lead data.
Limitations
- The workflow was developed and tested in a local n8n environment.
- AI-generated scores and categories require human review before business decisions.
- Public live deployment is not currently available.
Setup & Configuration
The workflow JSON files are sanitized portfolio templates and are not ready to run immediately after import.
To use the automation:
- Install or access an n8n instance.
- Import the main workflow JSON file.
- Configure your own AI model credentials for Google Gemini.
- Connect your Google Sheets account and configure your own CRM spreadsheet.
- Connect your Gmail account and configure the required email recipient details.
- Configure any required API credentials, webhook settings, and integration parameters.
- Import and configure the separate error workflow.
- Submit sample lead data and test the workflow.
Note: The exported workflow files do not contain working credentials or private account configurations. You must configure your own integrations before execution.
Sample Data & Privacy
- All lead information provided in this repository is fictional and created for demonstration and testing purposes.
- No real customer or business information is intentionally included.
- Workflow JSON files are sanitized to remove private credentials and account-specific configurations.
- Use fictional or properly authorized test data when reproducing this project.
Author
AI Automation & Integration | Management Sciences Undergraduate Student at GIKI
Project Screenshots
1. Workflow Overview

2. Successful Execution


4. CRM Validated Leads Data

5. AI Lead Analysis (LLM Node)

6. Post-AI Data Processing (Code Node)

7. Lead Category Routing (Switch Node)

8. CRM Hot, Warm & Unqualified Leads

9. Hot Lead Notification

10. Warm Lead Notification

11. Error Handling Workflow

12. Error Notification Email

Project Videos
The following videos demonstrate the project presentation, workflow execution, and practical functionality.
-
Project Presentation & Workflow Execution: Watch Video 1
Note: Execution / Testing of workflow starts at 5:26.
-
Practical Workflow Demonstration: Watch Video 2
Project Documentation & Presentation
Additional project materials are available below for a detailed understanding of the system’s design, implementation, and workflow.
Project Presentation
Project Documentation
View Project Documentation (PDF)
评论