Templates / Auto-generate blog posts with GPT, Leonardo AI, and Wordpress publishing

Auto-generate blog posts with GPT, Leonardo AI, and Wordpress publishing

Ready for 3.0

by Dean Gallop · 694 views · created 2025-09-04 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 20 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenAI. It also calls api.openai.com, cloud.leonardo.ai and public-api.wordpress.com over HTTP.

How it runs

Trigger: Manually, when you click “Execute workflow”.

  1. Extract Topic (Code): runs custom JavaScript code
  2. Style (Code): runs custom JavaScript code
  3. Build Chat Research Body (Code): runs custom JavaScript code
  4. Research Topic – GPT (HTTP Request): calls api.openai.com (POST)
  5. Build Tone Request (Code): runs custom JavaScript code
  6. Tone & Format Revision – GPT (HTTP Request): calls api.openai.com (POST)
  7. Word Count Guard (Code): runs custom JavaScript code
  8. If: checks a condition and branches into true / false
  9. Expand Draft (OpenAI): uses OpenAI
  10. Get Title, Content, and Image FileName (Code): runs custom JavaScript code

…plus 9 more steps. See the full node list below.

Services it uses

OpenAI

HTTP calls to: api.openai.com, cloud.leonardo.ai, public-api.wordpress.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (6)

From the author

Trigger & Topic Extraction The workflow starts manually or from a chat/Telegram/webhook input. A “topic extractor” node scans the incoming text and cleans it (handles /topic … commands). If no topic is detected, it defaults to a sample news headline. Style &…

Excerpt from Dean Gallop's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.