# Automate WordPress SEO optimization with Yoast SEO: n8n workflow

> Started by another system calling it, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI.

Source: https://millionrounds.com/workflow/automate-wordpress-seo-optimization-with-yoast-seo (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 WordPress SEO optimization with Yoast SEO

Started by another system calling it, and works across Gmail and Google Sheets. It hands the judgement calls to OpenAI. 23 steps, 3 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%2Fautomate-wordpress-seo-optimization-with-yoast-seo)

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

**0** Branches: places the flow splits

**3** Loops or waits

**2** Services it connects to

## The flow

Starts it 2 Model 2 Logic 12 Service 7

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

- 1 **Webhook** Webhook *Starts it*
- 2 **MANUAL** Manual trigger *Starts it*
- 3 **UA Rotativo** Code *Logic*
- 4 **OPTIONS** Set *Logic*
- 5 **Selected** Code *Logic*
- 6 **Split Out** Split Out *Logic*
- 7 **Loop Over Items** Split In Batches *Logic*
- 8 **SEO Result** Code *Logic*
- 9 **Maping urls** Http Request *Service*
- 10 **Loop Over Items1** Split In Batches *Logic*
- 11 **Split Out1** Split Out *Logic*
- 12 **Sitemap Error** Stop And Error *Logic*
- 13 **Count** Summarize *Service*
- 14 **Append row in sheet** Google Sheets *Service*
- 15 **HTTP Request1** Http Request *Service*
- 16 **Req Error4** Stop And Error *Logic*
- 17 **Text email** Open Ai *Model*
- 18 **Iterar Páginas** Split In Batches *Logic*
- 19 **Maping urls1** Http Request *Service*
- 20 **Send a message** Gmail *Service*
- 21 **Markdown** Markdown *Logic*
- 22 **meta descr and title gen** Open Ai *Model*
- 23 **meta desc and title SEO YOAST** Http Request *Service*

## How it's built

- **Starts on:** Another system calling it
- **Steps:** 23, 3 loops or waits
- **Size:** Large: read it before trusting it with anything live
- **Connects to:** Gmail, Google Sheets
- **Model:** OpenAI

## Questions

What does it need to run?

An n8n account, plus your own Gmail and Google Sheets accounts, and a key for OpenAI. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

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 23 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 23 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-wordpress-seo-optimization-with-yoast-seo)
- **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)

## Workflows like it

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

- [**Automate LinkedIn posts with Google Sheets** 23 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automate-linkedin-posts-with-google-sheets)
- [**Automate blog & LinkedIn content creation with OpenAI** 23 steps · calls a model · Gmail, LinkedIn](https://millionrounds.com/workflow/automate-blog-and-linkedin-content-creation-with-openai)
- [**Automated POV video creation with YouTube** 23 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/automated-pov-video-creation-with-youtube)
- [**Bulk YouTube channel content analysis with Apify and DeepSeek** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/bulk-youtube-channel-content-analysis-with-apify-and-deepsee)
- [**Content creation with Airtable** 23 steps · calls a model · Airtable, Google Sheets](https://millionrounds.com/workflow/content-creation-with-airtable)
- [**Create captioned vertical video clips from Google Drive** 23 steps · calls a model · Google Drive, Google Sheets](https://millionrounds.com/workflow/create-captioned-vertical-video-clips-from-google-drive)
