Score and route inbound web leads with OpenAI, Gmail and Google Sheets
Quick overview This workflow receives web form submissions via webhook, uses OpenAI to score and classify each lead, then emails hot leads through Gmail and logs them to separate Google Sheets tabs for hot versus cold review. How it works 1. Receives a POST webhook request containing lead details (name, email, company, role, message). 2. Normalizes the incoming fields and adds a timestamp. 3. Sends the lead details to OpenAI Chat Completions to return a JSON score (1–10), intent label, and one-s
At a glance
Score and route inbound web leads with OpenAI, Gmail and Google Sheets is a ready-made n8n workflow you import as a workflow JSON file — no build required. It connects Gmail, Google Sheets, OpenAI. It's free to download. Follow the 5-step import below to go live in minutes.
- Platform
- n8n
- Connects
- Gmail, Google Sheets, OpenAI
- Modules
- 9
- Price
- Free
- Version
- v1.0

About this workflow
Quick overview This workflow receives web form submissions via webhook, uses OpenAI to score and classify each lead, then emails hot leads through Gmail and logs them to separate Google Sheets tabs for hot versus cold review. How it works 1. Receives a POST webhook request containing lead details (name, email, company, role, message). 2. Normalizes the incoming fields and adds a timestamp. 3. Sends the lead details to OpenAI Chat Completions to return a JSON score (1–10), intent label, and one-sentence rationale. 4. Parses and validates the AI JSON output and merges it back into the lead record. 5. If the score is 7 or higher, sends a Gmail alert and appends the lead to the “Hot Leads” tab in Google Sheets. 6. If the score is below 7, appends the lead to the “Cold Review” tab in Google Sheets. 7. Responds to the webhook caller with a JSON payload including ok, score, and intent. Setup 1. Add an OpenAI API key (used via HTTP Header Auth) and ensure the Authorization header is set for requests to 2. Connect a Gmail OAuth2 credential and set the recipient email (update the workflow variable alertInbox or replace the default you@example.com). 3. Create a Google Sheet with two tabs named exactly “Hot Leads” and “Cold Review”, add the expected header columns, and replace REPLACEWITHYOURSHEETID in both Google Sheets nodes. 4. Activate the workflow, copy the production webhook URL for the lead-qualifier endpoint, and configure your form tool to POST submissions to it as JSON.
How to import this n8n workflow
- 1
Download the workflow JSON file after purchase.
- 2
Open n8n → click the menu → Import from File.
- 3
Select the downloaded JSON and import.
- 4
Set up credentials for each node that requires them.
- 5
Click Execute Workflow to test, then activate.
Setup guide
Setup guide included
Purchase to unlock the full step-by-step guide
Related N8n workflows
Create E-goi contact from new Google Sheets rows
Create a record in a Google Sheets spreadsheet when an Apple iOS device enters/exits a defined area
Webhook-enabled AI PDF analyzer
Manage Odoo CRM with natural language using OpenAI and MCP Server
Make a list of group members from Meetup in Google Sheets
Run Apify tasks and add results to Google Sheets
Build a document QA system with RAG using Milvus, Cohere, and OpenAI for Google Drive
YouTube comment scraper & analyzer with GPT-4o + email summary report
Reviews
No reviews yet
Be the first to buy and share your experience.
Leave a review
Sign in to share your experience with this workflow.
Create a free account to purchase workflows.
- JSON blueprint — instant download
- Setup guide PDF included
- 5 downloads · valid 30 days
- Works with n8n
Need help setting this up?
Book a 3-hour live setup session with an Agility consultant.
- Configure live on Google Meet / Zoom
- Free follow-up if workflow has defects
- Platform expert assigned to you