Skip to main content

Automate SEO-Optimized WordPress posts with AI & Google Sheets

Workflow preview

Workflow preview
100%
Automate SEO-Optimized WordPress posts with AI & Google Sheets preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow automates the process of creating a complete SEO optimized blog post , including generating content, titles, images, and meta tags, and publishing it on WordPress. It leverages AI mod...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.set, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.wordpress, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.chainllm, @n8n/n8n-nodes-langchain.lmchatopenrouter

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate SEO-Optimized WordPress posts with AI & Google Sheets
Workflow name
Automate SEO-Optimized WordPress posts with AI & Google Sheets

This workflow automates the process of creating a complete SEO-optimized blog post, including generating content, titles, images, and meta tags, and publishing it on WordPress. It leverages AI models (like DeepSeek and OpenRouter) for content generation and SEO optimization, and integrates with Google Sheets, WordPress, and OpenAI for image generation.

This is a powerful tool for automating the creation and optimization of blog posts, saving time and ensuring high-quality, SEO-friendly content. It integrates multiple tools and AI models to deliver a seamless content creation experience.

Below is a breakdown of the workflow:


1. How It Works

The workflow is designed to streamline the creation of SEO-friendly blog posts. Here's how it works:

  1. Trigger: The workflow starts with a Manual Trigger node, which initiates the process when the user clicks "Test workflow."
  2. Fetch Context: The Google Sheets node retrieves the blog post context (e.g., topic, keywords) from a predefined Google Sheet.
  3. Generate Content:
    • The Generate Article node uses an AI model (DeepSeek) to create an SEO-friendly blog post based on the fetched context.
    • The Generate Title node creates a compelling, keyword-rich title for the blog post.
  4. Publish to WordPress:
    • The Add Draft to WP node creates a draft post in WordPress with the generated content and title.
  5. Generate and Upload Image:
    • The Generate Image node uses OpenAI to create a realistic, blog-appropriate image.
    • The Upload Image node uploads the image to WordPress media.
    • The Set Image node associates the uploaded image as the featured image for the blog post.
  6. SEO Optimization:
    • The SEO Expert node analyzes the blog post and generates optimized meta titles and descriptions using an AI model (OpenRouter).
    • The Set Metatag node updates the WordPress post with the generated meta tags.
  7. Update Google Sheets:
    • The Update Sheet and Finish Work nodes update the Google Sheet with the post's details, including the URL, title, and metadata.

2. Set Up Steps

To set up and use this workflow in n8n, follow these steps:

  1. Google Sheets Setup:

    • Create a Google Sheet with columns for ID POST, PROMPT, TITLE, URL, METATITLE, and METADESCRIPTION.
    • Link the Google Sheet to the Get Context node by providing the Document ID and Sheet Name.
  2. WordPress Integration:

    • Set up WordPress credentials in n8n for the Add Draft to WP, Upload Image, and Set Image nodes.
    • Ensure the WordPress site is accessible via its REST API.
  3. AI Model Configuration:

    • Configure the DeepSeek and OpenRouter credentials in n8n for the Generate Article, Generate Title, and SEO Expert nodes.
    • Ensure the AI models are correctly set up to generate content and meta tags.
  4. Image Generation:

    • Set up OpenAI credentials for the Generate Image node to create blog post images.
  5. Meta Tag Optimization:

    • The SEO Expert node uses OpenRouter to generate meta titles and descriptions. Ensure the node is configured to analyze the blog post content and produce SEO-friendly tags.
  6. Workflow Execution:

    • Click the "Test workflow" button to trigger the workflow.
    • The workflow will:
      • Fetch the blog post context from Google Sheets.
      • Generate the article, title, and image.
      • Publish the draft to WordPress.
      • Upload and set the featured image.
      • Generate and apply meta tags.
      • Update the Google Sheet with the post details.
  7. Optional Customization:

    • Modify the workflow to include additional SEO optimizations, such as internal linking, keyword density analysis, or social media sharing.

Need help customizing?

Contact me for consulting and support or add me on Linkedin.

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 - When clicking ‘Test workflow’

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

Block 2 - Get context

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

Block 3 - Set context

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

Block 4 - Generate title

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

Block 5 - Generate article

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

Block 6 - Add draft to WP

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

Block 7 - Generate image

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

Block 8 - Upload image

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

Block 9 - Set image

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

Block 10 - Update Sheet

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

Block 11 - SEO Expert

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.5

Block 12 - OpenRouter Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenRouter - lmChatOpenRouter
Config choices
Version 1

Block 13 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.2

Block 14 - Set metatag

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

Block 15 - Finish work

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

Block 16 - Sticky Note

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

Block 17 - Sticky Note1

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

Block 18 - Sticky Note2

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

Block 19 - Sticky Note3

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

Block 20 - Sticky Note4

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

Block 21 - Sticky Note5

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

3. Summary Table

Workflow Automate SEO-Optimized WordPress posts with AI & Google Sheets
Complexity advanced
Nodes 21
Categories Content Creation, Multimodal AI
Author Davide
Published 05 Mar 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/3085/3085.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 SEO-Optimized WordPress posts with AI & Google Sheets do?

This workflow automates the process of creating a complete SEO optimized blog post , including generating content, titles, images, and meta tags, and publishing it on WordPress. It leverages AI mod...

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 Content Creation, Multimodal AI use case.