Templates / Turn closed-won HubSpot deals into lookalike prospects with CompanyEnrich

Turn closed-won HubSpot deals into lookalike prospects with CompanyEnrich

Needs changes

by CompanyEnrich ✓ · 86 views · created 2025-12-27 · Lead Generation

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

What this workflow does

This workflow has 9 nodes and runs on a schedule (every week). Along the way it connects HubSpot and Google Sheets. It also calls api.companyenrich.com over HTTP.

How it runs

Trigger: On a schedule (every week).

  1. HubSpot: get many (company)
  2. Filter Best (Function): runs custom JavaScript (legacy Function node)
  3. Extract Domain (Function): runs custom JavaScript (legacy Function node)
  4. Loop Over Items (Loop Over Items (Split in Batches)): loops over the items in batches
  5. HTTP Request: calls api.companyenrich.com (POST)
  6. Split Out: splits a list into separate items
  7. Edit Fields (Edit Fields (Set)): sets or maps fields
  8. Append or update row in sheet (Google Sheets): append or update

Services it uses

HubSpotGoogle Sheets

HTTP calls to: api.companyenrich.com

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • Function (legacy) in Extract Domain, Filter Best: replace with Code node, mode 'Run Once for All Items'.
Removed in 3.0Replace with
Function (legacy)
Extract Domain, Filter Best
Code node, mode 'Run Once for All Items'

Nodes used (8)

From the author

This n8n template automates turning your Closed-Won HubSpot deals into lookalike prospects using the CompanyEnrich Similar Companies API. Instead of manually guessing who looks like your best customers, this workflow takes your top-performing companies from…

Excerpt from CompanyEnrich's description on n8n.io.

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.