n8n AI Agent for Lead Generation Using Reddit, OpenAI & Gmail

By Ari Nakos2025-05-08

What it is

This n8n workflow monitors Reddit for posts relevant to a specific business or industry, identifies potential leads, and delivers them directly to your inbox.

It's a fully automated system that leverages the power of AI to find potential customers discussing topics related to your business. No more manual Reddit searching or sifting through irrelevant posts - this workflow does the heavy lifting for you.

Get the full workflow here or follow the tutorial below to build it yourself.

How It Works

The workflow operates through a series of intelligent, automated steps:

1. User Input Collection

A user submits their website URL and email through a form. This simple starting point kicks off the entire lead generation process.

2. Website Analysis

The workflow analyzes the website to determine the industry and extract relevant keywords. This intelligent analysis ensures the leads generated are actually relevant to your specific business.

3. Reddit Search & Filtering

It searches Reddit for posts containing those keywords and applies smart filtering based on engagement metrics:

  • Upvotes > 15 (ensuring content has community validation)
  • Non-empty text content (avoiding low-quality posts)
  • Posted within the last 90 days (focusing on recent, relevant discussions)

4. AI Analysis

An AI agent (using OpenRouter's GPT-4.1-mini) analyzes each post to determine relevance and summarizes the key points. This critical step separates actual leads from noise.

5. Data Storage & Formatting

Relevant posts are stored in Google Sheets and formatted into a professional HTML email. This creates both a permanent record and a presentable delivery format.

6. Email Delivery

The email is sent to the user's provided email address with a summary of potential leads. This puts actionable intelligence directly in your inbox, ready for follow-up.

Setup

To run this workflow, you need to set up credentials in n8n for:

Reddit

Uses OAuth 2.0. Requires creating an app on Reddit to get a Client ID & Secret.

OpenRouter

Uses an API Key. Generate this key directly from your OpenRouter account settings.

Google Sheets

Recommend OAuth2 (just connect by authenticating) or setup in Google Cloud Console (enable Sheets API, create OAuth Client ID with n8n redirect URI) to get a Client ID & Secret.

Gmail

Uses OAuth 2.0. Requires setup in Google Cloud Console to enable Gmail API and create OAuth credentials.

Why This Workflow Is Valuable

This workflow transforms how you generate leads by:

  • Finding discussions you'd miss: Reddit contains countless niche communities discussing problems your product could solve
  • Saving hours of manual work: Automated searching, filtering, and analysis replaces tedious manual processes
  • Delivering qualified leads: AI analysis ensures you only see relevant potential customers
  • Creating ongoing lead generation: Once set up, the workflow continues finding new leads without additional effort

Get Started Today

Stop missing potential customers hiding in Reddit discussions. Let AI find them for you.