Skip to main content

Automate company data enrichment with HubSpot, Sona, OpenAI & Google Sheets

Workflow preview

Workflow preview
100%
Automate company data enrichment with HubSpot, Sona, OpenAI & Google Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Automatically identify ICP matches by enriching basic company records with Sona Enrich data—combining web scraping, AI analysis, and the structured attributes that define your ideal customer. Impor...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

@n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.httprequest, n8n-nodes-base.noop, n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.googlesheets, n8n-nodes-base.html

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate company data enrichment with HubSpot, Sona, OpenAI & Google Sheets
Workflow name
Automate company data enrichment with HubSpot, Sona, OpenAI & Google Sheets

Automatically identify ICP matches by enriching basic company records with Sona Enrich data—combining web scraping, AI analysis, and the structured attributes that define your ideal customer.

Import company domains from a Google Sheet, automatically analyze their websites with AI, enrich them with firmographic data via Sona Enrich, and sync the results to HubSpot—so you can quickly discover and target your ideal customers.

How it works

Step 1: Data Input & Web Scraping

  • Reads company domains from your Google Sheet
  • Scrapes each website's content via HTTP requests
  • Extracts and cleans HTML content
  • Removes navigation, footers, and noise

Step 2: AI Analysis

  • Sends cleaned content to OpenAI Chat Model
  • Extracts structured company intelligence (industry, positioning, features, personas)
  • Captures and analyzes pricing, pros/cons, and value propositions
  • Aggregates all AI results into standardized format
  • Advanced users: You can modify the data that's generated and then add custom fields to HubSpot

Step 3: HubSpot Preparation

  • Creates custom fields in HubSpot CRM
  • Prepares AI-extracted data for import
  • Splits aggregated data into individual company records
  • Ready for batch processing

Step 4: Enrich & Sync to HubSpot

  • Loops through each company one by one
  • Enriches with the Sona API (firmographics, revenue, employees, funding, and more)
  • Creates company record in HubSpot
  • Formats and populates all custom fields
  • Combines AI insights + Sona data in one complete profile

What you'll get

The workflow enriches each company record with:

  • Web-Scraped Intelligence: Business descriptions, features, and positioning directly from their website
  • AI-Analyzed Insights: Value propositions, target personas, pricing models, and competitive advantages interpreted by AI
  • Firmographic Data: Company size, employee count, revenue estimates, headquarters location, and more via Sona Enrich
  • Technographic Data: Technology stack, platforms, and tools the company uses
  • Industry Classification: Precise industry categorization and market type (B2B/B2C)
  • Funding & Growth: Investment rounds, funding status, and growth indicators
  • Custom HubSpot Properties: All data automatically mapped and synced to your CRM for immediate use

Why use this

  • Complete intelligence gathering: Combines three powerful data sources (web scraping, AI, and Sona enrichment) for maximum insight depth
  • Personalize at scale: Leverage actual company intelligence to craft relevant, informed outreach that resonates
  • Intelligent segmentation: Build precise account lists by industry, tech stack, business model, or company size
  • Accelerate research: Eliminate hours of manual company investigation—save 15-30 minutes per prospect
  • Improve conversion: Engage prospects with context-rich conversations that demonstrate deep understanding
  • Enhanced lead scoring: Build sophisticated scoring models with comprehensive firmographic and technographic signals
  • Automated updates: Keep HubSpot records current with scheduled enrichment runs (daily/weekly)

Setup instructions

Before you start, you'll need:

  • Google Sheet with company websites (column named "Website Domain")
  • OpenAI API key for AI analysis (sign up here)
  • Sona API credentials (get access here)
  • Get an app token from HubSpot by creating a legacy app:
    1. Go to HubSpot Settings > Integrations > Legacy Apps
    2. Click Create Legacy App
    3. Select Private (for one account)
    4. In the scopes section, enable the following permissions:
      • crm.schemas.companies.write
      • crm.objects.companies.write
      • crm.schemas.companies.read
    5. Click Create
    6. Copy the access token from the Auth tab
  • n8n cloud or self-hosted instance

Configuration steps:

  1. Prepare your data: Create a Google Sheet with a "Website Domain" column and add 2-3 test companies (e.g., example.com)
  2. Connect Google Sheets: In the "Get row(s) in sheet" node, authenticate and select your spreadsheet and sheet name
  3. Configure web scraping: Update the HTTP Request node with your preferred scraping method or data source URL
  4. Set up AI Agent: Add your OpenAI API key and customize the extraction prompt to define which company fields you want (industry, personas, features, etc.)
  5. Create HubSpot custom fields: Review the "Create Custom HubSpot Fields" node and adjust property names to match your CRM structure
  6. Add Sona credentials: In the "Sona Enrich" node within the loop, authenticate with your Sona API key
  7. Connect HubSpot: Authenticate in both "Create a Company" nodes using your HubSpot API key or OAuth2
  8. Map enriched data: In the "Format Custom Properties" node, configure how Sona and AI data maps to your HubSpot fields
  9. Test with sample data: Run the workflow with 2-3 test companies and verify records appear correctly in HubSpot with all custom properties populated
  10. Add error handling: Configure notifications for failed enrichments or API errors (optional but recommended)
  11. Scale and automate: Process your full company list, then optionally add a Schedule Trigger for automatic daily or weekly enrichment

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 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 2 - Structured Output Parser

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

Block 3 - Sona Enrich

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 4 - End

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

Block 5 - Start

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

Block 6 - Sticky Note

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

Block 7 - Get Company List from Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 8 - Scrape Website Content

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 9 - Extract HTML Content

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

Block 10 - Clean & Format Text

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Analyze with AI

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

Block 12 - Collect AI Results

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

Block 13 - Create Custom HubSpot Fields

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 14 - Prepare Data for Loop

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - Split Companies and AI Output into Items

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

Block 16 - Loop Through Companies

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 17 - Create HubSpot Company

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

Block 18 - Format Custom Properties

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 19 - Update Company with AI Data

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 20 - Sticky Note1

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

Block 21 - Sticky Note2

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

Block 22 - Sticky Note3

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

Block 23 - Sticky Note4

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

3. Summary Table

Workflow Automate company data enrichment with HubSpot, Sona, OpenAI & Google Sheets
Complexity advanced
Nodes 23
Categories Lead Generation, AI Summarization
Author Sona Labs
Published 19 Dec 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/11937/11937.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 Automate company data enrichment with HubSpot, Sona, OpenAI & Google Sheets do?

Automatically identify ICP matches by enriching basic company records with Sona Enrich data—combining web scraping, AI analysis, and the structured attributes that define your ideal customer. Impor...

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 Summarization use case.