Automation Protocol Updated 2 Days Ago

Reddit AI Lead Mining System

A complete guide to building a 24/7 listener bot that finds hot leads on Reddit, classifies them with GPT-4, and pings your Slack channel instantly.


What This Workflow Does

  • Runs automatically every 4 hours.
  • Fetches the 20 newest posts from your target subreddits.
  • Uses AI to classify posts as: Automation Request (Lead), System (Content), or Question (Tutorial).
  • Extracts relevancy & detail scores to filter noise.
  • Logs data to Google Sheets & pings Slack instantly.
Done For You

Not Ready to Build This Yourself?

We implement this complete Reddit lead mining pipeline for you. Includes full authentication setup, 30-day optimization, and custom AI prompts for your niche.

Book Consultation
01

Workflow Logic

1. Schedule Trigger

Kicks off the automation every 4 hours to avoid rate limits.

2. Define Subreddits

Iterates through your custom list (e.g., r/SaaS, r/Entrepreneur).

3. Get Posts & Clean Data

Fetches the raw data and extracts Title, Content, URL, and Upvotes.

4. AI Classifier (The Brain)

GPT-4o-mini analyzes the context. It routes the data into 3 branches based on intent.

5. Logging & Alerting

Qualified leads are saved to Sheets. High-priority alerts go to Slack.

02

Required Credentials

Reddit API

Create a 'Script' app at reddit.com/prefs/apps.

Redirect URI: http://localhost:8080

OpenAI API

Requires GPT-4o-mini access. Cost is approx ~$3-8/month depending on volume.

Google Sheets

Use OAuth2 credential. Create columns: SubReddit | Title | Content | Type | Summary | Score | Link.

Slack App

Create app with 'chat:write' scopes. Install to workspace and copy OAuth Token.

03

Setup Steps

Step 1: Import Workflow

Download the JSON file below and import it into your n8n instance.

Download JSON

Step 2: Customize Subreddits

Locate the node named Edit Fields1. Replace the JSON array with your niche targets.

JSON Configuration
{
 "subreddit": [
 "Entrepreneur",
 "SaaS",
 "smallbusiness",
 "Zapier",
 "nocode"
 ]
}

Step 3: Update AI Prompts (Optional)

The system message in the OpenAI node controls the quality. Here is the logic for "Automation Requests":

System Prompt
Analyze reddit post from user requesting an AI automation system.
- Summarize the exact system they want built
- Assign relevancy score (0.05-0.95)
- Assign detail score (0.9+ = enough info to recreate in n8n)
04

Optimization Tips

Best Practices

Schedule Frequency

Keep it at 4 hours. If you go below 2 hours, Reddit might rate-limit your IP address.

Volume Control

Increase "Limit" in the Reddit node from 20 to 50 if you are targeting very active subreddits like r/ChatGPT.