{"product_id":"n8n-lead-scoring-google-gemini-hubspot-gmail-alerts","title":"n8n Lead Scoring: Google Gemini + HubSpot + Gmail Alerts","description":"\u003ch3\u003eInstant “Hot Lead” alerts from your inbound forms—scored by Google Gemini and synced to HubSpot\u003c\/h3\u003e\n\u003cp\u003eThis n8n workflow takes every new inbound form submission, cleans and enriches the lead, uses \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e to score fit against your ICP, \u003cstrong\u003eupserts the contact in HubSpot\u003c\/strong\u003e, and emails your \u003cstrong\u003esales owner via Gmail\u003c\/strong\u003e only when the lead is “hot” based on a defined threshold.\u003c\/p\u003e\n\n\u003ch3\u003eWhat this workflow does\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eReceives new lead submissions\u003c\/strong\u003e from an n8n Form trigger.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eNormalizes lead data\u003c\/strong\u003e by validating and lowercasing the email, extracting the company domain, detecting free email providers, and backfilling missing company\/website details.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eEnriches with AI scoring\u003c\/strong\u003e: sends the cleaned lead data plus your ICP description to \u003cstrong\u003eGoogle Gemini\u003c\/strong\u003e and requests a JSON verdict containing a fit score, segment, reasoning, and a suggested email opener.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eDefensively parses results\u003c\/strong\u003e: calculates whether the lead is “hot” using the score threshold, disqualification flag, and email validity. If the model response is unreadable, it safely falls back to a default behavior.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSyncs to HubSpot\u003c\/strong\u003e: when the email is valid, creates or updates the contact matched by email, and writes lead message, score, segment, and lifecycle stage to HubSpot properties.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eSends Gmail alerts only for hot leads\u003c\/strong\u003e: generates an HTML alert and sends it to the configured sales owner via \u003cstrong\u003eGmail\u003c\/strong\u003e—otherwise it finishes without sending.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eUse cases\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003eSaaS teams that want \u003cstrong\u003elead scoring automation\u003c\/strong\u003e right after inbound submissions.\u003c\/li\u003e\n  \u003cli\u003eMarketing-to-sales handoff workflows: route only high-fit leads to reps.\u003c\/li\u003e\n  \u003cli\u003eOperators who need \u003cstrong\u003eHubSpot contact enrichment\u003c\/strong\u003e with AI-derived scoring details.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch3\u003eTechnical details\u003c\/h3\u003e\n\u003cul\u003e\n  \u003cli\u003e\n\u003cstrong\u003eIntegrations \/ nodes:\u003c\/strong\u003e if, set, code, no op, Gmail, HubSpot.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eAI:\u003c\/strong\u003e Google Gemini (Chat Model) returns JSON used for fit score and segment.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eHubSpot auth:\u003c\/strong\u003e Private App token with \u003ccode\u003ecrm.objects.contacts.read\u003c\/code\u003e and \u003ccode\u003ecrm.objects.contacts.write\u003c\/code\u003e.\u003c\/li\u003e\n  \u003cli\u003e\n\u003cstrong\u003eGmail:\u003c\/strong\u003e sends an HTML “hot lead” email to the sales owner.\u003c\/li\u003e\n\u003c\/ul\u003e","brand":"N8N Commerce","offers":[{"title":"Default Title","offer_id":45985526644915,"sku":"N8N-19385","price":46.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0749\/6279\/6723\/files\/FVBCbysxZ6w6HAngizc1_RrURkaJk.png?v=1788945507","url":"https:\/\/buyflowscripts.com\/products\/n8n-lead-scoring-google-gemini-hubspot-gmail-alerts","provider":"N8N Commerce","version":"1.0","type":"link"}