Skip to main content

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

Workflow preview

Workflow preview
100%
Generate Reddit customer leads from a product URL with OpenAI and Firecrawl preview
Open on n8n.io

1. Workflow Overview

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...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.aggregate, n8n-nodes-base.merge, @n8n/n8n-nodes-langchain.agent, n8n-nodes-base.code, n8n-nodes-base.reddit, n8n-nodes-base.stickynote, n8n-nodes-base.webhook

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate Reddit customer leads from a product URL with OpenAI and Firecrawl
Workflow name
Generate Reddit customer leads from a product URL with OpenAI and Firecrawl

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
  1. Configure Credentials:
  • Firecrawl API
  • Reddit OAuth2
  • OpenAI API
  1. Deploy Frontend & Backend:
  1. Activate Workflow and update your frontend with the webhook URL

Requirements

  • n8n (cloud or self-hosted)
  • Firecrawl API key
  • Reddit Developer Account
  • OpenAI API key
  • Frontend + Backend deployed (see GitHub repo)

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:

  • User input and URL validation
  • Real-time result display
  • Conversation cards with pagination
  • Request tracking by searchId

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

Difference from Batch Version

This Version (Frontend):

  • Progressive data loading
  • Real-time updates
  • Production-ready UX
  • Requires frontend deployment

Batch Version:

  • Single output at end
  • No frontend needed
  • Perfect for testing/scheduled runs
  • Simpler setup

Support

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


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 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 2 - Aggregate

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

Block 3 - Structured Output Parser1

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 4 - Merge

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 5 - Aggregate3

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

Block 6 - Reddit Posts Keywords Generator

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

Block 7 - Posts Relevance AI Agent

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

Block 8 - Clean results

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

Block 9 - Search for Posts (Keyword/Phrase)

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

Block 10 - Sticky Note

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

Block 11 - Webhook

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

Block 12 - OpenAI Chat Model1

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

Block 13 - Structured Output Parser4

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 14 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 15 - OpenAI Chat Model2

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

Block 16 - Aggregate5

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

Block 17 - Structured Output Parser5

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 18 - Merge3

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3.2

Block 19 - Aggregate6

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

Block 20 - Posts Relevance AI Agent2

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

Block 21 - Clean results2

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

Block 22 - Search for Posts (Keyword/Phrase)2

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

Block 23 - OpenAI Chat Model3

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

Block 24 - Aggregate9

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

Showing the first 24 of 56 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Generate Reddit customer leads from a product URL with OpenAI and Firecrawl
Complexity advanced
Nodes 56
Categories Lead Generation, AI Summarization
Author Joseph
Published 21 Jan 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/12884/12884.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 Generate Reddit customer leads from a product URL with OpenAI and Firecrawl do?

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...

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.