🔓 Unlock all 10,000+ workflows & prompts free Join Newsletter →
✅ Full access unlocked — explore all 10,000 AI workflow and prompt templates Browse Templates →
Home n8n Workflow
January 21, 2026

Google Sheets + OpenAI, smarter lead qualification

Lisa Granqvist Partner Workflow Automation Expert

Leads land in a spreadsheet, and then… nothing. Or worse, you skim half the rows, guess who’s “good,” and follow up too late (or on the wrong people).

Marketing managers feel this when campaigns spike and the sheet fills up fast. Sales reps get it too, because every “maybe” lead still steals attention. Lead scoring automation fixes the triage problem so you can focus on the conversations that actually convert.

This guide walks you through an n8n workflow that watches Google Sheets, asks OpenAI to assess each lead using your rules, then writes “qualified” or “not qualified” back to the same row. Clean. Consistent. Fast.

How This Automation Works

Here’s the complete workflow you’ll be setting up:

n8n Workflow Template: Google Sheets + OpenAI, smarter lead qualification

Why This Matters: Slow follow-up and inconsistent lead triage

Spreadsheet leads look simple until you’re dealing with real volume. You copy a row into an email, check a company site, scan job titles, and try to decide if it’s worth a response. Then you do it again. After about 20 rows, you start cutting corners. You miss details. You follow up late. And because everyone “qualifies” differently, your pipeline turns into a grab bag of opinions instead of something you can trust.

It adds up fast. Here’s where it breaks down in day-to-day work.

  • Reviewing new leads one-by-one can easily eat about an hour on busy days.
  • Two people will label the same lead differently, which means reporting becomes meaningless.
  • Hot leads wait while you chase weak fits, and your response time quietly slips.
  • Manual notes and status updates get skipped, so the sheet becomes “almost accurate” at best.

What You’ll Build: Auto-qualify new Google Sheets leads with OpenAI

This workflow starts the moment a new lead is added to your Google Sheets document. n8n grabs the row details (name, email, company, message, and whatever fields you track), then sends that information to OpenAI with a system prompt that contains your qualification rules and a strict response format. OpenAI replies with a small JSON decision, and n8n parses it, combines it with the original lead data, and writes the result back into the same row. The final outcome is simple: every incoming lead gets a consistent label like “qualified” or “not qualified” without anyone needing to open the sheet.

The workflow begins with a “new row” trigger in Google Sheets. Then it runs the lead through OpenAI for a rules-based decision. Finally, it updates your sheet so sorting, filtering, and follow-up become instant.

What You’re Building

Expected Results

Say you collect 25 leads a day into Google Sheets. If manual review takes maybe 4 minutes per lead (skim, decide, update status), that’s about 100 minutes daily. With this workflow, the “work” becomes adding the row like you already do, then waiting a minute or two for OpenAI to return a decision and for n8n to write it back. You get most of that time back, and the labels stay consistent all week.

Before You Start

  • n8n instance (try n8n Cloud free)
  • Self-hosting option if you prefer (Hostinger works well)
  • Google Sheets for capturing and storing incoming leads
  • OpenAI to apply lead qualification rules consistently
  • OpenAI API key (get it from your OpenAI dashboard)

Skill level: Beginner. You’ll connect accounts, paste prompts, and map a few fields.

Want someone to build this for you? Talk to an automation expert (free 15-minute consultation).

Step by Step

A new lead row appears in Google Sheets. n8n monitors your chosen spreadsheet and triggers as soon as a new row is added, so nothing gets missed during busy periods.

The lead details are sent to OpenAI for evaluation. The workflow packages the row fields into a prompt: the system message holds your qualification rules and the required JSON response format, while the user message contains the lead’s actual data.

The AI response is converted into structured fields. n8n parses the JSON so you can reliably extract things like “qualified/not qualified” (and any extra fields you decide to capture, such as a reason).

The original spreadsheet row gets updated. The workflow merges the AI output with the lead row context, then writes the qualification result back into a dedicated column for filtering and follow-up.

You can easily modify the qualification rules to match your ideal customer profile based on your needs. See the full implementation guide below for customization options.

Step-by-Step Implementation Guide

Step 1: Configure the Google Sheets Trigger

This workflow starts when a new form response is added to a Google Sheet.

  1. Add and open the Monitor New Rows node.
  2. Set Event to rowAdded.
  3. Set Sheet Name to Form Responses 1.
  4. Set Document ID to the sheet labeled Join Community (Responses).
  5. Credential Required: Connect your googleSheetsTriggerOAuth2Api credentials.

Keep the polling interval set to everyMinute for timely lead assessment without exceeding Google API limits.

Step 2: Connect Google Sheets

Prepare the output update to write the lead rating back to the same sheet.

  1. Open Modify Lead Status.
  2. Set Operation to update.
  3. Set Sheet Name to Form Responses 1 and Document ID to Join Community (Responses).
  4. Under Columns, map Rating to {{ $json.reply.rating }} and Timestamp to {{ $json.Timestamp }}.
  5. Set Matching Columns to Timestamp to update the correct row.
  6. Credential Required: Connect your googleSheetsOAuth2Api credentials.

