# AI-powered lead generation with Apollo and LinkedIn: n8n workflow

> Started by someone submitting a form, and works across Google Sheets. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/ai-powered-lead-generation-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)

# AI-powered lead generation with Apollo and LinkedIn

Started by someone submitting a form, and works across Google Sheets. It hands the judgement calls to OpenAI. 25 steps, 1 branch, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fai-powered-lead-generation-with-apollo-and-linkedin)

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

**1** Branch: places the flow splits

**1** Loop or waits

**1** Service it connects to

## The flow

Starts it 2 Model 3 Logic 12 Service 8

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

- 1 **Apollo Scraper (paid)** Http Request *Service*
- 2 **Schedule Trigger** Schedule trigger *Starts it*
- 3 **Enter Target Audience** Form trigger *Starts it*
- 4 **Get Prospects** Google Sheets *Service*
- 5 **Generate Query** Set *Logic*
- 6 **Loop Over Items** Split In Batches *Logic*
- 7 **Create Apollo URL** Code *Logic*
- 8 **If Linkedin Exists?** If *Logic*
- 9 **Apollo Scraper** Http Request *Service*
- 10 **Linkedin Scraper** Http Request *Service*
- 11 **Extract Info** Set *Logic*
- 12 **Edit Fields** Set *Logic*
- 13 **Filter** Filter *Logic*
- 14 **Company Scraper** Http Request *Service*
- 15 **Save Prospects** Google Sheets *Service*
- 16 **About You** Set *Logic*
- 17 **Analyse Data** Open Ai *Model*
- 18 **Organise Response** Code *Logic*
- 19 **Generate LinkedIn Opener** Open Ai *Model*
- 20 **Genrate Emails** Open Ai *Model*
- 21 **Check Time Zone** Code *Logic*
- 22 **Assign Sender Email** Code *Logic*
- 23 **Add Opt Out Token** Code *Logic*
- 24 **Save Emails** Google Sheets *Service*
- 25 **Save Analysis** Google Sheets *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 25, with 1 branch, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Sheets
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets account, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

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?

Take your time. At 25 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 25 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%2Fai-powered-lead-generation-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.

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

## Workflows like it

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

- [**Automate personalized B2B outreach with LinkedIn** 25 steps · calls a model · Apify, Gmail](https://millionrounds.com/workflow/automate-personalized-b2b-outreach-with-linkedin)
- [**Scrape US auto transport leads with SerpAPI and OpenAI** 25 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/scrape-us-auto-transport-leads-with-serpapi-and-openai)
- [**Send dental clinic audit outreach with DeepSeek and SerpAPI** 25 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/send-dental-clinic-audit-outreach-with-deepseek-and-serpapi)
- [**Find and email website-less local businesses** 25 steps · Gmail, Google Drive](https://millionrounds.com/workflow/find-and-email-website-less-local-businesses)
- [**Generate scored B2B leads from Google Maps websites** 25 steps · Google Sheets](https://millionrounds.com/workflow/generate-scored-b2b-leads-from-google-maps-websites)
- [**AI-powered Google Maps business scraper with OpenRouter** 24 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-powered-google-maps-business-scraper-with-openrouter)
