# Automate B2B lead generation & personalized cold emails: n8n workflow

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

Source: https://millionrounds.com/workflow/automate-b2b-lead-generation-and-personalized-cold-emails (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)

# Automate B2B lead generation & personalized cold emails

Started by someone submitting a form, and works across Email, Gmail and Google Sheets. It hands the judgement calls to OpenAI. 18 steps, 1 branch, 2 loops or waits: a working afternoon to understand properly.

Medium Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-b2b-lead-generation-and-personalized-cold-emails)

**18 steps** Medium: a working afternoon

**1** Branch: places the flow splits

**2** Loops or waits

**3** Services it connects to

## The flow

Starts it 1 Model 6 Logic 5 Service 6

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

- 1 **On form submission** Form trigger *Starts it*
- 2 **Structured Output Parser** Output Parser Structured *Model*
- 3 **Sending cold email Gmail** Gmail *Service*
- 4 **Parse Data module** Lm Chat Open Ai *Model*
- 5 **LINK PASER** Lm Chat Open Ai *Model*
- 6 **Apollo URL Generator** Chain Llm *Model*
- 7 **Parse Lead Data** Chain Llm *Model*
- 8 **Run Apify** Http Request *Service*
- 9 **If** If *Logic*
- 10 **Limit** Limit *Logic*
- 11 **Leads without email** Google Sheets *Service*
- 12 **Add to Google Sheet** Google Sheets *Service*
- 13 **Creating a email** Open Ai *Model*
- 14 **Loop Over Items1** Split In Batches *Logic*
- 15 **message confirming end of work** Gmail *Service*
- 16 **Sending cold email** Email Send *Service*
- 17 **No Operation, do nothing** No Op *Logic*
- 18 **Wait** Wait *Logic*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 18, with 1 branch, 2 loops or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Email, Gmail, Google Sheets
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Email, Gmail and Google Sheets accounts, 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?

Plan an afternoon. 18 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 18 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%2Fautomate-b2b-lead-generation-and-personalized-cold-emails)
- **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.

[Email](https://millionrounds.com/workflows?service=Email#library)[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[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.

- [**AI lead gen & personalized email agent with Sheets and Apify** 18 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-lead-gen-and-personalized-email-agent-with-sheets-and-api)
- [**AI-powered lead research & personalized email generation** 18 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-powered-lead-research-and-personalized-email-generation)
- [**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)
- [**Automated lead capture & AI-personalized audio follow-up** 18 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/automated-lead-capture-and-ai-personalized-audio-follow-up)
- [**Create AI personalized video & voice outreach with HeyGen** 18 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/create-ai-personalized-video-and-voice-outreach-with-heygen)
- [**Draft personalized cold emails from Google Sheets with Gemini** 18 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/draft-personalized-cold-emails-from-google-sheets-with-gemin)
