Score inbound leads with Google Gemini and route hot leads to a webhook
Ready for 3.0What this workflow does
This workflow has 7 nodes and runs when an HTTP POST request hits its webhook URL. It uses only n8n's built-in nodes. It also calls generativelanguage.googleapis.com over HTTP.
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Configure (edit me) (Edit Fields (Set)): sets 2 fields: hotLeadWebhookUrl, qualifyThreshold
- AI Qualify Lead (HTTP Request): calls generativelanguage.googleapis.com (POST)
- Parse AI Score (Edit Fields (Set)): sets 1 field: aiResult
- Hot Lead? (If): checks a condition and branches into true / false
- Notify Hot Lead (HTTP Request): calls an HTTP API (POST)
- Log Cold Lead (Edit Fields (Set)): sets 1 field: loggedAs
HTTP calls to: generativelanguage.googleapis.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 (4)
- Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - HTTP Request
n8n-nodes-base.httpRequest - If
n8n-nodes-base.if
From the author
Quick overview This workflow receives inbound lead submissions via a webhook, uses Google Gemini to score purchase intent and fit, and sends hot leads to a destination webhook while routing lower-scoring leads to a cold-lead branch for further handling. How…