Auto-generate blog posts with GPT, Leonardo AI, and Wordpress publishing
Ready for 3.0What 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”.
- Extract Topic (Code): runs custom JavaScript code
- Style (Code): runs custom JavaScript code
- Build Chat Research Body (Code): runs custom JavaScript code
- Research Topic – GPT (HTTP Request): calls api.openai.com (POST)
- Build Tone Request (Code): runs custom JavaScript code
- Tone & Format Revision – GPT (HTTP Request): calls api.openai.com (POST)
- Word Count Guard (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Expand Draft (OpenAI): uses OpenAI
- Get Title, Content, and Image FileName (Code): runs custom JavaScript code
…plus 9 more steps. See the full node list below.
Services it uses
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)
- If
n8n-nodes-base.if - Manual Trigger
n8n-nodes-base.manualTrigger - Code
n8n-nodes-base.code - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - Wait
n8n-nodes-base.wait
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 &…