WordPress blog generation with AI Research, Image Creation & Auto Publishing

Go to Workflow
108 views
Built by Muhammad Asadullah Muhammad Asadullah
Created on June 05, 2026

Description

How This N8n Workflow Works

This is an automated blog post generation system that:

Researches topics using AI agents and web search tools
Writes complete blog posts with proper SEO structure
Generates custom images for each post
Publishes directly to WordPress with images embedded

Setup Steps

1. API Keys & Credentials
Set in "API Keys" node:**
tavily: Get from tavily.com (free tier available)
wavespeed: Get from wavespeed.ai for image generation
wordpress-website-url: Your WordPress site URL

2. WordPress Authentication
Create WordPress Application Password:
Go to Users → Your Profile → Application Passwords
Create new password and save it
Set up WordPress API credential in n8n with:
Username: Your WordPress username
Password: The application password you created

3. Data Table Setup
Create an n8n Data Table with these columns:
title, topic, content, slug, excerpt, featured_image, audience, category, author, status

4. AI Model Configuration
Configure AI models in these nodes:
Researcher Agent (uses OpenAI or Google Gemini)
Writer Agent (uses OpenAI or Google Gemini)
Image Prompts Writer (uses OpenAI)

5. Image Generation
Update image upload URL in "Upload image" node:
Change to: https://yourdomain.com/wp-json/wp/v2/media
Configure your preferred image generation service

How to Trigger

Fill the form with:
Topic
Target audience
Industry
Submit to start the automation

Workflow Process

Research Phase: AI researches topic and analyzes existing content
Writing Phase: AI writes complete blog post with HTML structure
Image Creation: Generates featured image + content images
WordPress Integration:
Uploads images to media library
Creates blog post with embedded images
Sets featured image and metadata

Key Features

SEO-optimized** content structure
Automatic image generation** and embedding
WordPress native integration**
Quality checks** and retry logic
Human-like writing** with anti-AI detection

The system handles everything from research to published post with images in one automated workflow.

Nodes Used (10)

AI Agent
@n8n/n8n-nodes-langchain.agent
Code
n8n-nodes-base.code
Edit Image
n8n-nodes-base.editImage
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
HTTP Request
n8n-nodes-base.httpRequest
Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor
OpenAI
@n8n/n8n-nodes-langchain.openAi
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
Wordpress
n8n-nodes-base.wordpress