Generate and publish SEO blog posts to WordPress with Gemini and DALL-E 3

Go to Workflow
0 views
Built by Muhammad Adeel Muhammad Adeel
Created on June 05, 2026

Description

Quick overview
This workflow receives a blog generation request via webhook, uses Google Gemini to write a full SEO-optimized post, generates a featured image with DALL-E 3, and automatically publishes the completed post to WordPress with a Telegram notification.

How it works
A webhook receives the blog generation request containing the keyword and target audience fields.
The Set Blog Input Fields node normalizes and extracts the incoming request data for use across the workflow.
Gemini SEO Outline Generator creates an SEO-optimized structure including title, meta description, URL slug, H2/H3 headings, and a DALL-E image prompt.
Gemini Blog Writer uses the outline to write a complete 900 to 1200 word blog post in clean HTML format with proper heading tags.
DALL-E 3 generates a unique high-quality featured image using the prompt produced by Gemini.
The AI-generated image is downloaded and uploaded to the WordPress Media Library via the WordPress REST API.
The complete blog post is published to WordPress with the featured image attached, then a Telegram notification is sent with the live post link.

Setup
Add your Google Gemini API key as a credential in n8n — this is used by both the Gemini SEO Outline Generator and Gemini Blog Writer nodes. Get it free at aistudio.google.com.
Add your OpenAI API key as a credential in n8n — this is used by the Generate Image with DALL-E node. Get it at platform.openai.com.
In WordPress go to Users → Profile → Application Passwords → Add New → copy the generated password.
In the Post Image to WordPress node replace YOUR_WORDPRESS_SITE_URL, YOUR_WP_USERNAME, and YOUR_WP_APP_PASSWORD with your actual WordPress site values.
Add your WordPress site URL and Application Password as a WordPress credential in n8n — used by the Publish Blog to WordPress node.
Create a Telegram bot via @BotFather, get your Chat ID from @userinfobot, add the bot token as a Telegram credential in n8n, and replace YOUR_TELEGRAM_CHAT_ID in the Notify via Telegram node.

Requirements
Google Gemini API key — free tier available at aistudio.google.com
OpenAI API key with DALL-E 3 access — platform.openai.com
WordPress site with REST API enabled and Application Password created
Telegram Bot Token and Chat ID — optional, delete the Notify via Telegram node if not needed

Customization
Edit the Gemini SEO Outline Generator prompt to change heading depth, add schema markup instructions, or request a specific number of H2 sections
Edit the Gemini Blog Writer prompt to change tone — replace professional with casual, technical, or humorous — or adjust word count targets
Change the DALL-E image style by editing the image_prompt field — try flat design illustration, watercolor, minimalist, or 3D render
Change the WordPress post status in the Publish Blog to WordPress node from publish to draft to review before going live
Add a Google Sheets node after the Notify via Telegram node to log all published posts with keyword, URL, and publish date

Nodes Used (5)

Google Gemini
@n8n/n8n-nodes-langchain.googleGemini
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
n8n-nodes-base.openAi
Telegram
n8n-nodes-base.telegram
Wordpress
n8n-nodes-base.wordpress