⚠️ Common Pitfall: If the Timestamp column format in the sheet changes, updates may fail to match the right row.

Step 3: Set Up AI Lead Scoring

The AI evaluates each lead and returns a JSON rating used later in the update step.

  1. Open Assess Leads via GPT and confirm Resource is chat and Chat Model is gpt-4-turbo-preview.
  2. Ensure the user message includes the lead fields: {{ $json['Your name'] }}, {{ $json['Email Address'] }}, {{ $json['Your business area'] }}, and {{ $json['Your team size'] }}.
  3. Set Temperature to 0.3 to keep ratings consistent.
  4. Credential Required: Connect your openAiApi credentials.
  5. Open Parse JSON Output and set the reply field to {{ JSON.parse($json.message.content) }}.

The AI must return only JSON. Any extra text will break Parse JSON Output.

Step 4: Combine Data Streams

This workflow merges the original form row data with the AI rating before updating the sheet.

  1. Open Combine Streams and set Mode to combine.
  2. Set Combination Mode to mergeByPosition.
  3. Confirm the flow: Monitor New Rows outputs to both Combine Streams and Assess Leads via GPT in parallel.
  4. Ensure Parse JSON Output connects into the second input of Combine Streams so both paths merge correctly.

⚠️ Common Pitfall: If the two inputs arrive out of sync, mergeByPosition can pair the wrong lead with the wrong rating.

Step 5: Test and Activate Your Workflow

Validate the full flow from form submission to sheet update, then enable it for production use.

  1. Click Execute Workflow and add a new row to the source sheet to trigger Monitor New Rows.
  2. Verify that Assess Leads via GPT returns a JSON object and Parse JSON Output creates a reply object.
  3. Confirm Modify Lead Status updates the Rating column for the matching Timestamp.
  4. Once validated, toggle the workflow Active to enable automated lead qualification.
🔒

Unlock Full Step-by-Step Guide

Get the complete implementation guide + downloadable template

Troubleshooting Tips

  • Google Sheets credentials can expire or need specific permissions. If things break, check the n8n credentials screen and the Google account access settings first.
  • If you’re using Wait nodes or external rendering, processing times vary. Bump up the wait duration if downstream nodes fail on empty responses.
  • Default prompts in AI nodes are generic. Add your brand voice and clear qualification rules early or you’ll be editing outputs forever.

Quick Answers

What’s the setup time for this Lead scoring automation automation?

About 30 minutes if your sheet and OpenAI key are ready.

Is coding required for this lead scoring automation?

No. You will mostly map spreadsheet fields and paste your qualification rules into the OpenAI prompt.

Is n8n free to use for this Lead scoring automation workflow?

Yes. n8n has a free self-hosted option and a free trial on n8n Cloud. Cloud plans start at $20/month for higher volume. You’ll also need to factor in OpenAI API costs (often a few cents per day at small volumes).

Where can I host n8n to run this automation?

Two options: n8n Cloud (managed, easiest setup) or self-hosting on a VPS. For self-hosting, Hostinger VPS is affordable and handles n8n well. Self-hosting gives you unlimited executions but requires basic server management.

Can I modify this Lead scoring automation workflow for different use cases?

Yes, and you should. Swap the qualification rules inside the “Assess Leads via GPT” OpenAI node, then adjust the “Parse JSON Output” node to match any extra fields you want to store (like a reason, a score, or a suggested next step). Common tweaks include adding an “ICP match” score, flagging free-email domains, and tightening rules by industry or company size.

Why is my Google Sheets connection failing in this workflow?

Usually it’s expired Google authorization in n8n. Reconnect your Google Sheets credentials, then confirm the spreadsheet and worksheet IDs still point to the same file. If someone moved the sheet into a different Google Drive or changed sharing settings, the trigger may stop seeing new rows. Also check if you hit Google API limits when lots of rows are added at once.

What volume can this Lead scoring automation workflow process?

In practice, hundreds of leads per day is realistic on a modest setup.

Is this Lead scoring automation automation better than using Zapier or Make?

Often, yes, if you care about control. n8n makes it easier to enforce strict JSON parsing, merge the AI output back into the original lead row, and extend the logic later (for example, add a Telegram alert, a webhook to your CRM, or a human-review “If” branch for edge cases). It also gives you a self-hosting route, which can matter when volume grows. Zapier or Make can be quicker for very simple two-step flows, but AI lead qualification usually gets messy without good branching and data handling. Talk to an automation expert if you want help choosing.

You set the rules once, and the workflow applies them every time. That means faster follow-ups, cleaner data, and a spreadsheet you can finally trust.

Need Help Setting This Up?

Our automation experts can build and customize this workflow for your specific needs. Free 15-minute consultation—no commitment required.

Lisa Granqvist

Workflow Automation Expert

Expert in workflow automation and no-code tools.

×

Use template

Get instant access to this n8n workflow Json file

💬
Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Get a free quote today!
Get a free quote today!

Tell us what you need and we'll get back to you within one working day.

Launch login modal Launch register modal