# Automate lead generation with Brevo: n8n workflow template

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

Source: https://millionrounds.com/workflow/automate-lead-generation-with-brevo (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 lead generation with Brevo

Started by an event in a connected app, and works across NocoDB. It hands the judgement calls to OpenAI. 44 steps, 8 branches, 6 loops 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%2Fautomate-lead-generation-with-brevo)

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

**8** Branches: places the flow splits

**6** Loops or waits

**1** Service it connects to

## The flow

Starts it 3 Model 2 Logic 14 Service 25

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

- 1 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 2 **Email Opened** Send In Blue trigger *Starts it*
- 3 **Get Entered Leads From Crawl4AI** Noco Db *Service*
- 4 **Email Unwanted** Send In Blue trigger *Starts it*
- 5 **Get 'Entered' Leads From Apify** Noco Db *Service*
- 6 **Get by user email** Noco Db *Service*
- 7 **Loop Over Entered Leads Crawl4AI** Split In Batches *Logic*
- 8 **Delete Contact In Brevo** Send In Blue *Service*
- 9 **Loop over entered leads** Split In Batches *Logic*
- 10 **Lead Status -> Email Opened** Noco Db *Service*
- 11 **If organization website exists Crawl4AI** If *Logic*
- 12 **Get by email** Noco Db *Service*
- 13 **Fetch data to prepare for scoring** Noco Db *Service*
- 14 **If organization website exists** If *Logic*
- 15 **If Email Opened More Than Once** If *Logic*
- 16 **Crawl4AI** Http Request *Service*
- 17 **Lead Status -> Trash** Noco Db *Service*
- 18 **Loop Over Leads For Scoring** Split In Batches *Logic*
- 19 **Apify Crawl Request** Http Request *Service*
- 20 **Mark as failed_to_process** Noco Db *Service*
- 21 **Lead Status -> Warm** Noco Db *Service*
- 22 **Wait** Wait *Logic*
- 23 **Fetch processed leads** Noco Db *Service*
- 24 **If not scored** If *Logic*
- 25 **Process Apify Crawl** Noco Db *Service*
- 26 **Crawl4AI resolve** Http Request *Service*
- 27 **Loop Over Processed Leads** Split In Batches *Logic*
- 28 **Ai Scoring** Open Ai *Model*
- 29 **If pending** If *Logic*
- 30 **Set Lead Status -> 'failed_to_process'** Noco Db *Service*
- 31 **Fetch Leads With Created Emails** Noco Db *Service*
- 32 **If mail not created** If *Logic*
- 33 **Add a score** Noco Db *Service*
- 34 **If not success** If *Logic*
- 35 **Personalized Mail Loop** Split In Batches *Logic*
- 36 **Email Personalization** Open Ai *Model*
- 37 **Set Lead Status -> 'processed'** Noco Db *Service*
- 38 **If not contacted and email created** If *Logic*
- 39 **Add Personalized mail** Noco Db *Service*
- 40 **Create Contact** Send In Blue *Service*
- 41 **Email Send** Send In Blue *Service*
- 42 **Email Exists -> Mark as Contacted** Noco Db *Service*
- 43 **Mark as contacted** Noco Db *Service*
- 44 **Mark as Trash** Noco Db *Service*

## How it's built

- **Starts on:** An event in a connected app
- **Steps:** 44, with 8 branches, 6 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** NocoDB
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own NocoDB 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?

Take your time. At 44 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 44 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-lead-generation-with-brevo)
- **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.

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

## Workflows like it

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

- [**AI sales agent: fully email handling & lead scoring system** 57 steps · calls a model · Gmail, NocoDB](https://millionrounds.com/workflow/ai-sales-agent-fully-email-handling-and-lead-scoring-system)
- [**Find B2B decision maker emails & build lead database** 27 steps · calls a model · NocoDB](https://millionrounds.com/workflow/find-b2b-decision-maker-emails-and-build-lead-database)
- [**LinkedIn lead generation: Auto DM system with Unipile** 24 steps · NocoDB](https://millionrounds.com/workflow/linkedin-lead-generation-auto-dm-system-with-unipile)
- [**Enrich Instagram Reels with Mistral** 17 steps · NocoDB](https://millionrounds.com/workflow/enrich-instagram-reels-with-mistral)
- [**Discover, enrich & store cryptocurrency data** 16 steps · NocoDB](https://millionrounds.com/workflow/discover-enrich-and-store-cryptocurrency-data)
- [**Automate bounce email management for lead generation** 14 steps · Gmail, NocoDB](https://millionrounds.com/workflow/automate-bounce-email-management-for-lead-generation)
