n8nflow.net logo

Automated Blog Post Generation with GPT-4 and Publishing to Ghost CMS

by Thomas•Updated: Last update 2 months ago•Source: n8n.io
Loading workflow viewer...

Getting Started

🧠 Writes original, thought-provoking blog posts using AI
šŸ•“ Runs every 12 hours automatically
āœļø Publishes directly to Ghost blog with title, tags, and SEO meta

šŸ”§ Features

Scheduled every 12 hours

OpenAI generates a multi-part blog post with metadata

Markdown-compatible output (no HTML)

Automatically published to Ghost CMS using authenticated API (šŸ” no hardcoded keys)

Fully modular and general-purpose — edit prompt for any blog theme!

āš™ļø Nodes Overview
Step Node Type Purpose
1ļøāƒ£ Schedule Trigger Runs every 12 hours
2ļøāƒ£ OpenAI Generates blog post + meta info
3ļøāƒ£ Code Extracts content, title, meta, and tags
4ļøāƒ£ Code Formats content as Ghost mobiledoc payload
5ļøāƒ£ HTTP Request Publishes post to Ghost via Admin API
šŸ“ OpenAI Prompt (Generalized)

Write a high-quality blog post on a creative or thought-provoking topic. The tone should be engaging and immersive. Length: 2–4 paragraphs.

Then add a brief paragraph offering an alternative perspective or logical counterpoint.

Finally, generate:

  • Blog post title
  • Meta description
  • 5 tags

šŸ” Notes

āœ… No hardcoded API keys

šŸ› ļø Ghost Admin API credentials must be set using the Credential Manager

šŸ“Œ Prompt and Ghost URL are both easily customizable