Back to Templates

AI Marketing Agent for Lead Generation: Reddit + OpenRouter + Gmail

Created by

Created by: Ari Nakos || just-aristides

Ari Nakos

Last update

Last update a month ago

Categories

Share


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.

Full tutorial (https://findleads.agency/blog/n8n-ai-agent-for-lead-generation-using-reddit-openai-gmail) for those wanting to build it themselves.

How It Works

  1. A user submits their website URL and email through a form
  2. The workflow analyzes the website to determine the industry and extract relevant keywords
  3. It searches Reddit for posts containing those keywords and filters them based on custom engagement metrics (i.e. upvotes > 15, non-empty text content, posted within the last 90 days)
  4. An AI agent (using OpenRouter's GPT-4.1-mini) analyzes each post to determine relevance and summarizes the key points
  5. Relevant posts are stored in Google Sheets and formatted into a professional HTML email
  6. The email is sent to the user's provided email address with a summary of potential leads

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. (YT Tutorial for Reddit App Creation: https://youtu.be/zlGXtW4LAK8)
  • OpenRouter: Uses an API Key. Generate this key directly from your OpenRouter account settings. (YT Tutorial: https://youtu.be/Cq5Y3zpEhlc)
  • 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.