# & enrich HubSpot buying groups with Surfe and Google Sheets: n8n workflow

> Started by an event in a connected app, and works across Gmail, Google Sheets and HubSpot.

Source: https://millionrounds.com/workflow/and-enrich-hubspot-buying-groups-with-surfe-and-google-sheet (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Lead generation](https://millionrounds.com/workflows?category=Lead+generation#library)

# & enrich HubSpot buying groups with Surfe and Google Sheets

Started by an event in a connected app, and works across Gmail, Google Sheets and HubSpot. 22 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fand-enrich-hubspot-buying-groups-with-surfe-and-google-sheet)

**22 steps** Large: read it before trusting it with anything live

**1** Branch: places the flow splits

**1** Loop or waits

**3** Services it connects to

## The flow

Starts it 2 Logic 11 Service 9

The steps in the order they run, from what starts it.

- 1 **When clicking ‘Execute workflow’** Manual trigger *Starts it*
- 2 **HubSpot Trigger** Hubspot trigger *Starts it*
- 3 **GET deal associated companies from HUBSPOT** Http Request *Service*
- 4 **HubSpot get deal** Hubspot *Service*
- 5 **HubSpot Get Company** Hubspot *Service*
- 6 **extract deal info** Code *Logic*
- 7 **Google Sheets READ CRITERIAS** Google Sheets *Service*
- 8 **extract companyDomains** Code *Logic*
- 9 **Merge1** Merge *Logic*
- 10 **Merge** Merge *Logic*
- 11 **prepare email content** Code *Logic*
- 12 **prepare JSON PAYLAOD for Person Search** Code *Logic*
- 13 **Gmail** Gmail *Service*
- 14 **Search People in Companies** Http Request *Service*
- 15 **Prepare JSON Payload Enrichment Request** Code *Logic*
- 16 **Surfe Bulk Enrichments API** Http Request *Service*
- 17 **Surfe check enrichement status** Http Request *Service*
- 18 **Is enrichment complete?** If *Logic*
- 19 **Extract list of peoples from Surfe API response** Code *Logic*
- 20 **Wait 3 secondes** Wait *Logic*
- 21 **Filter: phone AND email** Filter *Logic*
- 22 **HubSpot: Create or Update** Hubspot *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 22, with 1 branch, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, HubSpot
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and HubSpot accounts. You connect your own accounts after importing it; none are included.

What starts it?

It starts on an event in a connected app.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 22 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 22 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fand-enrich-hubspot-buying-groups-with-surfe-and-google-sheet)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[HubSpot](https://millionrounds.com/workflows?service=HubSpot#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**Create Trello cards from Google Forms lead submissions** 22 steps · Google Sheets, Trello](https://millionrounds.com/workflow/create-trello-cards-from-google-forms-lead-submissions)
- [**Generate business leads with Google Sheets** 22 steps · Google Sheets](https://millionrounds.com/workflow/generate-business-leads-with-google-sheets)
- [**AI-powered outreach & follow-up automation with OpenAI** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-outreach-and-follow-up-automation-with-openai)
- [**Automated local business lead generator with WhatsApp** 22 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/automated-local-business-lead-generator-with-whatsapp)
- [**Capture, score and route Gmail leads with Groq Llama 3.3** 22 steps · calls a model · Gmail, Slack](https://millionrounds.com/workflow/capture-score-and-route-gmail-leads-with-groq-llama-3-3)
- [**Qualify and route real estate leads from web** 22 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/qualify-and-route-real-estate-leads-from-web)
