Generate Reddit customer leads from a product URL with OpenAI and Firecrawl
UnknownWhat this workflow does
This AI workflow has 49 nodes and runs when an HTTP POST request hits its webhook URL. Along the way it connects Reddit, OpenAI Chat Model and Firecrawl (community).
How it runs
Trigger: When an HTTP POST request hits its webhook URL.
- Set Environment Variables (Edit Fields (Set)): sets 2 fields: N8N_WEBHOOK_API_KEY, BACKEND_API_URL
- Scrape Product URL and get its content (Firecrawl): scrape
- Sanitize Results (Code): runs custom JavaScript code
- Analyze Product URL Scrape (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Edit Fields (Edit Fields (Set)): sets 8 fields: title, cta, website_summary…
- Sanitize JSON Values (Code): runs custom JavaScript code
- Send Website Analysis Data to Server (HTTP Request): calls an HTTP API (POST)
- Reddit Posts Keywords Generator (AI Agent): runs an AI agent, with model: OpenAI Chat Model; output parser: Structured Output Parser
- Send keywords to Server (HTTP Request): calls an HTTP API (POST)
- Search for Posts (Keyword/Phrase) (Reddit): search
…plus 28 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 1 community package, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that @mendable/n8n-nodes-firecrawl is verified or supports 3.0 (used in Scrape Product URL and get its content).
Nodes used (13)
- Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Aggregate
n8n-nodes-base.aggregate - Merge
n8n-nodes-base.merge - AI Agent
@n8n/n8n-nodes-langchain.agent - Code
n8n-nodes-base.code - Reddit
n8n-nodes-base.reddit - Webhook
n8n-nodes-base.webhook - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Firecrawl
@mendable/n8n-nodes-firecrawl.firecrawl
From the author
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…