Skip to main content

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

Workflow preview

Workflow preview
100%
Auto-generate blog posts with GPT, Leonardo AI, and Wordpress publishing preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

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 topi...

Best for

  • Content Creation automation workflows
  • Multimodal AI automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.if, n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.code, n8n-nodes-base.httprequest, @n8n/n8n-nodes-langchain.openai, n8n-nodes-base.wait

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Dean Gallop.

Original n8n.io source

1.1 Workflow description

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

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 & Structure Setup

A style guide node defines the blog’s tone: practical, medium–low formality, clear sections, clean HTML only.

It also enforces do’s (citations, links, actionable steps) and don’ts (no clickbait, no low-quality sources).

Research & Drafting

A GPT node generates a 1,700–1,800 word article following the style guide.

Sections include: What happened, Why it matters, Opportunities/risks, Action plan, FAQ.

The draft is then polished for clarity and flow.

Quality Control

A word count guard checks that the article is at least 1,600 words.

If too short, a GPT “expand draft” node deepens the Why it matters, Risks, and Action plan sections.

Image Creation

The final article’s title and content are used to generate an editorial-style image prompt.

Leonardo AI creates a cinematic, text-free featured image suitable for Google News/Discover.

The image is uploaded to WordPress, with proper ALT text generated by GPT.

Publishing to WordPress

The final post (title, content, featured image) is automatically published.

Sources are extracted from the article, compiled into a “Sources” section with clickable links.

Posts are categorized and published immediately.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 2 - When clicking ‘Execute workflow’

Type / Role
n8n-nodes-base.manualTrigger - manualTrigger
Config choices
Version 1

Block 3 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Style

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 5 - Extract Topic

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Build Chat Research Body

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Research Topic – GPT

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - Build Tone Request

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 9 - Tone & Format Revision – GPT

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 10 - Word Count Guard

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 11 - Expand Draft

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 12 - Get Title, Content, and Image FileName

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - Message a model

Type / Role
@n8n/n8n-nodes-langchain.openAi - openAi
Config choices
Version 1.8

Block 14 - Leonardo: Create Post Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 15 - Code

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 16 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 17 - Get Leonardo Image Status

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 18 - Get Leonardo Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 19 - Upload Image to Wordpress

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 20 - Add ALT to Image

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 21 - Create WordPress Post

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 22 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 23 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 24 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Showing the first 24 of 26 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Auto-generate blog posts with GPT, Leonardo AI, and Wordpress publishing
Complexity advanced
Nodes 26
Categories Content Creation, Multimodal AI
Author Dean Gallop
Published 04 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8254/8254.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Auto-generate blog posts with GPT, Leonardo AI, and Wordpress publishing do?

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 topi...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Content Creation, Multimodal AI use case.