# Reddit lead finder: prospecting with OpenAI and Supabase: n8n workflow

> Started by a clock, and works across Gmail, Google Sheets, Reddit and Supabase. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/reddit-lead-finder-prospecting-with-openai-and-supabase (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Lead generation](https://millionrounds.com/workflows?category=Lead+generation#library)

# 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.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freddit-lead-finder-prospecting-with-openai-and-supabase)

**23 steps** Large: read it before trusting it with anything live

**3** Branches: places the flow splits

**5** Loops or waits

**4** Services it connects to

## The flow

Starts it 2 Model 2 Logic 14 Service 5

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

- 1 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 2 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 3 **Schedule Trigger** Schedule trigger *Starts it*
- 4 **Code** Code *Logic*
- 5 **Analysis Content By AI** Agent *Model*
- 6 **Loop Over Items** Split In Batches *Logic*
- 7 **Code3** Code *Logic*
- 8 **Filter Posts** If *Logic*
- 9 **Get Posts** Reddit *Service*
- 10 **Loop Over Items2** Split In Batches *Logic*
- 11 **Loop Over Items1** Split In Batches *Logic*
- 12 **If1** If *Logic*
- 13 **Wait1** Wait *Logic*
- 14 **If** If *Logic*
- 15 **Get many rows** Supabase *Service*
- 16 **Loop Over Items3** Split In Batches *Logic*
- 17 **Code1** Code *Logic*
- 18 **Code4** Code *Logic*
- 19 **Append row in sheet1** Google Sheets *Service*
- 20 **Code5** Code *Logic*
- 21 **Send a message** Gmail *Service*
- 22 **Create a row** Supabase *Service*
- 23 **Code6** Code *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Freddit-lead-finder-prospecting-with-openai-and-supabase)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[Reddit](https://millionrounds.com/workflows?service=Reddit#library)[Supabase](https://millionrounds.com/workflows?service=Supabase#library)

## Workflows like it

Also lead generation, with the same services where possible, closest in size first.

- [**Enrich and score leads with Claude and PDL** 23 steps · calls a model · Apify, Gmail](https://millionrounds.com/workflow/enrich-and-score-leads-with-claude-and-pdl)
- [**Personalized sales outreach from LinkedIn job signals** 23 steps · calls a model · Apify, Google Sheets](https://millionrounds.com/workflow/personalized-sales-outreach-from-linkedin-job-signals)
- [**Qualify real estate WhatsApp leads with Gemini and Airtable** 23 steps · calls a model · Airtable, Google Calendar](https://millionrounds.com/workflow/qualify-real-estate-whatsapp-leads-with-gemini-and-airtable)
- [**Scrape LinkedIn B2B leads with Apify** 23 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/scrape-linkedin-b2b-leads-with-apify)
- [**Send validated outreach emails with Gmail and Google Sheets** 23 steps · Gmail, Google Drive](https://millionrounds.com/workflow/send-validated-outreach-emails-with-gmail-and-google-sheets)
- [**AI-powered Google Maps business scraper with OpenRouter** 24 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-powered-google-maps-business-scraper-with-openrouter)
