# Automated SEO blog publishing with WordPress and OpenAI: n8n workflow

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

Source: https://millionrounds.com/workflow/automated-seo-blog-publishing-with-wordpress-and-openai (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)

# Automated SEO blog publishing with WordPress and OpenAI

Started by a clock, and works across Google Sheets and WordPress. It hands the judgement calls to Gemini and OpenAI. 34 steps, 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%2Fautomated-seo-blog-publishing-with-wordpress-and-openai)

**34 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 1 Model 14 Logic 6 Service 13

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

- 1 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 2 **OpenAI Chat Model4** Lm Chat Open Ai *Model*
- 3 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 4 **Schedule Trigger** Schedule trigger *Starts it*
- 5 **Message a model in Perplexity** Perplexity Tool *Service*
- 6 **OpenAI 4.1 mini4** Lm Chat Open Ai *Model*
- 7 **OpenAI 4.1 mini5** Lm Chat Open Ai *Model*
- 8 **Content planer** Agent *Model*
- 9 **Structured Output Parser1** Output Parser Structured *Model*
- 10 **Article wrtiter** Chain Llm *Model*
- 11 **Get data databse** Google Sheets *Service*
- 12 **Write query too pexels** Chain Llm *Model*
- 13 **Write query too image AI generator** Chain Llm *Model*
- 14 **Split Out** Split Out *Logic*
- 15 **Create a post** Wordpress *Service*
- 16 **Limit** Limit *Logic*
- 17 **Get Image from Pexels** Http Request *Service*
- 18 **Generate an image** Open Ai *Model*
- 19 **Generate an image3** Google Gemini *Model*
- 20 **Loop Over Items** Split In Batches *Logic*
- 21 **WordPress excerpt add1** Http Request *Service*
- 22 **Set input data/credintenials** Set *Logic*
- 23 **Download Image form Pexels** Http Request *Service*
- 24 **upload image to wordpress1** Http Request *Service*
- 25 **Aggregate** Aggregate *Logic*
- 26 **Generate an image1** Google Gemini *Model*
- 27 **Generate an image2** Open Ai *Model*
- 28 **upload image to wordpress** Http Request *Service*
- 29 **Set Image on Wordpress Post2** Http Request *Service*
- 30 **Post image Cloudinary2** Http Request *Service*
- 31 **Set Image on Wordpress Post1** Http Request *Service*
- 32 **Append or update row in sheet1** Google Sheets *Service*
- 33 **Set Output Image** Set *Logic*
- 34 **Append or update row in sheet** Google Sheets *Service*

## How it's built

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

## Questions

What does it need to run?

An n8n account, plus your own Google Sheets and WordPress 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 34 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 34 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%2Fautomated-seo-blog-publishing-with-wordpress-and-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.

[Google Sheets](https://millionrounds.com/workflows?service=Google+Sheets#library)[WordPress](https://millionrounds.com/workflows?service=WordPress#library)

## Workflows like it

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

- [**Automate news publishing to LinkedIn with Gemini and RSS** 34 steps · calls a model · Google Sheets, LinkedIn](https://millionrounds.com/workflow/automate-news-publishing-to-linkedin-with-gemini-and-rss)
- [**Generate and publish SEO blog posts from Google Sheets to Webflow** 34 steps · calls a model · Discord, Google Sheets](https://millionrounds.com/workflow/generate-and-publish-seo-blog-posts-from-google-sheets-to-we)
- [**Generate cinematic videos from text prompts with OpenAI** 34 steps · calls a model · Google Sheets, YouTube](https://millionrounds.com/workflow/generate-cinematic-videos-from-text-prompts-with-openai)
- [**Turn long videos into social shorts with RenderIO and OpenAI** 34 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/turn-long-videos-into-social-shorts-with-renderio-and-openai)
- [**Ultimate content generator for WordPress with OpenAI** 34 steps · calls a model · Airtable, Slack](https://millionrounds.com/workflow/ultimate-content-generator-for-wordpress-with-openai)
- [**Viral video creator: Fal.AI AI videos TikTok, YouTube** 34 steps · calls a model · Google Sheets](https://millionrounds.com/workflow/viral-video-creator-fal-ai-ai-videos-tiktok-youtube)
