Automation library · Lead generation

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.

LargeCalls a model: OpenAI

44 stepsLarge: read it before trusting it with anything live
8Branches: places the flow splits
6Loops or waits
1Service it connects to

The flow

Starts it 3Model 2Logic 14Service 25

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

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2Email OpenedSend In Blue triggerStarts it
  3. 3Get Entered Leads From Crawl4AINoco DbService
  4. 4Email UnwantedSend In Blue triggerStarts it
  5. 5Get 'Entered' Leads From ApifyNoco DbService
  6. 6Get by user emailNoco DbService
  7. 7Loop Over Entered Leads Crawl4AISplit In BatchesLogic
  8. 8Delete Contact In BrevoSend In BlueService
  9. 9Loop over entered leadsSplit In BatchesLogic
  10. 10Lead Status -> Email OpenedNoco DbService
  11. 11If organization website exists Crawl4AIIfLogic
  12. 12Get by emailNoco DbService
  13. 13Fetch data to prepare for scoringNoco DbService
  14. 14If organization website existsIfLogic
  15. 15If Email Opened More Than OnceIfLogic
  16. 16Crawl4AIHttp RequestService
  17. 17Lead Status -> TrashNoco DbService
  18. 18Loop Over Leads For ScoringSplit In BatchesLogic
  19. 19Apify Crawl RequestHttp RequestService
  20. 20Mark as failed_to_processNoco DbService
  21. 21Lead Status -> WarmNoco DbService
  22. 22WaitWaitLogic
  23. 23Fetch processed leadsNoco DbService
  24. 24If not scoredIfLogic
  25. 25Process Apify CrawlNoco DbService
  26. 26Crawl4AI resolveHttp RequestService
  27. 27Loop Over Processed LeadsSplit In BatchesLogic
  28. 28Ai ScoringOpen AiModel
  29. 29If pendingIfLogic
  30. 30Set Lead Status -> 'failed_to_process'Noco DbService
  31. 31Fetch Leads With Created EmailsNoco DbService
  32. 32If mail not createdIfLogic
  33. 33Add a scoreNoco DbService
  34. 34If not successIfLogic
  35. 35Personalized Mail LoopSplit In BatchesLogic
  36. 36Email PersonalizationOpen AiModel
  37. 37Set Lead Status -> 'processed'Noco DbService
  38. 38If not contacted and email createdIfLogic
  39. 39Add Personalized mailNoco DbService
  40. 40Create ContactSend In BlueService
  41. 41Email SendSend In BlueService
  42. 42Email Exists -> Mark as ContactedNoco DbService
  43. 43Mark as contactedNoco DbService
  44. 44Mark as TrashNoco DbService

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.