Templates / HubSpot contact AI enrichment

HubSpot contact AI enrichment

Needs changes

by Miha ✓ · 1,631 views · created 2025-09-26 · Lead Generation, AI RAG

Needs changes. This template uses 1 thing(s) that n8n 3.0 removes: SerpApi (Google Search). 1 breaking item(s) found. Static check, last run 2026-10-19.

What to replace before upgrading

Removed in 3.0Replace with
SerpApi (Google Search)
Search the web with SerpAPI1
No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node

Nodes used (7)

HubSpotSerpApi (Google Search)Google Gemini Chat ModelAI AgentStructured Output Parser

What it does

This n8n template auto-enriches brand-new HubSpot contacts with company details. Each day it finds contacts created in the last 24 hours (skipping free email domains), researches the company from the contact’s email domain, and writes back clean fields—no manual lookup needed. Perfect for GTM teams that want better segmentation and faster personalization from day one. --- How it works A daily schedule trigger starts the workflow. HubSpot: Get recently created/updated contacts pulls the newest records. A filter keeps only contacts: created within the last 24 hours whose email domain doesn’t contain gmail.com (adjust as needed). An AI research agent (Gemini + SerpAPI): extracts the company domain from the contact’s email searches the web and returns structured JSON: companyname, industry, headquarterscity, headquarterscountry, employeecount, website, linkedin, description HubSpot: Add company info updates the contact with the enriched fields. --- How to use 1. Connect HubSpot on both HubSpot nodes (OAuth2). 2. Connect SerpAPI (paste your API key). 3. Connect Google Gemini (Google AI Studio API key). 4. (Optional) Edit the agent prompt to fetch more/different fields. 5. (Optional) Tweak the filter to include/exclude other domains. 6. Activate the workflow to run daily. --- Requirements HubSpot (OAuth2) for reading/updating contacts SerpAPI for web search results Google Gemini for company profiling and structured output --- Notes & customization Free domains: Add more exclusions (e.g., yahoo.com, outlook.com) to reduce false positives. Confidence gating: Require website + LinkedIn before writing to HubSpot, or route low-confidence results for manual review. Field mapping: Extend the update step with additional properties (e.g., industry tags, HQ timezone). Frequency: Switch the trigger to hourly for faster enrichment on high-volume inbound. Data hygiene: Normalize employee count ranges and country names to your CRM picklists.

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.