AI Lead Qualifier for n8n
Score every inbound lead the moment a form or webhook fires. Invalid leads are parked on a dead-letter sheet. Valid leads get a 0–100 score, a hot / warm / nurture tier, a Google Sheets row, and a Gmail draft for you to review. The workflow does not send mail.
You get:
- An importable n8n workflow (workflows/n8n_ai_lead_qualifier.json)
- A Python script that uses the same scoring rules, plus six unit tests and sample leads — run it with no n8n and no API keys
- A setup guide (README and PDF) covering import, the spreadsheet, Gmail drafts, optional OpenAI, and a test POST
- Written Zapier and Make.com recipes so you can rebuild the same path on those tools (not fake export files)
Rules scoring works offline. OpenAI is optional. If the model call fails, the workflow keeps the rules extract and does not drop the lead.
The problem
Inbound form fills land in a generic inbox. Someone has to read each one, guess the budget and urgency, and remember to follow up. Hot leads wait. Messy messages get lost.
What this kit does
1. A webhook receives the lead (name, email, phone, company, message).
2. Email and message length are checked. Failures go to a Dead Letter sheet, and n8n returns HTTP 422.
3. Rules extract budget, timeline, and service, then assign a 0–100 score and a hot / warm / nurture tier. The same rules ship in a Python script you can run and test locally.
4. Optionally, OpenAI can extract those fields from messier text. If that call fails, the rules result is kept.
5. The lead is appended to Google Sheets.
6. A follow-up email is created as a Gmail draft. It is never auto-sent.
Who it is for
Freelancers, agencies, and small teams who already get inbound inquiries and want them triaged before the next morning. You need an n8n instance (Cloud or free self-hosted), or just Python 3 if you only want the script. Google Sheets and Gmail are required for the full n8n path.
Who it is not for
People who want a hosted app, a lead-generation system, or guaranteed bookings. This does not invent leads or promise revenue.
Requirements
- n8n Cloud or self-hosted n8n, or Python 3.9+
- A Google account (Sheets + Gmail) for the full workflow
- Optional: an OpenAI API key
Setup time
The Python demo and tests take a few minutes. The n8n import is straightforward; most of the time is connecting Google and sending one test POST. OpenAI is optional and off by default.
License
Use it in your business and in client work. Do not resell the pack as a template.
Honest limits
Sample leads are fictional. A local demo on the author’s machine (November 13, 2026) scored a $1,200 “this week” Zapier request as hot / 80 — that is a test of the rules, not a client result. You still review every draft. You still connect your own accounts.