AI-Driven WordPress Content Creation and Auto-Publishing Pipeline - n8n Workflow

Automate your entire blogging process using this complex n8n workflow. It handles deep research, AI content generation, image creation, and direct WordPress publishing.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

Content marketing teams needing scalable blog output.
Agencies managing multiple client websites.
Power users looking for advanced n8n templates for complex AI pipelines.


  • Developers seeking to understand sophisticated chained AI agents within an n8n workflow.

Overview

This sophisticated n8n workflow solves the tedious, multi-step process of professional blog creation by consolidating research, writing, illustration, and publishing into a single, automated pipeline. By leveraging advanced AI models like OpenAI and Google Gemini, paired with powerful tools like Perplexity and Tavily for deep web research, this n8n automation ensures high-quality, data-backed content. This specialized n8n workflow drastically reduces time-to-publish, transforming input ideas into fully formatted WordPress posts complete with optimized images, demonstrating the true power of chained AI agents in an n8n environment.

How it Works


  1. Trigger & Setup: The process initiates via an On form submission n8n trigger, where the user provides the initial blog topic. Essential API keys and configuration variables are set up immediately.

  2. Deep Research: The Researcher Agent n8n node is activated. It uses language models (OpenAI/Gemini) and specialized n8n node tools (Tavily Search, URL Scraper, Perplexity) to gather comprehensive, timely information based on the initial topic. Flow control (If n8n node) ensures research is completed before proceeding.

  3. Content Generation: The Writer Agent receives the research output. It utilizes another language model and a Structured Output Parser to craft the final blog post, ensuring the output adheres to a specific format, including extracting necessary image prompts.

  4. Image Prompt Extraction: The Image Prompts Writer n8n node analyzes the generated content to extract multiple high-quality image prompts. These are then split using a Code n8n node for batch processing.

  5. Image Creation Loop: A Loop Over Items n8n node handles parallel image generation. For each prompt, an external image generation API (via nano banana HTTP request n8n node) is called. The generated image is downloaded, converted to PNG (Edit Image n8n node), and uploaded via an HTTP request.

  6. Content Finalization: After all images are generated and hosted, they are embedded back into the HTML content (imbed images in html n8n node).

  7. WordPress Publishing: The final step uses the WordPress n8n node (Create a post) to automatically publish the fully formatted blog post, title, and content. A subsequent Set Image n8n node links the main generated image as the featured image for the post.

Installation Guide


  1. Import the n8n workflow: Copy the provided JSON data and paste it into your n8n instance using the 'New' -> 'Import from JSON' option.

  2. Set Credentials: You will need to configure credentials for several services:

OpenAI/Google Gemini: Configure credentials for the LangChain Chat Model n8n nodes.
WordPress: Set up an authentication for the WordPress n8n node to allow posting.
* External APIs: Update the API Keys Set n8n node with keys for Tavily, Perplexity, and the 'nano banana' image generation service.

  1. Form Trigger Setup: Activate the On form submission n8n trigger and note the webhook URL. This URL must be used to send the starting data (e.g., the blog topic and title).

  2. Testing: Execute the n8n workflow manually or via the webhook to ensure all AI agents and publishing steps connect correctly.

Node Details

On form submission (n8n trigger): Initiates the entire n8n workflow upon receiving input data, typically a topic or draft outline.
Researcher Agent (LangChain Agent n8n node): Responsible for executing complex research queries using external search tools (Tavily, Perplexity) and web scraping, providing factual basis for the article.
Writer Agent (LangChain Agent n8n node): Takes the researched data and crafts the full blog post, utilizing the OpenAI Chat Model n8n node for advanced text generation.
Structured Output Parser (LangChain n8n node): Used by the Writer Agent to guarantee the final output data (title, body, image prompts) adheres to a usable JSON format.
Google Gemini Chat Model / OpenAI Chat Model (n8n node): The core LLMs powering the analytical and creative processes within this n8n workflow, handling research summaries and content drafting.
nano banana (HTTP Request n8n node): Calls an external image generation API to create illustrations from the image prompts derived from the content.
Edit Image (n8n node): Processes the downloaded image, specifically converting the file format to PNG to ensure compatibility with WordPress upload standards.
Create a post (WordPress n8n node): The crucial publishing n8n node that takes the finalized HTML content and automatically publishes it to the specified WordPress site.


  • Loop Over Items (n8n node): Essential flow control, ensuring the entire image creation and processing sub-workflow runs independently for every required image in the article.

Related n8n Workflows

Paid

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

I am a Data Scientist and Generative AI Developer with expertise in building AI Applications, Chatbots, and Automations. Skilled in Python, R, and no-code/low-code platforms like n8n, Zapier and Make.

Featured*