← Back to Blog
🔧
AI Automation

Build a Lead Qualification Workflow with n8n, ChatGPT and Google Sheets

A practical walkthrough: capture leads from a form, have AI score them, save everything to Google Sheets, and alert your team about the hot ones. No paid CRM needed.

AHAD Team·27 November 2026·5 min read

Here's a workflow we set up again and again for small businesses. It isn't fancy, but it solves a real problem: leads come in from a website or ad form, someone has to read each one, decide if it's worth a call, and log it somewhere. That's slow, and good leads wait while bad ones get attention.

We'll build it with three tools most businesses already have or can get cheaply: n8n for the automation, ChatGPT (the OpenAI API) for the scoring, and Google Sheets as a simple lead list.

If you're still choosing between automation tools, our n8n vs Make comparison will help. Everything here can also be built in Make with similar steps.

What the workflow does

  1. A new lead comes in from a form
  2. AI reads the lead's answers and gives it a score and a reason
  3. The lead, score and reason are saved in a Google Sheet
  4. If the lead is hot, someone on the team gets an instant alert

What you'll need

  • An n8n account (cloud trial or self-hosted)
  • An OpenAI API key, with a small amount of credit added
  • A Google account with a Sheet for leads
  • A form: Google Forms, a website form, Facebook lead ads, or anything that can send data to a webhook

Step 1: Set up the Google Sheet

Create a sheet with these columns:

Date | Name | Phone | Requirement | Budget | Timeline | Source | Score | Reason | Status

Keep it simple. You can add columns later.

Step 2: Trigger the workflow

In n8n, start a new workflow with a trigger that matches your form:

  • Webhook node if your website form can post data to a URL
  • Google Sheets trigger if leads already land in a sheet
  • Facebook Lead Ads node if you're using lead forms

Submit a test lead so n8n can see what the data looks like.

Step 3: Ask the AI to score the lead

Add an OpenAI node (or an HTTP Request node pointed at the API). The prompt is where the real work happens. Something like:

You qualify sales leads for [business], which sells [what you sell] in [area]. A good lead needs [your criteria, e.g. budget above ₹50,000, wants to start within 2 months, located in Chennai].

Here is the lead: Requirement: {{requirement}} Budget: {{budget}} Timeline: {{timeline}}

Reply in JSON only: {"score": "hot" | "warm" | "cold", "reason": "one short sentence"}

A few tips:

  • Be specific about your criteria. "Good lead" means nothing to the AI. "Budget above ₹50,000 and wants to start within 2 months" is clear.
  • Ask for JSON. It makes the next step reliable. Most AI nodes have a setting to force JSON output.
  • Use a small, cheap model. Scoring a short lead doesn't need the most expensive model. The cost per lead should be a tiny fraction of a rupee.

Step 4: Save to Google Sheets

Add a Google Sheets node with the "Append row" action. Map the form fields and the AI's score and reason to your columns. Set Status to "New".

Now every lead lands in one place with a score and a short explanation of why.

Step 5: Alert the team about hot leads

Add an IF node: if score equals "hot", continue. Then send an alert using whatever your team actually looks at:

  • A WhatsApp message through your WhatsApp API provider
  • An email via Gmail
  • A Telegram or Slack message

Include the name, phone, requirement and the AI's reason, so whoever picks it up can call straight away without opening the sheet.

For warm leads, you might send a polite automatic reply with more information. For cold ones, just log them.

Step 6: Test with real examples

Before switching it on, feed in 15–20 old leads you already know the outcome of. Did the AI score the ones that became customers as hot? If not, adjust the criteria in the prompt.

This testing step is the one people skip, and it's the one that makes the workflow trustworthy.

Things to keep in mind

The AI can be wrong. Treat the score as a sorting aid, not a final verdict. Someone should still glance at warm and cold leads occasionally.

Handle failures. If the OpenAI call fails, the lead should still be saved, just without a score. Use n8n's error settings so you never lose a lead because of an AI hiccup.

Mind privacy. You're sending customer details to an AI service. Send only what's needed for scoring. A name and phone number usually aren't needed for the AI step at all.

Watch costs. They're very low for scoring, but set a usage limit on your OpenAI account anyway.

Where to go next

Once this works, natural next steps are: adding the lead's source (which ad or page), sending an automatic WhatsApp reply to every new lead, and setting reminders when a hot lead hasn't been called within an hour.

If you'd rather have it built and tested for you, that's what our automation service does. And if you want to try it yourself as a learning project, it's part of our AI agency roadmap.

Book a free consultation and we'll look at your current lead flow.

Interested in building something with us?

Get in touch →

We use essential cookies to run this site and, with your permission, analytics and marketing cookies (Google Analytics, Google Ads) to understand visits and measure our ads. Privacy policy