# WordPress auto-blogging pro with OpenAI and Google Docs: n8n workflow

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

Source: https://millionrounds.com/workflow/wordpress-auto-blogging-pro-with-openai-and-google-docs (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)

# WordPress auto-blogging pro with OpenAI and Google Docs

Started by a clock, and works across Google Docs, Google Drive, Google Sheets and WordPress. It hands the judgement calls to OpenAI. 62 steps, 2 branches, 4 loops or waits: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fwordpress-auto-blogging-pro-with-openai-and-google-docs)

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

**2** Branches: places the flow splits

**4** Loops or waits

**4** Services it connects to

## The flow

Starts it 4 Model 15 Logic 26 Service 15

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

- 1 **Research Tool** Tool Workflow *Model*
- 2 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 3 **Structured Output Parser1** Output Parser Structured *Model*
- 4 **Research Tool1** Tool Workflow *Model*
- 5 **Structured Output Parser3** Output Parser Structured *Model*
- 6 **Structured Output Parser4** Output Parser Structured *Model*
- 7 **Google Sheets Trigger** Google Sheets trigger *Starts it*
- 8 **Schedule Trigger** Schedule trigger *Starts it*
- 9 **OpenAI Chat Model** Lm Chat Open Ai *Model*
- 10 **OpenAI Chat Model1** Lm Chat Open Ai *Model*
- 11 **OpenAI Chat Model2** Lm Chat Open Ai *Model*
- 12 **OpenAI Chat Model3** Lm Chat Open Ai *Model*
- 13 **Execute Workflow Trigger** Execute Workflow trigger *Starts it*
- 14 **Initial Research** Agent *Model*
- 15 **Blog Planner** Chain Llm *Model*
- 16 **Researcher** Agent *Model*
- 17 **Copywriter** Chain Llm *Model*
- 18 **Limit to last post** Limit *Logic*
- 19 **Edit Fields1** Set *Logic*
- 20 **Check empty output** If *Logic*
- 21 **Wait2** Wait *Logic*
- 22 **Settings** Set *Logic*
- 23 **PerplexityAI API** Http Request *Service*
- 24 **Create Drive folder** Google Drive *Service*
- 25 **Loop Over Items2** Split In Batches *Logic*
- 26 **Check inputs** If *Logic*
- 27 **Get Research Content** Set *Logic*
- 28 **Get output** Set *Logic*
- 29 **Get title chapter and content** Set *Logic*
- 30 **Get post sitemap** Http Request *Service*
- 31 **Generate featured image** Open Ai *Model*
- 32 **Split out chapters** Split Out *Logic*
- 33 **Merge chapters title and text** Merge *Logic*
- 34 **Get XML file** Xml *Logic*
- 35 **Upload featured image to Drive** Google Drive *Service*
- 36 **Resize featured image** Edit Image *Service*
- 37 **Loop Over Items** Split In Batches *Logic*
- 38 **Merge** Merge *Logic*
- 39 **Combine into article** Code *Logic*
- 40 **Split out links** Split Out *Logic*
- 41 **Merge2** Merge *Logic*
- 42 **Generate chapter image** Open Ai *Model*
- 43 **Final article in Markdown** Set *Logic*
- 44 **Limit internal links** Limit *Logic*
- 45 **Wait featured image** Merge *Logic*
- 46 **Upload chapter images to Drive** Google Drive *Service*
- 47 **Resize Image** Edit Image *Service*
- 48 **Markdown to HTML** Markdown *Logic*
- 49 **Aggregate internal links** Aggregate *Logic*
- 50 **Upload featured image** Http Request *Service*
- 51 **Merge1** Merge *Logic*
- 52 **Upload chapter images** Http Request *Service*
- 53 **FInal article in HTML** Set *Logic*
- 54 **Update featured image meta data** Http Request *Service*
- 55 **Wait1** Wait *Logic*
- 56 **Update image meta data** Http Request *Service*
- 57 **Post on Wordpress** Wordpress *Service*
- 58 **Set featured image for post** Http Request *Service*
- 59 **Set excerpt** Http Request *Service*
- 60 **Create Doc** Google Docs *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 62, with 2 branches, 4 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Google Docs, Google Drive, Google Sheets, WordPress
- **Model:** OpenAI

## Questions

What does it need to run?

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

How long does it take to set up?

Take your time. At 62 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 62 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%2Fwordpress-auto-blogging-pro-with-openai-and-google-docs)
- **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 Docs](https://millionrounds.com/workflows?service=Google+Docs#library)[Google Drive](https://millionrounds.com/workflows?service=Google+Drive#library)[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.

- [**Automated music video creation & YouTube publishing** 65 steps · calls a model · Discord, Google Drive](https://millionrounds.com/workflow/automated-music-video-creation-and-youtube-publishing)
- [**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)
- [**Generate AI songs + music videos with Gemini and OpenAI** 57 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/generate-ai-songs-music-videos-with-gemini-and-openai)
- [**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)
