Automation library · AI assistants

Flow from Reddit to Gmail with OpenAI

Started by a clock, and works across Gmail and Reddit. It hands the judgement calls to OpenRouter. 30 steps, 1 loop or waits: large, and worth reading before you trust it with anything live.

LargeCalls a model: OpenRouter

30 stepsLarge: read it before trusting it with anything live
0Branches: places the flow splits
1Loop or waits
2Services it connects to

The flow

Starts it 2Model 3Logic 21Service 4

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

  1. 1Schedule: Daily runSchedule triggerStarts it
  2. 2Sub-workflow TriggerExecute Workflow triggerStarts it
  3. 3GPT-4o miniLm Chat Open RouterModel
  4. 4Set Topic, Subreddits and Email AddressSetLogic
  5. 5Extract LinkSetLogic
  6. 6Extract Thread TextSetLogic
  7. 7Summarize ThreadsChain SummarizationModel
  8. 8Format HTML for GmailChain LlmModel
  9. 9Split Subreddit ListSplit OutLogic
  10. 10Combine Summaries + LinksMergeLogic
  11. 11Send DigestGmailService
  12. 12List Hot PostsRedditService
  13. 13Aggregate Summaries & LinksAggregateLogic
  14. 14Normalize Post Date (created_utc → ISO)SetLogic
  15. 15Attach ISO Date to Posts1MergeLogic
  16. 16Select Fields (id, score, url, date, subreddit)SetLogic
  17. 17Filter: Last 24h & Score > 30FilterLogic
  18. 18Sort by Score (desc)SortLogic
  19. 19Iterate Posts (single batch)Split In BatchesLogic
  20. 20Call Sub-workflow: Summarize & EmailExecute WorkflowLogic
  21. 21Merge: Thread + Post DetailsMergeLogic
  22. 22Get Post by IDRedditService
  23. 23Set (id, thread_text, link)SetLogic
  24. 24Deduplicate by IDRemove DuplicatesLogic
  25. 25Build Post Body (root)CodeLogic
  26. 26Append Posts + CommentsMergeLogic
  27. 27List Top-level CommentsRedditService
  28. 28Build Thread TextCodeLogic
  29. 29Flatten Comment ThreadsCodeLogic
  30. 30Filter: Valid CommentsFilterLogic

How it's built

Starts on
A clock
Steps
30, 1 loop or waits
Size
Large: read it before trusting it with anything live
Connects to
Gmail, Reddit
Model
OpenRouter

Questions

What does it need to run?

An n8n account, plus your own Gmail 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 a clock.

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?

Take your time. At 30 steps it is large: read it before trusting it with anything live.

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 30 steps before you point it at anything that matters.