# Comprehensive contact enrichment with Apollo and LinkedIn: n8n workflow

> Started by an event in a connected app, and works across HubSpot. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/comprehensive-contact-enrichment-with-apollo-and-linkedin (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)

# Comprehensive contact enrichment with Apollo and LinkedIn

Started by an event in a connected app, and works across HubSpot. It hands the judgement calls to OpenAI. 19 steps, 1 branch, 1 loop or waits: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fcomprehensive-contact-enrichment-with-apollo-and-linkedin)

**19 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 1 Model 5 Logic 10 Service 3

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

- 1 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 2 **Structured Output Parser2** Output Parser Structured *Model*
- 3 **OpenAI Chat Model5** Lm Chat Open Ai *Model*
- 4 **OpenAI Chat Model6** Lm Chat Open Ai *Model*
- 5 **clean** Code *Logic*
- 6 **Auto-fixing Output Parser2** Output Parser Autofixing *Model*
- 7 **Enrichment summary agent** Chain Llm *Model*
- 8 **Enrich with Apollo** Http Request *Service*
- 9 **Enrich in HubSpot1** Hubspot *Service*
- 10 **Found?** If *Logic*
- 11 **Merge** Merge *Logic*
- 12 **Loop Over Items** Split In Batches *Logic*
- 13 **Extract fields** Set *Logic*
- 14 **Get recent posts** Http Request *Service*
- 15 **Split Out** Split Out *Logic*
- 16 **Filter out reshares and old posts** Filter *Logic*
- 17 **Sort by post date** Sort *Logic*
- 18 **Limit to 3** Limit *Logic*
- 19 **Aggregate** Aggregate *Logic*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 19, with 1 branch, 1 loop or waits
- **Size:** Medium: a working afternoon
- **Connects to:** HubSpot
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own HubSpot account, and a key for OpenAI. 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?

Yes. It calls OpenAI. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

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 19 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%2Fcomprehensive-contact-enrichment-with-apollo-and-linkedin)
- **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.

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

## Workflows like it

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

- [**Qualify and route inbound leads with OpenAI and Slack** 19 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/qualify-and-route-inbound-leads-with-openai-and-slack)
- [**Auto-schedule demos for high-intent leads with Clearbit** 19 steps · Google Sheets, HubSpot](https://millionrounds.com/workflow/auto-schedule-demos-for-high-intent-leads-with-clearbit)
- [**Generate Google Maps leads with Apify and Hunter** 19 steps · Apify, HubSpot](https://millionrounds.com/workflow/generate-google-maps-leads-with-apify-and-hunter)
- [**Manage B2B referral leads with Gmail and Slack** 19 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/manage-b2b-referral-leads-with-gmail-and-slack)
- [**Route and score inbound leads with OpenAI and HubSpot** 19 steps · Gmail, Google Sheets](https://millionrounds.com/workflow/route-and-score-inbound-leads-with-openai-and-hubspot)
- [**Automate cold outreach with Apollo and LinkedIn** 18 steps · calls a model · Gmail, HubSpot](https://millionrounds.com/workflow/automate-cold-outreach-with-apollo-and-linkedin)
