Project 06 · Lead management

AI-Powered Lead Management System

An n8n lead-management demonstration that captures website enquiries, validates contact data, detects duplicate submissions, classifies leads as Hot, Warm or Cold, stores records in Google Sheets, generates personalized email replies with Gemini and alerts the team through Slack.

01 · Overview

The business problem

When enquiries are handled manually, teams need to inspect form submissions, check email and phone details, search for duplicates, decide which leads are urgent, write a reply and notify colleagues. Generic responses and delayed internal alerts can make intake inconsistent.

Project objective

Combine rule-based validation and lead prioritization with AI-generated personalized email, a shared lead record and an internal team notification.

02 · Implementation

How the workflow operates

01

Website submission

A prospect completes the Lovable lead-generation form.

02

Webhook and validation

n8n receives the submitted data and checks email and phone details.

03

Duplicate detection

The workflow checks for an existing lead before creating another record.

04

Lead classification

A JavaScript scoring step assigns Hot, Warm or Cold using configured keyword rules.

05

CRM storage

The lead is saved in Google Sheets.

06

Personalized AI reply

Google Gemini generates a tailored response from the lead information and configured prompt; Gmail sends the formatted email.

07

Team notification

Slack alerts the team that the new lead has been processed.

03 · System design

Workflow architecture

The following sequence summarizes the documented components. Actual node-level configuration and event payloads are available in the linked technical resources where provided.

Lovable lead form→n8n webhook→Email + phone validation→Duplicate check→JavaScript priority→Google Sheets CRM→Gemini email draft→Gmail delivery→Slack notification

Implementation decisions

Use transparent priority rules

Hot, Warm and Cold are assigned using configured keyword rules in the demonstration.

Check before creating a record

Duplicate checking helps reduce repeated lead records.

Personalize the first response

Gemini generates the email using the submitted lead information and a configured prompt.

Keep the team informed

Slack sends an internal notification after lead processing.

04 · Intended value

What this demonstrates

The build demonstrates these operational capabilities. They are design objectives and workflow behaviors—not measured client outcomes.

✓Validates incoming contact information.
✓Reduces duplicate lead records.
✓Gives the team a consistent priority classification.
✓Generates a personalized first email response.
✓Stores leads in a shared record source.
✓Alerts the team through Slack.
05 · Technology

Technology stack

Tools documented for this implementation:

n8nLovableGoogle GeminiJavaScriptGoogle SheetsGmailSlack
06 · Scope & verification

Limitations and next validation steps

  • The keyword scoring rules are demonstration logic and should be adapted to the business’s services and qualification model.
  • The project notes mention an under-three-second response target, but it has not been independently benchmarked; no performance claim is made.
  • Test malformed form data, duplicate handling, failed email delivery and Slack notification errors.
  • Review AI-generated messages for accuracy, tone and unsupported promises before production use.
Project transparency. Independently built portfolio demonstration using sample data, not a client deployment. No increase in conversion, revenue or response speed is claimed without a measured client pilot.
07 · Resources

Explore the build

These are the demo, code, workflow and documentation links recorded for this project.

Next project

Real Estate Lead Management & Appointment Automation

Connect website inquiries, AI-assisted qualification, CRM updates, follow-up and appointment operations.

Next case study ↗