Score inbound leads with Google Gemini, HubSpot, and Gmail alerts
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs when someone submits an n8n form (“Talk to our team”). Along the way it connects Google Gemini Chat Model, Gmail and HubSpot.
How it runs
Trigger: When someone submits an n8n form (“Talk to our team”).
- Set Lead Data Fields (Edit Fields (Set)): sets 11 fields: First Name, Last Name, email…
- Normalize Lead Data (Code): runs custom JavaScript code
- AI Score Lead (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Model
- Parse AI Verdict (Code): runs custom JavaScript code
- Check Email Validity (If): checks a condition and branches into true / false
- Sync Contact to HubSpot (HubSpot): uses HubSpot
- If: checks a condition and branches into true / false
- Generate Alert Email (Code): runs custom JavaScript code
- Send Alert to Sales (Gmail): uses Gmail
Services it uses
Other Google Gemini + Gmail templates (518) · Other HubSpot + Gmail templates (102) · Other Google Gemini + HubSpot templates (26)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - If
n8n-nodes-base.if - Gmail
n8n-nodes-base.gmail - No Operation, do nothing
n8n-nodes-base.noOp - HubSpot
n8n-nodes-base.hubspot
From the author
Quick overview This workflow captures inbound form submissions, cleans and enriches the lead data, uses Google Gemini to score fit against your ideal customer profile, upserts the contact in HubSpot, and emails the sales owner via Gmail only when the lead…