Templates / Score and route inbound web leads with OpenAI, Gmail and Google Sheets

Score and route inbound web leads with OpenAI, Gmail and Google Sheets

Ready for 3.0

by Milos Vranes ✓ · 203 views · created 2026-05-26 · Lead Generation, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 9 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Gmail and Google Sheets. It also calls api.openai.com over HTTP.

How it runs

Trigger: When an HTTP POST request hits its webhook URL.

  1. Set Lead Fields (Edit Fields (Set)): sets 6 fields: name, email, company…
  2. Post to AI Scoring API (HTTP Request): calls api.openai.com (POST)
  3. Parse AI Scoring Response (Code): runs custom JavaScript code
  4. Check for Hot Lead (If): checks a condition and branches into true / false
  5. Send Hot Lead Email (Gmail): uses Gmail
  6. Append to Hot Leads Sheet (Google Sheets): append
  7. Append to Cold Leads Sheet (Google Sheets): append
  8. Send Form Response (Respond to Webhook): sends the response back to the webhook caller

Services it uses

GmailGoogle Sheets

HTTP calls to: api.openai.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (8)

From the author

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…

Excerpt from Milos Vranes's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.