WordPress Auto-Blogging Engine with AI Content Generation - n8n Workflow

Automate WordPress content creation using this advanced n8n workflow. It leverages AI (OpenAI/OpenRouter) to generate SEO articles, structure chapters, create images, and publish automatically.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

SEO Agencies and Consultants needing scalable content production.
Bloggers or Digital Marketers managing multiple niche sites.
Developers looking for advanced examples of chained AI prompts within an n8n workflow.
Businesses aiming to leverage sophisticated n8n templates for digital transformation.

Overview

Scaling content production while maintaining quality is a major challenge for modern content teams. This advanced n8n workflow provides a solution by creating a highly efficient, end-to-end automation machine for WordPress. The automation starts when a new SEO topic is added to Google Sheets. The n8n workflow then takes over, using chained AI models (via Langchain and OpenRouter) to generate the full article structure, write detailed chapters, source relevant internal links from an existing sitemap, and create unique, featured, and chapter-specific images via DALL-E. Finally, it formats the content, backs it up to Google Docs, and posts the finished, SEO-ready article directly to WordPress. This robust n8n node configuration exemplifies how powerful automation can be for publishing at scale using modular n8n templates.

How it Works

This comprehensive n8n workflow executes a complex, multi-stage process:


  1. Trigger & Input: The process is initiated by the Google Sheets n8n trigger when a new row containing a seed keyword, target audience, and content parameters is added. The input data is cleaned and validated by the Check inputs n8n node.

  2. Structure Generation: The Create post title and structure Langchain n8n node uses a powerful LLM to generate the article's title, introduction, conclusion, and a detailed chapter outline. The output is strictly parsed via a Structured Output Parser n8n node.

  3. SEO Prep & Infrastructure: A Google Drive n8n node creates a dedicated asset folder. Simultaneously, the n8n workflow fetches the site's XML sitemap to identify internal links, which are aggregated and prepared for insertion into the article text.

  4. Chapter Looping (Text): The outline is split. A loop uses the Write chapter text LLM n8n node to generate comprehensive, SEO-optimized text for each chapter, utilizing the internal links gathered previously.

  5. Chapter Looping (Images): A parallel loop uses the OpenAI n8n node to generate a unique DALL-E image prompt for each chapter. The images are resized, uploaded to WordPress via an HTTP Request n8n node, and saved to Google Drive. The images receive SEO metadata updates via another HTTP Request n8n node.

  6. Featured Image Generation: The Generate featured image OpenAI n8n node creates the main article image, which is processed and uploaded separately.

  7. Assembly & Conversion: All chapters, image links, and text blocks are merged back together. A Code n8n node (Combine into article) carefully assembles the final Markdown structure. This is converted to clean HTML using the Markdown n8n node.

  8. Publication: The content is backed up using Google Docs n8n templates, and the final HTML is published to WordPress using the dedicated WordPress n8n node. Subsequent HTTP Requests set the featured image and post excerpt, finalizing the publishing steps of this incredible n8n workflow.

Installation Guide

To deploy this expert n8n workflow, follow these setup steps:


  1. Import the n8n Workflow: Copy the provided JSON data and import it directly into your n8n instance.

  2. Credential Setup: You must configure credentials for the following services:

Google Sheets: Essential for the primary n8n trigger and reading input data.
OpenAI/OpenRouter (Langchain): Required for the generative AI (LLM) and DALL-E image services. Connect these accounts to the relevant Langchain and OpenAI n8n node instances.
WordPress: Configure connection details (typically Basic Auth) ensuring the account has full posting and media upload permissions.
Google Drive/Docs: Required for backing up generated content and raw image files.

  1. Google Sheets Schema: Ensure your Google Sheet's column headers match the fields expected by the initial n8n trigger (e.g., Seedkeyword, Targetaudience, Category_ID).

  2. Test Execution: Run the n8n workflow manually on a single test row to verify that all chained n8n node actions, including image generation and WordPress API calls, execute successfully.

Node Details

Google Sheets Trigger: Acts as the entry point, serving as the essential n8n trigger that listens for new SEO content requests added to a spreadsheet.
OpenRouter Chat Model (via Langchain): Used by multiple nodes to access high-performance large language models for generating structured article outlines and detailed chapter content, showing the power of combining AI with the n8n node ecosystem.
OpenAI n8n node: Specifically configured to use DALL-E for creating unique visual content, including the featured image and chapter-specific images.
Split Out n8n node: A critical flow control n8n node used to dynamically iterate over the generated article chapters, enabling parallel processing of text and images.
Code n8n node (Combine into article): Used to execute custom logic to stitch together all the generated components (text, H2s, image URLs) into a final, clean Markdown document structure before HTML conversion.
WordPress n8n node (Post on Wordpress): The dedicated publishing n8n node. It sends the finalized HTML content to WordPress, creating the new post draft or publication.


  • HTTP Request n8n node: Utilized for advanced operations on the WordPress platform that extend beyond the standard n8n node capabilities, such as updating image metadata for SEO and explicitly setting the featured image.

Related n8n Workflows

Paid

Nodes: 24 Nodes
Updated: December 26 2025
View all
Created by

A Growth Hacker, Digital Marketer & AI Automation Builder with 10+ years of experience in Digital Marketing & Workflow Automation. Based in Helsinki, Finland. For questions about my templates and customization, contact me at: [email protected]

Featured*