# Automate SEO blog creation + social media with OpenAI: n8n workflow

> Started by a clock, and works across Gmail, Google Sheets, Notion, WordPress and one other.

Source: https://millionrounds.com/workflow/automate-seo-blog-creation-social-media-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)

# Automate SEO blog creation + social media with OpenAI

Started by a clock, and works across Gmail, Google Sheets, Notion, WordPress and one other. It puts OpenAI behind a retrieval step, so answers are drawn from documents you supply rather than from the model alone. 56 steps: large, and worth reading before you trust it with anything live.

Large Calls a model: OpenAI Retrieval

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fautomate-seo-blog-creation-social-media-with-openai)

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

**0** Branches: places the flow splits

**0** Loops or waits

**5** Services it connects to

## The flow

Starts it 3 Model 19 Logic 13 Service 21

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

- 1 **When clicking ‘Test workflow’** Manual trigger *Starts it*
- 2 **When Executed by Another Workflow** Execute Workflow trigger *Starts it*
- 3 **OpenAI 4.1 mini4** Lm Chat Open Ai *Model*
- 4 **Simple Memory** Memory Buffer Window *Model*
- 5 **Google Sheets** Google Sheets Tool *Service*
- 6 **get brand brief** Tool Workflow *Model*
- 7 **Structured Output Parser1** Output Parser Structured *Model*
- 8 **Schedule Trigger** Schedule trigger *Starts it*
- 9 **OpenAI 4.1 mini** Lm Chat Open Ai *Model*
- 10 **OpenAI 4.1 mini2** Lm Chat Open Ai *Model*
- 11 **OpenAI 4.1 mini3** Lm Chat Open Ai *Model*
- 12 **OpenAI 4.1 mini1** Lm Chat Open Ai *Model*
- 13 **Social Media Content** Output Parser Structured *Model*
- 14 **gpt-4.1 mini** Lm Chat Open Ai *Model*
- 15 **Idea creator** Agent *Model*
- 16 **Notion** Notion *Service*
- 17 **Write prompt to create image** Chain Llm *Model*
- 18 **Content writer** Chain Llm *Model*
- 19 **Excerpt creator** Chain Llm *Model*
- 20 **Write prompt to search image** Chain Llm *Model*
- 21 **Social Media Content Creator** Agent *Model*
- 22 **Category rewrite** Code *Logic*
- 23 **Aggregate** Aggregate *Logic*
- 24 **OpenAI** Open Ai *Model*
- 25 **Cleanup HTML** Set *Logic*
- 26 **WordPress excerpt add** Http Request *Service*
- 27 **Get Image from Pexcel** Http Request *Service*
- 28 **Edit Fields2** Set *Logic*
- 29 **Edit Fields1** Set *Logic*
- 30 **X** Twitter *Service*
- 31 **OpenAI1** Open Ai *Model*
- 32 **OpenAI2** Open Ai *Model*
- 33 **Perplexity Research1** Http Request *Service*
- 34 **Edit Fields** Set *Logic*
- 35 **Upload Image to Wordpress2** Http Request *Service*
- 36 **Wordpress** Wordpress *Service*
- 37 **Markdown** Markdown *Logic*
- 38 **Download Image** Http Request *Service*
- 39 **Merge4** Merge *Logic*
- 40 **Merge3** Merge *Logic*
- 41 **Merge** Merge *Logic*
- 42 **Post image Cloudinary** Http Request *Service*
- 43 **Post image Cloudinary1** Http Request *Service*
- 44 **Cleanup Links** Set *Logic*
- 45 **Set Image on Wordpress Post2** Http Request *Service*
- 46 **Update list of blog post** Google Sheets *Service*
- 47 **Upload Image to Wordpress** Http Request *Service*
- 48 **Facebook Post1** Facebook Graph Api *Service*
- 49 **Upload media to Instagram** Facebook Graph Api *Service*
- 50 **Aggregate1** Aggregate *Logic*
- 51 **Update base post** Google Sheets *Service*
- 52 **Set Image on Wordpress Post** Http Request *Service*
- 53 **Publish Post on IG** Facebook Graph Api *Service*
- 54 **Add too Data Bank** Google Sheets *Service*
- 55 **Edit Fields3** Set *Logic*
- 56 **Gmail** Gmail *Service*

## How it's built

- **Starts on:** A clock
- **Steps:** 56
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets, Notion, WordPress, X
- **Model:** OpenAI
- **Retrieval:** Answers are drawn from documents you supply, not from the model alone

## Questions

What does it need to run?

An n8n account, plus your own Gmail, Google Sheets, Notion, WordPress and X 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. Its answers draw on documents you give it, not on the model alone. Model calls are billed by the provider, not by n8n.

How long does it take to set up?

Take your time. At 56 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 56 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-seo-blog-creation-social-media-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.

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

## Workflows like it

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

- [**Automated NASA Image & Content Publisher** 55 steps · calls a model · LinkedIn, RSS](https://millionrounds.com/workflow/automated-nasa-image-and-content-publisher)
- [**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)
- [**FB Ad Spy: AI-Powered Competitor Ad Intelligence & Auto-Video** 54 steps · calls a model · Google Cloud Storage, Google Drive](https://millionrounds.com/workflow/fb-ad-spy-ai-powered-competitor-ad-intelligence-and-auto-vid)
- [**Create & approve POV videos with OpenAI and OpenRouter** 53 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/create-and-approve-pov-videos-with-openai-and-openrouter)
- [**Automate social media content with Facebook and LinkedIn** 50 steps · calls a model · Gmail, Google Docs](https://millionrounds.com/workflow/automate-social-media-content-with-facebook-and-linkedin)
- [**Viral videos into new content with Gemini and OpenAI** 50 steps · calls a model · Google Sheets, S3](https://millionrounds.com/workflow/viral-videos-into-new-content-with-gemini-and-openai)
