# Flow from Reddit to Gmail with OpenAI: n8n workflow template

> Started by a clock, and works across Gmail and Reddit. It hands the judgement calls to OpenRouter.

Source: https://millionrounds.com/workflow/flow-from-reddit-to-gmail-with-openai (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [AI assistants](https://millionrounds.com/workflows?category=AI+assistants#library)

# 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.

Large Calls a model: OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fflow-from-reddit-to-gmail-with-openai)

**30 steps** Large: read it before trusting it with anything live

**0** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 2 Model 3 Logic 21 Service 4

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

- 1 **Schedule: Daily run** Schedule trigger *Starts it*
- 2 **Sub-workflow Trigger** Execute Workflow trigger *Starts it*
- 3 **GPT-4o mini** Lm Chat Open Router *Model*
- 4 **Set Topic, Subreddits and Email Address** Set *Logic*
- 5 **Extract Link** Set *Logic*
- 6 **Extract Thread Text** Set *Logic*
- 7 **Summarize Threads** Chain Summarization *Model*
- 8 **Format HTML for Gmail** Chain Llm *Model*
- 9 **Split Subreddit List** Split Out *Logic*
- 10 **Combine Summaries + Links** Merge *Logic*
- 11 **Send Digest** Gmail *Service*
- 12 **List Hot Posts** Reddit *Service*
- 13 **Aggregate Summaries & Links** Aggregate *Logic*
- 14 **Normalize Post Date (created_utc → ISO)** Set *Logic*
- 15 **Attach ISO Date to Posts1** Merge *Logic*
- 16 **Select Fields (id, score, url, date, subreddit)** Set *Logic*
- 17 **Filter: Last 24h & Score > 30** Filter *Logic*
- 18 **Sort by Score (desc)** Sort *Logic*
- 19 **Iterate Posts (single batch)** Split In Batches *Logic*
- 20 **Call Sub-workflow: Summarize & Email** Execute Workflow *Logic*
- 21 **Merge: Thread + Post Details** Merge *Logic*
- 22 **Get Post by ID** Reddit *Service*
- 23 **Set (id, thread_text, link)** Set *Logic*
- 24 **Deduplicate by ID** Remove Duplicates *Logic*
- 25 **Build Post Body (root)** Code *Logic*
- 26 **Append Posts + Comments** Merge *Logic*
- 27 **List Top-level Comments** Reddit *Service*
- 28 **Build Thread Text** Code *Logic*
- 29 **Flatten Comment Threads** Code *Logic*
- 30 **Filter: Valid Comments** Filter *Logic*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fflow-from-reddit-to-gmail-with-openai)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Gmail](https://millionrounds.com/workflows?service=Gmail#library)[Reddit](https://millionrounds.com/workflows?service=Reddit#library)

## Workflows like it

Also ai assistants, with the same services where possible, closest in size first.

- [**Sort and manage your Gmail inbox with Vertex AI** 30 steps · calls a model · Gmail, Google Tasks](https://millionrounds.com/workflow/sort-and-manage-your-gmail-inbox-with-vertex-ai)
- [**Automate agile project setup with OpenAI and Jira** 32 steps · calls a model · Gmail, Jira](https://millionrounds.com/workflow/automate-agile-project-setup-with-openai-and-jira)
- [**Triage and label Gmail emails with OpenAI** 28 steps · calls a model · Gmail](https://millionrounds.com/workflow/triage-and-label-gmail-emails-with-openai)
- [**AI voice & text note-taking with LINE Messaging** 27 steps · calls a model · Gmail, Supabase vectors](https://millionrounds.com/workflow/ai-voice-and-text-note-taking-with-line-messaging)
- [**Email-to-task automation with Outlook and Microsoft To Do** 26 steps · calls a model · Gmail, Google Tasks](https://millionrounds.com/workflow/email-to-task-automation-with-outlook-and-microsoft-to-do)
- [**AI inbox assistant with OpenAI and Gmail** 25 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/ai-inbox-assistant-with-openai-and-gmail)
