🎣 Generate Reddit customer leads from a product URL with OpenAI and Firecrawl

⚑ 26 views · 🎣 Lead Generation & Enrichment

πŸ’‘ Pro Tip β€” If you need GitHub data beyond what the REST API gives you, ScraperNode has a repository scraper that extracts metadata at scale without token rate limits.

View All Scrapers

Description

Reddit Lead Generator - Frontend Integrated (Productized Version)

Overview

Production-ready Reddit lead generation system with progressive data loading for optimal UX. This workflow integrates with a web frontend, sending results in real-time as they’re processed instead of waiting for everything to complete.

Key Features

βœ… Progressive Loading - Users see results as they come in (website analysis β†’ keywords β†’ conversations)
βœ… 5 Response Stages - Data sent in batches for better UX
βœ… Webhook Authentication - Secured with API key headers
βœ… Frontend Ready - Built to work with the companion web app
βœ… Real-Time Updates - No waiting for 2-minute batch processing

What This Workflow Does

  1. Receives product URL from frontend via webhook
  2. Immediately responds β€œprocessing started”
  3. Analyzes website with Firecrawl β†’ sends data to frontend
  4. Generates 10 keywords with OpenAI β†’ sends to frontend
  5. Searches Reddit and filters conversations β†’ sends in 3 batches
  6. Frontend displays results progressively as they arrive

Response Flow

Stage 1: website_analysis - Product details, favicon, summary
Stage 2: keywords_generated - All 10 keywords
Stage 3: conversations_partial1 - First keyword results
Stage 4: conversations_partial2 - Second keyword results
Stage 5: conversations_final - Remaining keywords (3-10) in markdown

Quick Setup

  1. Set Environment Variables in the β€œSet Environment Variables” node:

    • BACKEND_API_URL - Your frontend API endpoint
    • WEBHOOK_API_KEY - Your webhook security key
  2. Configure Credentials:

    • Firecrawl API
    • Reddit OAuth2
    • OpenAI API
  3. Deploy Frontend & Backend:

  4. Activate Workflow and update your frontend with the webhook URL

Requirements

Resources

πŸ“– Complete Setup Guide: https://bit.ly/mediumarticleredditworkflow
πŸŽ₯ Video Tutorial: https://bit.ly/youtubetutorialredditworkflow
πŸ’» GitHub Repo: https://github.com/juppfy/leads-gen

Frontend Integration

This workflow requires the companion web app to receive and display results. The frontend handles:

Deploy instructions and complete code available in the GitHub repo above.

Difference from Batch Version

This Version (Frontend):

Batch Version:

Support

Questions? Check the Medium article or YouTube tutorial first. Both have detailed setup instructions and troubleshooting tips.


πŸ”— Nodes Used

HTTP Request, Webhook, Reddit, AI Agent, OpenAI Chat Model, Structured Output Parser

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup