# Clean Gmail social, promotions and updates with OpenRouter: n8n workflow

> Started by a clock, and works across Gmail. It hands the judgement calls to OpenRouter. 16 steps, 3 branches: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/clean-gmail-social-promotions-and-updates-with-openrouter (Millionrounds; every figure on the page links to its filing or article)

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

# Clean Gmail social, promotions and updates with OpenRouter

Started by a clock, and works across Gmail. It hands the judgement calls to OpenRouter. 16 steps, 3 branches: a working afternoon to understand properly.

Medium Calls a model: OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fclean-gmail-social-promotions-and-updates-with-openrouter)

**16 steps** Medium: a working afternoon

**3** Branches: places the flow splits

**0** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 6 Logic 3 Service 6

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

- 1 **Run Weekly Cleanup** Schedule trigger *Starts it*
- 2 **Updates LLM Model** Lm Chat Open Router *Model*
- 3 **Social LLM Model** Lm Chat Open Router *Model*
- 4 **Promo LLM Model** Lm Chat Open Router *Model*
- 5 **Get many messages promotions** Gmail *Service*
- 6 **Get many messages social** Gmail *Service*
- 7 **Get many messages updates** Gmail *Service*
- 8 **Classify Update Email** Chain Llm *Model*
- 9 **Classify Social Email** Chain Llm *Model*
- 10 **Classify Promo Email** Chain Llm *Model*
- 11 **Is Update Clutter** If *Logic*
- 12 **Is Social Clutter** If *Logic*
- 13 **Is Promo Clutter** If *Logic*
- 14 **Delete Update Email** Gmail *Service*
- 15 **Delete Social Email** Gmail *Service*
- 16 **Delete Promo Email** Gmail *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 16, with 3 branches
- **Size:** Medium: a working afternoon
- **Connects to:** Gmail
- **Model:** OpenRouter

## Questions

What does it need to run?

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

Plan an afternoon. 16 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 16 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%2Fclean-gmail-social-promotions-and-updates-with-openrouter)
- **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)

## Workflows like it

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

- [**AI-powered sustainability newsletter for marketing with Gmail** 16 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/ai-powered-sustainability-newsletter-for-marketing-with-gmai)
- [**Automated social media content creation with OpenAI** 16 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automated-social-media-content-creation-with-openai)
- [**Blog-to-Avatar Video Creator & Multi-Platform Auto-Poster** 16 steps · calls a model · Gmail](https://millionrounds.com/workflow/blog-to-avatar-video-creator-and-multi-platform-auto-poster)
- [**Convert newsletters into AI podcasts with OpenAI** 16 steps · calls a model · Gmail](https://millionrounds.com/workflow/convert-newsletters-into-ai-podcasts-with-openai)
- [**Daily podcast summary with OpenAI and Gmail** 16 steps · calls a model · Gmail](https://millionrounds.com/workflow/daily-podcast-summary-with-openai-and-gmail)
- [**Generate pain-driven content ideas from market signals** 16 steps · calls a model · ClickUp, Gmail](https://millionrounds.com/workflow/generate-pain-driven-content-ideas-from-market-signals)
