← Back to Portfolio

AI Lead Scoring — n8n Automation

Javascript Javascript
Node.js Node.js
n8n n8n
AI AI
Project Overview:
  • Project: AI Lead Scoring Automation
  • Platform: n8n (self-hosted workflow automation)
  • AI Model: OpenAI GPT-4o-mini
  • Objective: Build an intelligent system that automatically evaluates and scores incoming leads based on company size, role seniority, email domain, and message intent — routing hot prospects directly to the sales team in real time.
Background:
Manual lead qualification is one of the biggest bottlenecks in any sales pipeline. Sales teams spend hours sifting through form submissions, trying to identify which leads deserve immediate attention and which can wait. This automation eliminates that bottleneck entirely. Every new lead that comes through a web form is instantly analyzed by AI, scored on a 0–100 scale, and routed to the right channel — all within seconds, 24/7, without any human intervention.
AI Lead Scoring Cover
How It Works:
Webhook Intake & Data Enrichment:
The workflow starts with a webhook that receives form data from any source — landing pages, contact forms, chatbots. The lead data is immediately parsed and enriched: the system extracts the company domain, identifies the submitter’s role, and prepares a structured profile for AI analysis.
AI-Powered Scoring Engine:
GPT-4o-mini evaluates each lead across multiple dimensions — company fit, decision-maker authority, email legitimacy, and expressed intent. It returns a numerical score (0–100) along with a brief reasoning summary, making the scoring transparent and auditable.
Smart Routing & Notifications:
  • Hot Leads (70–100): Instant Slack alert to the sales team with full context, plus an email notification to the assigned rep.
  • Warm Leads (40–69): Logged to Google Sheets for nurture sequences, with a weekly digest notification.
  • Cold Leads (0–39): Quietly logged for future reference and batch review.
AI Lead Scoring Workflow
Key Results:
  • Processing Speed: Each lead scored in under 3 seconds, compared to 15–30 minutes of manual review.
  • Capacity: Handles 500+ leads per day without any degradation in quality or speed.
  • Cost: Under $1/month in API costs at typical volumes — roughly 200x cheaper than a dedicated SDR.
  • Accuracy: AI scoring correlates strongly with eventual conversion, reducing wasted sales effort on low-quality leads.
AI Lead Scoring Dashboard
Tech Stack:
  • Automation: n8n (self-hosted)
  • AI: OpenAI GPT-4o-mini
  • Notifications: Slack API, SMTP Email
  • Data Storage: Google Sheets API
  • Trigger: Webhook (REST API)
Source Code: View on GitHub →