AI-Powered Lead Qualification with n8n & Google Gemini

Hello n8n community! :waving_hand:

I’d like to share an automation project I’ve been working on: AI-Powered Lead Qualification with n8n and Google Gemini.

The goal of this project is to help businesses manage incoming leads more efficiently by automating the qualification process.

Here’s what the workflow does:

  • Receives Lead Information: Captures incoming lead details through a webhook.
  • Analyzes Buying Intent: Uses Google Gemini to analyze the lead’s message and assess their level of interest.
  • Classifies Leads: Categorizes each lead as Cold, Warm, or SQL (Sales Qualified Lead).
  • Assigns a Lead Score: Generates a score from 0 to 100 based on the lead’s potential.
  • Stores Results: Saves lead information and qualification results in Google Sheets.
  • Sends Email Notifications: Notifies the business owner with the lead details and AI-generated analysis.

Technologies Used: n8n, Google Gemini, JavaScript, Google Sheets, and Gmail.

The workflow has been tested locally using sample data and is part of my automation projects portfolio.

I’d appreciate your feedback on this workflow, as well as any advice or suggestions for other practical automation projects I could explore to further develop my skills and experience.

Hello,

Great work on this project. Using Google Gemini to qualify leads automatically is a very practical use case for businesses. I especially like how you connected Gmail and Google Sheets with the webhook.

My name is Haroon Pervaiz. I build AI agents and automation workflows with n8n, and I’m always interested in lead qualification and follow-up automation. Could you share how you handle the scoring logic in the Gemini prompt, and whether you have tested it with a high volume of leads?

If you are open to collaborating, or if anyone here needs help building similar workflows, you can reach me at haroonuet55@gmail.com.

Thanks for sharing!

Haroon Pervaiz

1 Like

Hello,

Thank you for your feedback and for taking the time to review my project!

For the scoring logic, I use Google Gemini with predefined guidelines in the prompt. It evaluates several factors, including buying intent, budget, project clarity, and urgency.

Based on these criteria, leads are classified into three categories:

  • Cold Lead: 0–39
  • Warm Lead: 40–69
  • SQL: 70–100

I’ve tested the workflow locally with three sample leads to verify the different classification scenarios and the complete process, from receiving lead data through the webhook to saving the results in Google Sheets and sending email notifications.

I’ve attached a screenshot showing the results of these tests.

Thank you again for your feedback!