Automated SEO Blog Post Generation and WordPress Publishing - n8n Workflow

Generate full, SEO-optimized blog posts using AI models (OpenAI, Gemini) and automatically publish them to WordPress, complete with featured images. This powerful n8n workflow runs on a schedule or trigger.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Content marketers looking to scale blog production using automation.
SEO specialists requiring high-volume, keyword-rich content generation.
n8n users interested in implementing Langchain and AI models for complex publishing pipelines.
Blog owners seeking autonomous content updates via a scheduled n8n workflow.

Overview

This specialized n8n workflow addresses the challenge of high-volume, consistent content generation by fully automating the creation and publishing cycle for a WordPress blog. Unlike simple drafting tools, this system handles everything: topic suggestion, SEO title and metadata generation, article body writing (leveraging multiple powerful LLMs like OpenRouter, OpenAI, and Gemini), AI-driven featured image generation (via DALL-E), and the final publishing steps (drafting the post, uploading the image, and setting the featured image) using the WordPress API. This robust n8n automation can be initiated manually via a Telegram command (using the n8n trigger) or run autonomously on a recurring schedule. The implementation of multiple AI providers via specific n8n node configurations ensures content variety and quality. This complete n8n workflow dramatically reduces manual content production time, offering significant efficiency gains through automation.

How it Works

The n8n workflow begins with one of two distinct n8n trigger nodes: a Telegram command or a recurring schedule trigger (set to run every three hours).


  1. Initiation and Filtering: If triggered by Telegram, an If n8n node called Check command from telegram verifies the input before proceeding. Alternatively, the Scheduled Auto n8n trigger starts the process periodically.

  2. Topic and Title Generation: The input is passed to the Topic Chooser and Title Maker (a Langchain chainLlm n8n node), which uses an underlying model and a structured parser (Parse Blog Metadata JSON1) to generate an SEO-friendly title, keywords, and overall topic structure, making this n8n template highly optimized for search.

  3. Article Body Creation: The Generate Article Body n8n node takes the structured topic data and writes the complete blog content. This critical step utilizes advanced language model n8n node connections (such as Article Generator) for robust text generation.

  4. WordPress Draft Creation: The complete content is sent to the Create WP Draft Post1 WordPress n8n node, establishing the post ID on the target site.

  5. Image Generation & Handling: The title is fed to the Generate Featured Image (OpenAI) n8n node, which uses DALL-E to create the image. This is followed by two HTTP Request n8n node steps: Upload Image to Wordpress and Attach Feature Image to Post, which handle the complex media API interactions necessary for publishing.

  6. Final Notification: Upon successful completion of the publishing pipeline, status updates are sent via the Notify Discord channel and Notify Telegram n8n nodes, ensuring oversight of the entire n8n workflow.

Installation Guide

To import and run this high-value n8n workflow, follow these setup steps:


  1. Import the n8n template: Copy the provided n8n workflow JSON data and import it directly into your n8n instance using the 'Import' feature.

  2. Set Up Credentials: You must configure the required credentials for the services used by the various n8n node components:

AI Models: Set up connections for OpenAI (for DALL-E and LLM generation), and configure credentials for OpenRouter and Gemini connections for the Langchain n8n nodes.
WordPress: Configure a secure WordPress API connection for the Create WP Draft Post1 n8n node. This typically requires generating an application password.
* Messaging: Set up API tokens or webhooks for the Telegram Trigger, Telegram Notification, and Discord Notification n8n nodes.

  1. Configure HTTP Requests: The Upload Image to Wordpress and Attach Feature Image to Post n8n nodes require specific WordPress REST API endpoints, authorization headers, and proper binary data formatting for media handling. Ensure your authentication details are correctly embedded in the parameters of these n8n node blocks.

  2. Activate: Save and activate the n8n workflow. The scheduled n8n trigger will begin execution based on its defined interval.

Node Details

This n8n template utilizes a sophisticated mix of core and specialized nodes:

Telegram Trigger / Scheduled Auto Trigger (Every 3 Hours)1: These are the primary n8n trigger nodes that determine whether the workflow runs manually or on a timed basis.
Topic Chooser and Title Maker (Langchain ChainLlm n8n node): Function: Orchestrates the initial AI task, generating SEO titles and keywords based on the input. Key Configuration: Linked to the Parse Blog Metadata JSON1 Langchain n8n node to ensure structured output.
Generate Article Body (Langchain ChainLlm n8n node): Function: The engine for long-form content creation. It consumes the generated topic and produces the full blog post text. Key Configuration: Integrates alternative model nodes (e.g., OpenRouter) for content generation.
Generate Featured Image (OpenAI n8n node): Function: Creates a unique, high-quality featured image using OpenAI's DALL-E service, prompted by the article title.
Create WP Draft Post1 (WordPress n8n node): Function: Publishes the content and title to WordPress as a draft, which is essential before image attachment can occur. Key Configuration: Uses the WordPress connection credentials.
Upload Image to Wordpress / Attach Feature Image to Post (HTTP Request n8n node): Function: These two nodes manage the complex two-step process of uploading the AI image file and setting its ID as the featured image for the new post. Key Configuration: Requires specific WordPress REST API endpoints and authentication for successful media management.


  • Notify Discord channel / Notify Telegram (n8n node): Function: Provide real-time status updates and monitoring alerts upon completion of the automated publishing n8n workflow.

Related n8n Workflows

Paid

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

Featured*