Score and route inbound web leads with OpenAI, Gmail and Google Sheets
Ready for 3.0What 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.
- Set Lead Fields (Edit Fields (Set)): sets 6 fields: name, email, company…
- Post to AI Scoring API (HTTP Request): calls api.openai.com (POST)
- Parse AI Scoring Response (Code): runs custom JavaScript code
- Check for Hot Lead (If): checks a condition and branches into true / false
- Send Hot Lead Email (Gmail): uses Gmail
- Append to Hot Leads Sheet (Google Sheets): append
- Append to Cold Leads Sheet (Google Sheets): append
- Send Form Response (Respond to Webhook): sends the response back to the webhook caller
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - Google Sheets
n8n-nodes-base.googleSheets - Respond to Webhook
n8n-nodes-base.respondToWebhook
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…