AutomationFlowsMarketing & Ads › AI Marketing Agent for Lead Generation: Reddit + Openrouter + Gmail

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

ByAri Nakos @just-aristides on n8n.io

This n8n workflow monitors Reddit for posts relevant to a specific business or industry, identifies potential leads, and delivers them directly to your inbox.

Event trigger★★★★☆ complexityAI-powered23 nodesOpenRouter ChatHTTP Request ToolOutput Parser StructuredAgentRedditGoogle SheetsForm TriggerGmail
Marketing & Ads Trigger: Event Nodes: 23 Complexity: ★★★★☆ AI nodes: yes Added:

This workflow corresponds to n8n.io template #3935 — we link there as the canonical source.

This workflow follows the Agent → Form Trigger recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "36cb5d98-8d20-426c-a965-bac91a63847e",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3200,
        560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "59126319-3736-49f9-bb0e-8ec4ae083f89",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -620,
        560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "ee0879ad-783a-44ce-a78b-e9983eed0c55",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2300,
        560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "f5d37f76-4b82-4578-b272-17a5e33b99df",
      "name": "OpenRouter Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -3160,
        1060
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "3ad7fb9f-0cc9-4bd0-a137-021a334196dc",
      "name": "HTTP Request",
      "type": "n8n-nodes-base.httpRequestTool",
      "position": [
        -3020,
        1060
      ],
      "parameters": {},
      "typeVersion": 4.2
    },
    {
      "id": "ab1a88b8-ce11-47f0-a457-2ac8d804c490",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -2860,
        1060
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "0e7c8c05-e5e0-4cdd-b2fb-4dc35b790403",
      "name": "Competitor Analyst",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1600,
        960
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "76012b18-8116-4e00-92b6-172d2aa91246",
      "name": "Keyword Analyst",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -3100,
        840
      ],
      "parameters": {},
      "typeVersion": 1.9
    },
    {
      "id": "6bf11038-0cd9-4531-a171-a02742e4c515",
      "name": "Split Out",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -2720,
        840
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "405f06b7-1362-4f4e-98de-0d62ef4835b7",
      "name": "Get Posts",
      "type": "n8n-nodes-base.reddit",
      "position": [
        -2500,
        840
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "6f9a6c87-1510-4338-b417-cd89943e31d4",
      "name": "Generate Email HTML",
      "type": "n8n-nodes-base.code",
      "position": [
        -360,
        840
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2
    },
    {
      "id": "2b043745-d653-451d-8b44-a10643d782ba",
      "name": "Append Data",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -580,
        840
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 4.5
    },
    {
      "id": "ad4dd6ef-b49e-48ab-9c05-a78ed4f19d4f",
      "name": "OpenRouter ",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenRouter",
      "position": [
        -1640,
        1140
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "06bb27c4-a0e1-43e5-9270-7d683e28023a",
      "name": "Structured Output Parser2",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -1400,
        1140
      ],
      "parameters": {},
      "typeVersion": 1.2
    },
    {
      "id": "d2d9357d-d114-4fec-b313-9d078d227a28",
      "name": "Remove Duplicates",
      "type": "n8n-nodes-base.removeDuplicates",
      "position": [
        -2280,
        840
      ],
      "parameters": {},
      "typeVersion": 2
    },
    {
      "id": "09fe6bbd-51d1-4620-baeb-c311ee40963e",
      "name": "Form",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        -3520,
        840
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b859872c-21db-4655-8423-2a202eb9a6bc",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -3700,
        560
      ],
      "parameters": {
        "content": ""
      },
      "typeVersion": 1
    },
    {
      "id": "e6d65d05-ac6e-4398-bf73-6389bc5ca680",
      "name": "Pick Fields to Keep",
      "type": "n8n-nodes-base.set",
      "position": [
        -1800,
        820
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "01c6bb02-ab14-4be4-84bc-d45ce4e09986",
      "name": "Filter Posts by Criteria",
      "type": "n8n-nodes-base.if",
      "position": [
        -2040,
        840
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "4e7765c8-cda8-493b-bed8-d19c082a9711",
      "name": "Merge Outputs",
      "type": "n8n-nodes-base.merge",
      "position": [
        -1244,
        840
      ],
      "parameters": {},
      "typeVersion": 3
    },
    {
      "id": "df696cb9-11b1-4489-812d-1590e5a640ed",
      "name": "Rename Fields from AI Agent' Output",
      "type": "n8n-nodes-base.set",
      "position": [
        -1024,
        840
      ],
      "parameters": {},
      "typeVersion": 3.4
    },
    {
      "id": "45a0f8a8-8e0b-4290-8f59-cdb0748e2516",
      "name": "Filter Relevant Posts",
      "type": "n8n-nodes-base.if",
      "position": [
        -804,
        840
      ],
      "parameters": {},
      "typeVersion": 2.2
    },
    {
      "id": "b57880d4-f866-47a5-8140-1c95e1efa40c",
      "name": "Send to your email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        -140,
        840
      ],
      "parameters": {},
      "notesInFlow": true,
      "typeVersion": 2.1
    }
  ],
  "connections": {
    "Form": {
      "main": [
        [
          {
            "node": "Keyword Analyst",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get Posts": {
      "main": [
        [
          {
            "node": "Remove Duplicates",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out": {
      "main": [
        [
          {
            "node": "Get Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append Data": {
      "main": [
        [
          {
            "node": "Generate Email HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter ": {
      "ai_languageModel": [
        [
          {
            "node": "Competitor Analyst",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "ai_tool": [
        [
          {
            "node": "Keyword Analyst",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "Merge Outputs": {
      "main": [
        [
          {
            "node": "Rename Fields from AI Agent' Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keyword Analyst": {
      "main": [
        [
          {
            "node": "Split Out",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Remove Duplicates": {
      "main": [
        [
          {
            "node": "Filter Posts by Criteria",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Competitor Analyst": {
      "main": [
        [
          {
            "node": "Merge Outputs",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Generate Email HTML": {
      "main": [
        [
          {
            "node": "Send to your email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pick Fields to Keep": {
      "main": [
        [
          {
            "node": "Competitor Analyst",
            "type": "main",
            "index": 0
          },
          {
            "node": "Merge Outputs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Relevant Posts": {
      "main": [
        [
          {
            "node": "Append Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenRouter Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Keyword Analyst",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Filter Posts by Criteria": {
      "main": [
        [
          {
            "node": "Pick Fields to Keep",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Keyword Analyst",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser2": {
      "ai_outputParser": [
        [
          {
            "node": "Competitor Analyst",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Rename Fields from AI Agent' Output": {
      "main": [
        [
          {
            "node": "Filter Relevant Posts",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This n8n workflow monitors Reddit for posts relevant to a specific business or industry, identifies potential leads, and delivers them directly to your inbox.

Source: https://n8n.io/workflows/3935/ — original creator credit. Request a take-down →

More Marketing & Ads workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Marketing & Ads

The Recap AI - Insurance Lawyer Lead Gen. Uses executeWorkflowTrigger, formTrigger, @mendable/n8n-nodes-firecrawl, googleSheets. Event-driven trigger; 33 nodes.

Execute Workflow Trigger, Form Trigger, @Mendable/N8N Nodes Firecrawl +4
Marketing & Ads

My workflow 11. Uses manualTrigger, splitOut, httpRequest, splitInBatches. Event-driven trigger; 14 nodes.

HTTP Request, OpenAI, Google Sheets +2
Marketing & Ads

Trending YouTube Videos copy. Uses googleSheets, openAi, httpRequest, stickyNote. Event-driven trigger; 12 nodes.

Google Sheets, OpenAI, HTTP Request +1
Marketing & Ads

1. LI Connection Request System: Trigger PhantomBuster Agent. Uses formTrigger, httpRequest, openAi, limit. Event-driven trigger; 8 nodes.

Form Trigger, HTTP Request, OpenAI +1
Marketing & Ads

Run professional email campaigns with A/B testing, Google Sheets tracking, and Slack analytics. FEATURES:

Google Sheets, Slack, Gmail +1