Automation library · Lead generation

Reddit lead finder: prospecting with OpenAI and Supabase

Started by a clock, and works across Gmail, Google Sheets, Reddit and Supabase. It hands the judgement calls to OpenAI. 23 steps, 3 branches, 5 loops or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenAI

23 stepsLarge: read it before trusting it with anything live
3Branches: places the flow splits
5Loops or waits
4Services it connects to

The flow

Starts it 2Model 2Logic 14Service 5

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

  1. 1When clicking ‘Test workflow’Manual triggerStarts it
  2. 2OpenAI Chat ModelLm Chat Open AiModel
  3. 3Schedule TriggerSchedule triggerStarts it
  4. 4CodeCodeLogic
  5. 5Analysis Content By AIAgentModel
  6. 6Loop Over ItemsSplit In BatchesLogic
  7. 7Code3CodeLogic
  8. 8Filter PostsIfLogic
  9. 9Get PostsRedditService
  10. 10Loop Over Items2Split In BatchesLogic
  11. 11Loop Over Items1Split In BatchesLogic
  12. 12If1IfLogic
  13. 13Wait1WaitLogic
  14. 14IfIfLogic
  15. 15Get many rowsSupabaseService
  16. 16Loop Over Items3Split In BatchesLogic
  17. 17Code1CodeLogic
  18. 18Code4CodeLogic
  19. 19Append row in sheet1Google SheetsService
  20. 20Code5CodeLogic
  21. 21Send a messageGmailService
  22. 22Create a rowSupabaseService
  23. 23Code6CodeLogic

How it's built

Starts on
A clock
Steps
23, with 3 branches, 5 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Google Sheets, Reddit, Supabase
Model
OpenAI

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets, Reddit and Supabase accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

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 23 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 23 steps before you point it at anything that matters.