# Automate blog creation & publishing with Gemini: n8n workflow

> Started by a clock, and works across Discord and Google Sheets. It hands the judgement calls to Gemini and OpenAI.

Source: https://millionrounds.com/workflow/automate-blog-creation-and-publishing-with-gemini (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)

# Automate blog creation & publishing with Gemini

Started by a clock, and works across Discord and Google Sheets. It hands the judgement calls to Gemini and OpenAI. 26 steps, 2 branches, 1 loop or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: Gemini, OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-blog-creation-and-publishing-with-gemini)

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

**2** Branches: places the flow splits

**1** Loop or waits

**2** Services it connects to

## The flow

Starts it 1 Model 10 Logic 6 Service 9

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

- 1 **Google Gemini Chat Model** Lm Chat Google Gemini *Model*
- 2 **Google Gemini Chat Model1** Lm Chat Google Gemini *Model*
- 3 **Schedule Trigger** Schedule trigger *Starts it*
- 4 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 5 **Google Gemini Chat Model2** Lm Chat Google Gemini *Model*
- 6 **Google Gemini Chat Model3** Lm Chat Google Gemini *Model*
- 7 **Do the Research on the Topic** Agent *Model*
- 8 **Write the Content** Agent *Model*
- 9 **Fetch Client Details** Google Sheets *Service*
- 10 **Genererate Image Prompt** Agent *Model*
- 11 **Check Content Quality** Agent *Model*
- 12 **Fix the Quality Issues** Agent *Model*
- 13 **Check Blog Publishing Status** If *Logic*
- 14 **Image Generate** Http Request *Service*
- 15 **Extract Blog Title** Code *Logic*
- 16 **Loop Over Items** Split In Batches *Logic*
- 17 **Download Image in Binary File** Http Request *Service*
- 18 **Prepare Final Data** Set *Logic*
- 19 **Fetch Pending Topics from Content Req & Posting** Google Sheets *Service*
- 20 **Upload Image in Wordpress** Http Request *Service*
- 21 **If** If *Logic*
- 22 **Publish Blog on Wordpress** Http Request *Service*
- 23 **Pass 1 Blog Topic** Code *Logic*
- 24 **Set Image as Featured Image** Http Request *Service*
- 25 **Update Blog Status in Sheet** Google Sheets *Service*
- 26 **Announce New Blog** Discord *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 26, with 2 branches, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Discord, Google Sheets
- **Model:** Gemini, OpenAI

## Questions

What does it need to run?

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

How long does it take to set up?

Take your time. At 26 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 26 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%2Fautomate-blog-creation-and-publishing-with-gemini)
- **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.

[Discord](https://millionrounds.com/workflows?service=Discord#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.

- [**AI-powered Elementor blog post automation system for agencies** 26 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/ai-powered-elementor-blog-post-automation-system-for-agencie)
- [**Competitive ad research & image generator with Apify** 26 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/competitive-ad-research-and-image-generator-with-apify)
- [**Create YouTube videos daily from Google Sheets with MagicHour** 26 steps · calls a model · Google Sheets, YouTube](https://millionrounds.com/workflow/create-youtube-videos-daily-from-google-sheets-with-magichou)
- [**Creative Agency – Fully AI Video Creation & Social Publishing** 26 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/creative-agency-fully-ai-video-creation-and-social-publishin)
- [**Generate & auto-post AI videos to social media with Veo3** 26 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/generate-and-auto-post-ai-videos-to-social-media-with-veo3)
- [**News collection & multi-platform publishing with OpenAI** 26 steps · calls a model · Discord, Gmail](https://millionrounds.com/workflow/news-collection-and-multi-platform-publishing-with-openai)
