Lead Intelligence by Aadit PaniLead Intelligence by Aadit Pani

Lead Intelligence

Portfolio project
Aadit Pani
AI workflow automationPortfolio project

Lead Intelligence

Every inbound lead classified, scored and given a draft reply within a minute.
intake channels, one pipeline
3
Google Sheet polling interval
60s
duplicate leads on n8n retries
0

The problem

Inbound leads land in different places (spreadsheets, CSV exports, web forms) and sit there unread. Someone has to triage them by hand, separate real enquiries from spam, and write a first reply.

What I built

Three intake channels, one pipeline. n8n polls a Google Sheet every 60 seconds and POSTs new rows to FastAPI; a CLI bulk-imports CSVs; clients can call POST /lead directly. All three share one classify() path.
Structured LLM output. Each lead gets a classification (Hot / Warm / Cold / Spam), confidence, reasoning, intent, budget and timeline hints, and a personalised suggested reply. JSON mode plus Pydantic validation, with one retry on malformed output.
Reliability built in. A dedup hash makes intake idempotent, so n8n retries never create duplicate leads. If the LLM is down the lead is still stored, with the error shown in the UI. Empty input is rejected before any LLM call.
Operator inbox. A Next.js two-pane inbox with keyboard shortcuts and editable replies, so someone non-technical can work through leads quickly.
Second n8n flow. An hourly digest that emails new Hot leads to the team.

Result

A new lead is classified with a draft reply ready within about a minute of arriving. Swapping Groq for OpenAI or Claude is a single environment variable.
n8n flow: hourly hot-lead digest → Gmail

0 likes · 0 views · Nov 26, 2026

Automates lead intake, classification, scoring and reply drafting across spreadsheets, CSVs and API submissions, with a two-pane operator inbox.

Tags