Automation library · Lead generation

Domain outbound : automate lead extraction, and targeted outreach

Started by an event in a connected app, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI. 27 steps, 2 branches, 6 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

27 stepsLarge: read it before trusting it with anything live
2Branches: places the flow splits
6Loops or waits
2Services it connects to

The flow

Starts it 1Model 2Logic 19Service 5

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

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2Generate queriesOpen AiModel
  3. 3fomate queriesCodeLogic
  4. 4Loop Over queriesSplit In BatchesLogic
  5. 5Wait1WaitLogic
  6. 6Gmail searchHttp RequestService
  7. 7Extract UrlsCodeLogic
  8. 8Filter urlsFilterLogic
  9. 9If url is not emptyIfLogic
  10. 10Remove DuplicatesRemove DuplicatesLogic
  11. 11Loop Over ItemsSplit In BatchesLogic
  12. 12Loop Over Items1Split In BatchesLogic
  13. 13HTTP Request1Http RequestService
  14. 14AggregateAggregateLogic
  15. 15Extract EmailsCodeLogic
  16. 16Split OutSplit OutLogic
  17. 17Remove Duplicates2Remove DuplicatesLogic
  18. 18Loop Over Items4Split In BatchesLogic
  19. 19Extract Domain NameCodeLogic
  20. 20get website with Jina.aiHttp RequestService
  21. 21If1IfLogic
  22. 22Limit MarkdownCodeLogic
  23. 23Generate Email contentOpen AiModel
  24. 24Gmail1GmailService
  25. 25Google SheetsGoogle SheetsService
  26. 26Code6CodeLogic
  27. 27Wait2WaitLogic

How it's built

Starts on
An event in a connected app
Steps
27, with 2 branches, 6 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own 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 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 27 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 27 steps before you point it at anything that matters.