# Refined post generator with Gmail: n8n workflow template

> Started by someone submitting a form, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI and OpenRouter.

Source: https://millionrounds.com/workflow/refined-post-generator-with-gmail (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)

# Refined post generator with Gmail

Started by someone submitting a form, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI and OpenRouter. 22 steps, 1 branch: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI, OpenRouter

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Frefined-post-generator-with-gmail)

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

**1** Branch: places the flow splits

**0** Loops or waits

**2** Services it connects to

## The flow

Starts it 1 Model 6 Logic 8 Service 7

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

- 1 **On form submission** Form trigger *Starts it*
- 2 **OpenRouter Chat Model** Lm Chat Open Router *Model*
- 3 **OpenRouter Chat Model1** Lm Chat Open Router *Model*
- 4 **HTTP Request1** Http Request Tool *Service*
- 5 **Start Meta** Set *Logic*
- 6 **AI Agent** Agent *Model*
- 7 **AI Agent1** Agent *Model*
- 8 **AI Judge (Helpfulness)** Agent *Model*
- 9 **Classify text for violations** Open Ai *Model*
- 10 **Generate Image** Http Request *Service*
- 11 **Edit Fields** Set *Logic*
- 12 **Metrics Bundle** Set *Logic*
- 13 **Switch** Switch *Logic*
- 14 **Convert to File** Convert To File *Service*
- 15 **Markdown** Markdown *Logic*
- 16 **Derive Metrics** Set *Logic*
- 17 **Send a message1** Gmail *Service*
- 18 **Merge** Merge *Logic*
- 19 **Evaluation** Evaluation *Service*
- 20 **Email HTML** Code *Logic*
- 21 **Append row in sheet** Google Sheets *Service*
- 22 **Send a message** Gmail *Service*

## How it's built

- **Starts on:** Someone submitting a form
- **Steps:** 22, with 1 branch
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets
- **Model:** OpenAI, OpenRouter

## Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Sheets accounts, and a key for OpenAI and 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 OpenAI and OpenRouter. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 22 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 22 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%2Frefined-post-generator-with-gmail)
- **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)[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)

## Workflows like it

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

- [**Analyze YouTube comments and generate video ideas with Gemini** 22 steps · calls a model · Google Sheets, Telegram](https://millionrounds.com/workflow/analyze-youtube-comments-and-generate-video-ideas-with-gemin)
- [**Author and publish blog posts from Google Sheets with OpenAI** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/author-and-publish-blog-posts-from-google-sheets-with-openai-2)
- [**Author and publish blog posts from Google Sheets with OpenAI** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/author-and-publish-blog-posts-from-google-sheets-with-openai)
- [**Automate AI news videos to social media with OpenAI and HeyGen** 22 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-ai-news-videos-to-social-media-with-openai-and-heyg)
- [**Create Dev.to articles with OpenAI and Gemini** 22 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/create-dev-to-articles-with-openai-and-gemini)
- [**Detect viral YouTube videos with OpenAI and Gmail** 22 steps · calls a model · Gmail](https://millionrounds.com/workflow/detect-viral-youtube-videos-with-openai-and-gmail)
