Skip to main content

HubSpot contact AI enrichment

Workflow preview

Workflow preview
100%
HubSpot contact AI enrichment preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 t...

Best for

  • Lead Generation automation workflows
  • AI RAG automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.hubspot, @n8n/n8n-nodes-langchain.toolserpapi, n8n-nodes-base.filter, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Miha.

Original n8n.io source

1.1 Workflow description

Title
HubSpot contact AI enrichment
Workflow name
HubSpot contact AI enrichment

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:

      • company_name, industry, headquarters_city, headquarters_country, employee_count, 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.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Get recently created/updated contacts

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2.1

Block 2 - Search the web with SerpAPI

Type / Role
@n8n/n8n-nodes-langchain.toolSerpApi - toolSerpApi
Config choices
Version 1

Block 3 - Filter contacts created in the last 24h

Type / Role
n8n-nodes-base.filter - filter
Config choices
Version 2.2

Block 4 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 5 - Company Research Agent

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 2

Block 6 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 11 - Add company info

Type / Role
n8n-nodes-base.hubspot - hubspot
Config choices
Version 2.1

Block 12 - Run daily

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

3. Summary Table

Workflow HubSpot contact AI enrichment
Complexity intermediate
Nodes 12
Categories Lead Generation, AI RAG
Author Miha
Published 26 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8969/8969.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does HubSpot contact AI enrichment do?

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 t...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI RAG use case.