Templates / Score inbound leads with Google Gemini, HubSpot, and Gmail alerts

Score inbound leads with Google Gemini, HubSpot, and Gmail alerts

Ready for 3.0

by Lhoussaine Ait Aissa ✓ · 2 views · created 2026-09-08 · 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 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”).

  1. Set Lead Data Fields (Edit Fields (Set)): sets 11 fields: First Name, Last Name, email…
  2. Normalize Lead Data (Code): runs custom JavaScript code
  3. AI Score Lead (Basic LLM Chain): sends a prompt to an LLM, with model: Google Gemini Model
  4. Parse AI Verdict (Code): runs custom JavaScript code
  5. Check Email Validity (If): checks a condition and branches into true / false
  6. Sync Contact to HubSpot (HubSpot): uses HubSpot
  7. If: checks a condition and branches into true / false
  8. Generate Alert Email (Code): runs custom JavaScript code
  9. Send Alert to Sales (Gmail): uses Gmail

Services it uses

Google Gemini Chat ModelGmailHubSpot

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.

Check at runtime on n8n 3.0
  • Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Informational: a static scan can't see the data, so test these on your own instance. Status above is unchanged.

Nodes used (9)

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…

Excerpt from Lhoussaine Ait Aissa'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.