Skip to main content

Reddit lead finder: Automated prospecting with GPT-4, Supabase and Gmail alerts

Workflow preview

Workflow preview
100%
Reddit lead finder: Automated prospecting with GPT-4, Supabase and Gmail alerts preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow monitors targeted subreddits for potential sales leads using Reddit’s API, AI content analysis, Supabase, and Google Sheets. It is built specifically to discover posts from Reddit use...

Best for

  • Lead Generation automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.reddit, n8n-nodes-base.if, n8n-nodes-base.googlesheets, n8n-nodes-base.gmail, n8n-nodes-base.splitinbatches

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by BluePro.

Original n8n.io source

1.1 Workflow description

Title
Reddit lead finder: Automated prospecting with GPT-4, Supabase and Gmail alerts
Workflow name
Reddit lead finder: Automated prospecting with GPT-4, Supabase and Gmail alerts

This workflow monitors targeted subreddits for potential sales leads using Reddit’s API, AI content analysis, Supabase, and Google Sheets.

It is built specifically to discover posts from Reddit users who may benefit from a particular product or service. It can be easily customized for any market.


🔍 Features

  • Targeted Subreddit Monitoring:
    Searches multiple niche subreddits like smallbusiness, startup, sweatystartup, etc., using relevant keywords.

  • AI-Powered Relevance Scoring:
    Uses OpenAI GPT to analyze each post and determine if it’s written by someone who might benefit from your product, returning a simple “yes” or “no.”

  • Duplicate Lead Filtering with Supabase:
    Ensures you don’t email the same lead more than once by storing already-processed Reddit post IDs in a Supabase table.

  • Content Filtering:
    Filters out posts with no body text or no upvotes to ensure only high-quality content is processed.

  • Lead Storage in Google Sheets:
    Saves qualified leads into a connected Google Sheet with key data (URL, post content, subreddit, and timestamp).

  • Email Digest Alerts:
    Compiles relevant leads and sends a daily digest of matched posts to your team’s inbox for review or outreach.

  • Manual or Scheduled Trigger:
    Can be manually triggered or automatically scheduled (via the built-in Schedule Trigger node).


⚙️ Tech Stack

  • Reddit API – For post discovery
  • OpenAI Chat Model – For AI-based relevance filtering
  • Supabase – For lead de-duplication
  • Google Sheets – For storing lead details
  • Gmail API – For sending email alerts

🔧 Customization Tips

  • Adjust Audience: Modify the subreddits and keywords in the initial Code node to match your market.
  • Change the AI Prompt: Customize the prompt in the “Analysis Content by AI” node to describe your product or service.
  • Search Comments Instead: To monitor comments instead of posts, change type=link to type=comment in the Reddit Search node.
  • Change Email Recipients: Edit the Gmail node to direct leads to a different email address or format.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - When clicking ‘Test workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 2 - OpenAI Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 3 - Analysis Content By AI

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 4 - Get Posts

Type / Role
n8n-nodes-base.reddit - reddit
Config choices
Version 1

Block 5 - Filter Posts

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 6 - Append row in sheet1

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

Block 7 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 8 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 9 - Get many rows

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 10 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 11 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 12 - Loop Over Items1

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 13 - Code3

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Code1

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - Loop Over Items2

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 16 - If1

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 17 - Wait1

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 18 - Loop Over Items3

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 19 - Create a row

Type / Role
n8n-nodes-base.supabase - supabase
Config choices
Version 1

Block 20 - Code4

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 21 - Code5

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 22 - Code6

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 23 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

3. Summary Table

Workflow Reddit lead finder: Automated prospecting with GPT-4, Supabase and Gmail alerts
Complexity advanced
Nodes 23
Categories Lead Generation, AI Summarization
Author BluePro
Published 01 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6756/6756.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Reddit lead finder: Automated prospecting with GPT-4, Supabase and Gmail alerts do?

This workflow monitors targeted subreddits for potential sales leads using Reddit’s API, AI content analysis, Supabase, and Google Sheets. It is built specifically to discover posts from Reddit use...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Lead Generation, AI Summarization use case.