Generate and Publish SEO-Optimized Blog Posts to WordPress
This n8n workflow, BlogBlitz, automates the creation and publishing of SEO-optimized blog posts for WordPress, saving you hours of content creation time. Triggered via Telegram or a scheduled interval, it generates 1,500–2,500-word articles on Technology, AI, Tech Facts, History, or Tips, complete with catchy titles, slugs, meta descriptions, and realistic featured images. Perfect for bloggers and marketers, BlogBlitz ensures your site stays fresh with high-quality content.
Who is this for?
Bloggers, content marketers, and WordPress site owners who want to automate high-quality, SEO-ready blog content creation without manual writing or formatting.
What problem is this workflow solving?
Manually creating engaging, SEO-optimized blog posts is time-consuming and requires expertise. BlogBlitz solves this by automating the entire process—from generating ideas and writing articles to publishing and notifying you—keeping your site active and discoverable.
What this workflow does
- Triggers: Runs every 3 hours via a Schedule Trigger or on-demand with a Telegram command (“generate”).
- Generates Content: Uses OpenRouter to pick a category (e.g., Technology, AI) and create a title, slug, focus keyphrase, and meta description.
- Writes Articles: OpenAI crafts 1,500–2,500-word posts with SEO-friendly structure, headings, and a call-to-action.
- Adds Visuals: Generates realistic featured images with OpenAI and uploads them to WordPress.
- SEO Features: Generate optimized slug, focus keyphrase, meta description
- Publishes: Posts articles to WordPress with proper categories and featured images.
- Notifies: Sends publish alerts with links to Discord and Telegram.
Setup
- n8n Instance: Ensure you have a cloud or self-hosted n8n instance.
- Credentials:
- WordPress: API access for
wp-json/wp/v2
endpoint.
- OpenAI: For article and image generation.
- OpenRouter: For title and category generation.
- Telegram: Bot API for triggers and notifications.
- Discord: Webhook for publish alerts.
- WordPress Configuration:
- Set up categories (Technology [ID:3], AI [ID:4], Tech Fact [ID:7], Tech History [ID:8], Tech Tips [ID:9]).
- Ensure an admin user ID is available (default: 1).
- Node Setup:
- Use the Edit Fields node to centralize variables like category IDs.
- Test: Send “generate” via Telegram to test the workflow. Check WordPress for the published post.
How to customize this workflow to your needs
- Change Categories: Update the WordPress Post Draft node to match your site’s category IDs.
- Adjust Schedule: Modify the Schedule Trigger node for different intervals (e.g., daily).
- Tweak Tone: Edit the prompt in the Basic LLM Chain node for a different writing style (e.g., formal or casual).
- Add Platforms: Extend notifications to Slack or email by adding nodes.
- Image Style: Adjust the OpenAI image node for different sizes or styles (e.g., “natural” instead of “vivid”).
Pre-Requirements
- n8n Instance: Cloud or self-hosted.
- Credentials:
- WordPress API (wp-json/wp/v2 endpoint).
- OpenAI API for text and images.
- OpenRouter API for AI content.
- Telegram bot API.
- Discord Webhook API.
- Dependencies:
@n8n/n8n-nodes-langchain
package.
- WordPress Setup: Categories and admin user ID configured.
- Network: Stable internet for API calls.
Category: Marketing
Nodes Used: Telegram Trigger, Schedule Trigger, OpenRouter, OpenAI, WordPress, Discord, HTTP Request