Automation library · Lead generation

AI marketing agent for lead generation: Reddit + OpenRouter

Started by someone submitting a form, and works across Gmail, Google Sheets and Reddit. It hands the judgement calls to OpenRouter. 19 steps, 2 branches: a working afternoon to understand properly.

MediumCalls a model: OpenRouter

19 stepsMedium: a working afternoon
2Branches: places the flow splits
0Loops or waits
3Services it connects to

The flow

Starts it 1Model 6Logic 8Service 4

The steps in the order they run, from what starts it.

  1. 1OpenRouter Chat ModelLm Chat Open RouterModel
  2. 2HTTP RequestHttp Request ToolService
  3. 3Structured Output ParserOutput Parser StructuredModel
  4. 4OpenRouter Lm Chat Open RouterModel
  5. 5Structured Output Parser2Output Parser StructuredModel
  6. 6FormForm triggerStarts it
  7. 7Keyword AnalystAgentModel
  8. 8Competitor AnalystAgentModel
  9. 9Split OutSplit OutLogic
  10. 10Merge OutputsMergeLogic
  11. 11Get PostsRedditService
  12. 12Rename Fields from AI Agent' OutputSetLogic
  13. 13Remove DuplicatesRemove DuplicatesLogic
  14. 14Filter Relevant PostsIfLogic
  15. 15Filter Posts by CriteriaIfLogic
  16. 16Append DataGoogle SheetsService
  17. 17Pick Fields to KeepSetLogic
  18. 18Generate Email HTMLCodeLogic
  19. 19Send to your emailGmailService

How it's built

Starts on
Someone submitting a form
Steps
19, with 2 branches
Size
Medium: a working afternoon
Connects to
Gmail, Google Sheets, Reddit
Model
OpenRouter

Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets and Reddit accounts, and a key for OpenRouter. You connect your own accounts after importing it; none are included.

What starts it?

It starts on someone submitting a form.

Does it use AI?

Yes. It calls OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Plan an afternoon. 19 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 19 steps before you point it at anything that matters.