# LinkedIn lead generation: Auto DM system with Unipile: n8n workflow

> Started by someone submitting a form, and works across NocoDB. 24 steps, 3 branches, 2 loops or waits: large, and worth reading before you trust it with...

Source: https://millionrounds.com/workflow/linkedin-lead-generation-auto-dm-system-with-unipile (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)

# LinkedIn lead generation: Auto DM system with Unipile

Started by someone submitting a form, and works across NocoDB. 24 steps, 3 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Flinkedin-lead-generation-auto-dm-system-with-unipile)

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

**3** Branches: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Logic 15 Service 8

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

- 1 **On form submission** Form trigger *Starts it*
- 2 **cursor** Code *Logic*
- 3 **Get Comments from Posts** Http Request *Service*
- 4 **Split Out1** Split Out *Logic*
- 5 **Filter Comments with trigger** Filter *Logic*
- 6 **Check if we are connected** If *Logic*
- 7 **Get all the rows where the dm is already sent** Noco Db *Service*
- 8 **Get all the rows where the connection is already asked** Noco Db *Service*
- 9 **Filter people where we have not sent the DM yet** Code *Logic*
- 10 **Filter people where we have not asked connexion yet** Code *Logic*
- 11 **If1** If *Logic*
- 12 **If** If *Logic*
- 13 **Split Out2** Split Out *Logic*
- 14 **Merge1** Merge *Logic*
- 15 **Split Out** Split Out *Logic*
- 16 **Loop Over Items1** Split In Batches *Logic*
- 17 **Filter1** Filter *Logic*
- 18 **Ask For connection** Http Request *Service*
- 19 **Wait** Wait *Logic*
- 20 **Create a row2** Noco Db *Service*
- 21 **Send DM with Lead Magnet** Http Request *Service*
- 22 **Create Message Rotation** Code *Logic*
- 23 **Answer to comment** Http Request *Service*
- 24 **Create a row** Noco Db *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 24, with 3 branches, 2 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** NocoDB
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

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

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 24 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 24 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%2Flinkedin-lead-generation-auto-dm-system-with-unipile)
- **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.

- [**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)
- [**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)
- [**Enrich LinkedIn profiles in NocoDB CRM with Apify** 13 steps · NocoDB](https://millionrounds.com/workflow/enrich-linkedin-profiles-in-nocodb-crm-with-apify)
- [**Scrape Google Maps leads and find emails with Apify** 13 steps · NocoDB](https://millionrounds.com/workflow/scrape-google-maps-leads-and-find-emails-with-apify)
