Automation library · CRM

Automate sales for digital products & SaaS with OpenAI

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

LargeCalls a model: OpenAI

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

The flow

Starts it 1Model 4Logic 20Service 4

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. 5Generate Google Maps Queries (OpenAI)Open AiModel
  6. 6Send Email via GmailGmailService
  7. 7Process AI-Generated QueriesCodeLogic
  8. 8Generate Random DelayCodeLogic
  9. 9Loop Through Search QueriesSplit In BatchesLogic
  10. 10Wait Between EmailsWaitLogic
  11. 11Wait Before Google SearchWaitLogic
  12. 12Loop Through Unique EmailsSplit In BatchesLogic
  13. 13Search Google MapsHttp RequestService
  14. 14Extract Domain from EmailCodeLogic
  15. 15Extract URLs from Google SearchCodeLogic
  16. 16Scrape Website Content (Jina.ai)Http RequestService
  17. 17Filter Out Google/Schema URLsFilterLogic
  18. 18Check for Scraping ErrorIfLogic
  19. 19Check if URL ExistsIfLogic
  20. 20Truncate Website ContentCodeLogic
  21. 21Remove Duplicate URLsRemove DuplicatesLogic
  22. 22NoOp (If URL Invalid)No OpLogic
  23. 23Loop Through Unique URLsSplit In BatchesLogic
  24. 24Loop Through Website Content BatchesSplit In BatchesLogic
  25. 25Fetch Website Content (via URL)Http RequestService
  26. 26Aggregate Email ListsAggregateLogic
  27. 27Extract and Filter EmailsCodeLogic
  28. 28Split Emails into ItemsSplit OutLogic
  29. 29Remove Duplicate EmailsRemove DuplicatesLogic

How it's built

Starts on
An event in a connected app
Steps
29, with 2 branches, 6 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 29 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 29 steps before you point it at anything that matters.