AI marketing agent for lead generation: Reddit + OpenRouter + Gmail
Needs changesWhat this workflow does
This AI workflow has 19 nodes and runs when someone submits an n8n form. Along the way it connects OpenRouter Chat Model, HTTP Request, Reddit and Google Sheets and 1 more.
How it runs
Trigger: When someone submits an n8n form.
- Keyword Analyst (AI Agent): runs an AI agent, with model: OpenRouter Chat Model; 1 tool (HTTP Request); output parser: Structured Output Parser
- Split Out: splits a list into separate items
- Get Posts (Reddit): uses Reddit
- Remove Duplicates: removes duplicate items
- Filter Posts by Criteria (If): checks a condition and branches into true / false
- Pick Fields to Keep (Edit Fields (Set)): sets or maps fields
- Competitor Analyst (AI Agent): runs an AI agent, with model: OpenRouter; output parser: Structured Output Parser
- Merge: merges the data from its input branches
- Rename Fields from AI Agent' Output (Edit Fields (Set)): sets or maps fields
- Filter Relevant Posts (If): checks a condition and branches into true / false
…plus 3 more steps. See the full node list below.
Services it uses
Before you upgrade to n8n 3.0
1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:
- AI Agent v1 (old agent modes) in Competitor Analyst (v1.9), Keyword Analyst (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.
Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) Competitor Analyst (v1.9), Keyword Analyst (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (14)
- OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Http Request Tool
n8n-nodes-base.httpRequestTool - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - AI Agent
@n8n/n8n-nodes-langchain.agent - Split Out
n8n-nodes-base.splitOut - Reddit
n8n-nodes-base.reddit - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Remove Duplicates
n8n-nodes-base.removeDuplicates - n8n Form Trigger
n8n-nodes-base.formTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - Merge
n8n-nodes-base.merge - Gmail
n8n-nodes-base.gmail
From the author
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 for those wanting to build it themselves. How It Works 1. A user submits…