Enrich HubSpot contacts with Gemini

Each day, Gemini researches the company of new HubSpot contacts. This n8n template starts from a daily schedule trigger and keeps HubSpot contacts created in the last 24 hours whose email domain does not contain gmail.com. An AI research agent built on Google Gemini and SerpAPI takes the company domain from each contact's email, searches the web and returns structured JSON. A HubSpot node then updates the contact with company name, industry, headquarters city and country, employee count, website, LinkedIn and a description. You connect HubSpot with OAuth2 on both HubSpot nodes, a SerpAPI key and a Google AI Studio key for Gemini. It is for sales teams whose HubSpot contacts lack company details.

n8nRead on 2026-11-165 steps

Steps

  1. Trigger: A daily schedule trigger starts the workflow
  2. HubSpot gets recently created contactsHubSpot
  3. Filter keeps new, non-gmail.com contacts
    Created within the last 24 hours.
  4. AI research agent finds company detailsGoogle Gemini
    Gemini + SerpAPI; structured JSON.
  5. Output: HubSpot updates the contactHubSpot

Limits

  • Needs a SerpAPI key for web search.
  • Company data comes from a web search, not from a company database.

What it does well

  • Writes the company fields straight into the HubSpot contact.
  • Runs once a day without manual steps.

Before you import

Connect HubSpot (OAuth2) on both HubSpot nodes, paste a SerpAPI key, and add a Google AI Studio API key for Gemini.

Similar templates