Automation library · Lead generation

AI-personalized multi-product email outreach with SMTP

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

LargeCalls a model: OpenAI

36 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
7Loops or waits
1Service it connects to

The flow

Starts it 1Model 4Logic 23Service 8

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

  1. 1Parse AI Email Output (JSON)Output Parser StructuredModel
  2. 2MANUAL TRIGGER: Start WorkflowManual triggerStarts it
  3. 3Configure OpenAI Chat Model (GPT-4o-mini)Lm Chat Open AiModel
  4. 4Generate Personalized Email (LLM Chain)Chain LlmModel
  5. 5Loop Over ItemsSplit In BatchesLogic
  6. 6Set Random IndexFunctionLogic
  7. 7Generate Google Maps Queries (OpenAI)Open AiModel
  8. 8Switch SMTPSwitchLogic
  9. 9Process AI-Generated QueriesCodeLogic
  10. 10Gmail 1GmailService
  11. 11Gmail GmailService
  12. 12Gmail 3GmailService
  13. 13Gmail 4GmailService
  14. 14Gmail 5GmailService
  15. 15Loop Through Search QueriesSplit In BatchesLogic
  16. 16Generate Random DelayCodeLogic
  17. 17Wait Before Google SearchWaitLogic
  18. 18Wait Between EmailsWaitLogic
  19. 19Search Google MapsHttp RequestService
  20. 20Loop Through Unique EmailsSplit In BatchesLogic
  21. 21Extract URLs from Google SearchCodeLogic
  22. 22Extract Domain from EmailCodeLogic
  23. 23Filter Out Google/Schema URLsFilterLogic
  24. 24Scrape Website Content (Jina.ai)Http RequestService
  25. 25Check if URL ExistsIfLogic
  26. 26Check for Scraping ErrorIfLogic
  27. 27Remove Duplicate URLsRemove DuplicatesLogic
  28. 28NoOp (If URL Invalid)No OpLogic
  29. 29Truncate Website ContentCodeLogic
  30. 30Loop Through Unique URLsSplit In BatchesLogic
  31. 31Loop Through Website Content BatchesSplit In BatchesLogic
  32. 32Fetch Website Content (via URL)Http RequestService
  33. 33Aggregate Email ListsAggregateLogic
  34. 34Extract and Filter EmailsCodeLogic
  35. 35Split Emails into ItemsSplit OutLogic
  36. 36Remove Duplicate EmailsRemove DuplicatesLogic

How it's built

Starts on
An event in a connected app
Steps
36, with 3 branches, 7 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail
Model
OpenAI

Questions

What does it need to run?

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