Generate and Publish SEO-Optimized Blog Posts to WordPress

Go to Workflow
873 views
Built by Khairul Muhtadin Khairul Muhtadin
Created on June 05, 2026

Description

BlogBlitz is a powerful n8n workflow that automates the creation and publishing of SEO-optimized blog posts to WordPress, saving you hours of manual content creation. Triggered on a schedule or via Telegram, it generates high-quality, 1,500–2,500-word articles complete with titles, slugs, meta descriptions, images, and more.

🎯 Who is this for?

Bloggers** who want fresh, consistent content.
Content marketers** aiming for SEO efficiency.
WordPress site owners** looking to automate blog publishing without sacrificing quality.

🚨 Problem Solved

Manually creating engaging, SEO-friendly content is time-consuming and requires writing expertise. BlogBlitz solves this by:

Automating ideation, writing, formatting, and publishing.
Generating images and SEO elements.
Keeping your blog active and visible to search engines.

βš™οΈ What This Workflow Does

| Feature | Description |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| Triggers | - Runs every 3 hours via Schedule Trigger- Or on-demand via Telegram command: /generate |
| Generates Content | Uses OpenRouter to: - Select a category (Technology, AI, etc.)- Create a title, slug, focus keyphrase, and meta description |
| Writes Articles | OpenAI generates 1,500–2,500-word articles:- SEO-optimized- Structured with headings- Includes CTA |
| Adds Visuals | Generates realistic featured images with OpenAI and uploads them to WordPress |
| SEO Features | Generates:- Optimized slug- Focus keyphrase- Meta description |
| Publishes | Posts directly to WordPress:- With correct category- Featured image- Author ID |
| Notifies | Sends publish alerts via Discord webhook and Telegram message |

πŸš€ Setup Instructions

βœ… Requirements

Self-hosted or cloud n8n instance
Stable internet connection

πŸ” Credentials Needed

WordPress API** (wp-json/wp/v2)
OpenAI API** (text + image generation)
OpenRouter API** (category & title generation)
Telegram Bot API**
Discord Webhook**

πŸ”§ WordPress Configuration

Set up post categories:

Technology [ID:3]
AI [ID:4]
Tech Fact [ID:7]
Tech History [ID:8]
Tech Tips [ID:9]
Use admin user ID for publishing (default: 1)

🧩 Node Setup

Telegram Trigger** β€” Initiates workflow with /generate
Schedule Trigger** β€” Runs workflow every 3 hours
Edit Fields Node** β€” Centralizes variable setup (e.g., category IDs)
OpenRouter Node** β€” Generates topic and meta info
OpenAI Node** β€” Generates full article and image
WordPress Node** β€” Publishes post
Discord Node** β€” Sends publish alert
HTTP Request Node** β€” Handles image upload or utility calls

πŸ› οΈ Customization Tips

| Feature | How to Customize |
| ----------------- | ---------------------------------------------------- |
| Categories | Update category IDs in the WordPress Post Draft node |
| Schedule | Modify the interval in the Schedule Trigger |
| Tone & Style | Adjust prompts in the LLM Chain node |
| Notifications | Add Slack, Email, or other channels |
| Image Style | Change OpenAI prompt for β€œvivid”, β€œnatural”, etc. |

πŸ“¦ Pre-Requirements

n8n Instance** (Cloud/Self-hosted)
Install: @n8n/n8n-nodes-langchain
All required API credentials configured
WordPress categories set
Admin user ID available

πŸ”§ Nodes Used

Telegram Trigger
Schedule Trigger
OpenRouter
OpenAI
WordPress
Discord
HTTP Request

βœ… Test the Workflow

Deploy and connect your n8n instance.
Send /generate to your Telegram bot.
Check your WordPress site for the newly published post!
Made by: Khaisa Studio
Tag: youtube, summarizer, telegram, openai
Category: AI Automation, Video Tools
Need a custom? contact me on LinkedIn or Web

Nodes Used (10)

Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
Discord
n8n-nodes-base.discord
Google Gemini Chat Model
@n8n/n8n-nodes-langchain.lmChatGoogleGemini
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi
OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi
OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter
Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured
Telegram
n8n-nodes-base.telegram
Wordpress
n8n-nodes-base.wordpress