# Creating SEO-optimized blogs for WordPress with OpenAI: n8n workflow

> Started by a clock, and works across GitHub, Postgres, Slack and WordPress. It hands the judgement calls to OpenAI, OpenRouter and one other.

Source: https://millionrounds.com/workflow/creating-seo-optimized-blogs-for-wordpress-with-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)

# Creating SEO-optimized blogs for WordPress with OpenAI

Started by a clock, and works across GitHub, Postgres, Slack and WordPress. It hands the judgement calls to OpenAI, OpenRouter and one other. 100 steps, 1 loop or waits: 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%2Fcreating-seo-optimized-blogs-for-wordpress-with-openai)

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

**0** Branches: places the flow splits

**1** Loop or waits

**4** Services it connects to

## The flow

Starts it 2 Model 21 Logic 25 Service 12

The steps in the order they run, from what starts it. The first 60 of 100.

- 1 **Structured Output Parser** Output Parser Structured *Model*
- 2 **Structured Output Parser1** Output Parser Structured *Model*
- 3 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 4 **OpenRouter Chat Model1** Lm Chat Open Router *Model*
- 5 **OpenRouter Chat Model2** Lm Chat Open Router *Model*
- 6 **Select rows from a table** Postgres *Service*
- 7 **Select rows from a table in Postgres** Postgres Tool *Service*
- 8 **Schedule Trigger** Schedule trigger *Starts it*
- 9 **OpenRouter Chat Model6** Lm Chat Open Router *Model*
- 10 **Schedule Trigger1** Schedule trigger *Starts it*
- 11 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 12 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 13 **OpenAI Chat Model3** Lm Chat Open Ai *Model*
- 14 **OpenAI Chat Model4** Lm Chat Open Ai *Model*
- 15 **OpenAI Chat Model5** Lm Chat Open Ai *Model*
- 16 **OpenAI Chat Model6** Lm Chat Open Ai *Model*
- 17 **Choose keywords, Intent, etc** Agent *Model*
- 18 **create plan for dev** Chain Llm *Model*
- 19 **Loop Over Items** Split In Batches *Logic*
- 20 **Fetch Keywords1** Postgres *Service*
- 21 **FAQ section** Chain Llm *Model*
- 22 **select blog table** Postgres *Service*
- 23 **header post** Chain Llm *Model*
- 24 **Intro** Chain Llm *Model*
- 25 **dev 1** Chain Llm *Model*
- 26 **conclusion** Chain Llm *Model*
- 27 **dev 2** Chain Llm *Model*
- 28 **Insert rows in a table** Postgres *Service*
- 29 **Select rows from a table1** Postgres *Service*
- 30 **Split Out2** Split Out *Logic*
- 31 **Merge** Merge *Logic*
- 32 **All scored** No Op *Logic*
- 33 **Score Keywords** Code *Logic*
- 34 **Limit2** Limit *Logic*
- 35 **Edit Fields20** Set *Logic*
- 36 **limit to 1** Limit *Logic*
- 37 **Merge2** Merge *Logic*
- 38 **Edit Fields9** Set *Logic*
- 39 **Edit Fields10** Set *Logic*
- 40 **Edit Fields12** Set *Logic*
- 41 **Edit Fields11** Set *Logic*
- 42 **Code5** Code *Logic*
- 43 **Select rows from a table2** Postgres *Service*
- 44 **Aggregate4** Aggregate *Logic*
- 45 **Update score** Postgres *Service*
- 46 **Edit Fields3** Set *Logic*
- 47 **Preliminary Plan** Open Ai *Model*
- 48 **Aggregate5** Aggregate *Logic*
- 49 **Primary keywords** Postgres *Service*
- 50 **Code4** Code *Logic*
- 51 **Aggregate2** Aggregate *Logic*
- 52 **Message a model** Perplexity *Service*
- 53 **Edit Fields** Set *Logic*
- 54 **Used secondary** Postgres *Service*
- 55 **Split Out1** Split Out *Logic*
- 56 **Split Out3** Split Out *Logic*
- 57 **Edit Fields7** Set *Logic*
- 58 **Edit Fields19** Set *Logic*
- 59 **blog table** Postgres *Service*
- 60 **Code6** Code *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 100, 1 loop or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** GitHub, Postgres, Slack, WordPress
- **Model:** OpenAI, OpenRouter, Perplexity

## Questions

What does it need to run?

An n8n account, plus your own GitHub, Postgres, Slack and WordPress 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 a clock.

Does it use AI?

Yes. It calls OpenAI, OpenRouter and Perplexity. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 100 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 100 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%2Fcreating-seo-optimized-blogs-for-wordpress-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.

[GitHub](https://millionrounds.com/workflows?service=GitHub#library)[Postgres](https://millionrounds.com/workflows?service=Postgres#library)[Slack](https://millionrounds.com/workflows?service=Slack#library)[WordPress](https://millionrounds.com/workflows?service=WordPress#library)

## Workflows like it

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

- [**Create WordPress articles in author style with Gemini** 113 steps · calls a model · Google Sheets, Pinecone](https://millionrounds.com/workflow/create-wordpress-articles-in-author-style-with-gemini)
- [**Autonomous blog publishing from YouTube videos with Sheets** 65 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/autonomous-blog-publishing-from-youtube-videos-with-sheets)
- [**Content generator for WordPress v3 with Claude and OpenAI** 65 steps · calls a model · Airtable, Slack](https://millionrounds.com/workflow/content-generator-for-wordpress-v3-with-claude-and-openai)
- [**WordPress auto-blogging pro with OpenAI and Google Docs** 62 steps · calls a model · Google Docs, Google Drive](https://millionrounds.com/workflow/wordpress-auto-blogging-pro-with-openai-and-google-docs)
- [**Automate SEO blog creation + social media with OpenAI** 56 steps · calls a model · Gmail, Google Sheets](https://millionrounds.com/workflow/automate-seo-blog-creation-social-media-with-openai)
- [**Automated NASA Image & Content Publisher** 55 steps · calls a model · LinkedIn, RSS](https://millionrounds.com/workflow/automated-nasa-image-and-content-publisher)
