Skip to main content

Automate WordPress SEO optimization with GPT-5 nano + Yoast SEO

Workflow preview

Workflow preview
100%
Automate WordPress SEO optimization with GPT-5 nano + Yoast SEO preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Optimize your WordPress titles and meta descriptions with AI (OpenAI), update them directly in Yoast SEO, log results in Google Sheets, and receive a styled report by email. All from your own n8n i...

Best for

  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.splitinbatches, n8n-nodes-base.webhook, n8n-nodes-base.manualtrigger, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.set, n8n-nodes-base.stopanderror, n8n-nodes-base.splitout

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Oriol Seguí.

Original n8n.io source

1.1 Workflow description

Title
Automate WordPress SEO optimization with GPT-5 nano + Yoast SEO
Workflow name
Automate WordPress SEO optimization with GPT-5 nano + Yoast SEO

Optimize your WordPress titles and meta descriptions with AI (OpenAI), update them directly in Yoast SEO, log results in Google Sheets, and receive a styled report by email. All from your own n8n instance.


✨ Why this workflow?

Forget spending hours editing metadata manually: this flow automates SEO generation and updates with the help of AI.

  • Fully documented: every block includes notes so you can easily understand how it works.
  • Error-proof: reinforced with alternatives and clear alerts if something fails (nested sitemaps, blocks, etc).
  • Flexible and easy to modify: change language, keywords, or domain in one single node (OPTIONS).
  • Basic support included: designed so anyone can set it up without being an expert.

🧠 What does the workflow do?

  • Reads the sitemap or internal WordPress URLs (posts or pages).
  • The website content is sent to ChatGPT (GPT-5-nano), which analyzes it and generates a personalized SEO title and meta description for higher precision.
  • Updates the Yoast SEO fields in WordPress automatically.
  • Logs each result (URL, TITLE, META) into Google Sheets.
  • Sends a professional HTML email report with a summary of the updates.

🛠️ Technologies & APIs Used

  • n8n (cloud or self-hosted instance).
  • OpenAI (GPT-5-nano / GPT-4o-mini).
  • Google Sheets API (to store results).
  • Gmail/SMTP (for notifications).
  • Yoast SEO plugin in WordPress (required to update meta fields).

⚡ Who is it for?

  • Agencies & SEOs managing multiple sites.
  • Freelancers delivering extra value to clients.
  • Businesses with WordPress wanting to improve SEO without expensive SaaS.
  • Webmasters & marketers needing clear, automated reporting.
  • Curious in the world of n8n

🎯 Problems solved

  • No more manual editing of metadata for each post or page.
  • Eliminates dependence on overpriced third-party tools.
  • Creates an automatic SEO history of your site in Google Sheets.
  • Sends clear, professional reports of every update.

📝 Quick Setup

  1. Import the .json into your n8n.

  2. Add your credentials:

    • WordPress API (Yoast SEO installed required).
    • OpenAI API Key.
    • Google Sheets (optional).
    • Email (SMTP or Gmail).
  3. Adjust language, keywords, and domain in the OPTIONS node.

  4. Run manually or via webhook.


💡 Tips

  • Change the language in OPTIONS to adapt SEO outputs to your target market.
  • If an error occurs (invalid sitemap, blocked URLs, etc.), the workflow catches it and gives you instructions.
  • 100% customizable: extend it to Notion, Slack, or other outputs.

📦 What’s included?

  • n8n workflow file (.json).
  • Internal documentation notes inside the flow.
  • Basic email support.

👉 This workflow is your SEO co-pilot: fast, automated, documented, and robust.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Iterar Páginas

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 2 - Webhook

Type / Role
n8n-nodes-base.webhook - webhook
Config choices
Version 2

Block 3 - MANUAL

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 4 - meta desc and title SEO YOAST

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - meta descr and title gen

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 6 - OPTIONS

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - Sitemap Error

Type / Role
n8n-nodes-base.stopAndError - stopAndError
Config choices
Version 1

Block 8 - Split Out1

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 9 - Req Error4

Type / Role
n8n-nodes-base.stopAndError - stopAndError
Config choices
Version 1

Block 10 - Markdown

Type / Role
n8n-nodes-base.markdown - markdown
Config choices
Version 1

Block 11 - HTTP Request1

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 12 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 13 - Selected

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 14 - Split Out

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 15 - SEO Result

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Loop Over Items1

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 17 - Append row in sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.7

Block 18 - Send a message

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

Block 19 - Count

Type / Role
n8n-nodes-base.summarize - summarize
Config choices
Version 1.1

Block 20 - Text email

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 21 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 22 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 35 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Automate WordPress SEO optimization with GPT-5 nano + Yoast SEO
Complexity advanced
Nodes 35
Categories Multimodal AI
Author Oriol Seguí
Published 09 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8423/8423.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Automate WordPress SEO optimization with GPT-5 nano + Yoast SEO do?

Optimize your WordPress titles and meta descriptions with AI (OpenAI), update them directly in Yoast SEO, log results in Google Sheets, and receive a styled report by email. All from your own n8n i...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Multimodal AI use case.