This n8n automation helps you turn content ideas from Notion into fully formatted .mdx
blog posts with zero manual coding. It uses OpenAI (via Sora AI) to generate blog content, auto-generates a slug based on the title, and creates a file with the blog content in your codebase—all from a Notion status update.
.mdx
blog post..mdx
file named after the slug and writes the generated content into it.That’s it—you now have a fully formatted, ready-to-publish blog post in your codebase!
Notion – for content planning and status tracking.
n8n – to orchestrate the automation.Sora AI / OpenAI – for blog content generation.
File system / GitHub repo – to save the
.mdx
files (via local write or GitHub API).
Create a Notion database item.
Fill in:
- **Title**: This will be used to generate the slug and the H1 title of the blog.
- **Description**: Short brief or bullet points for AI to expand into a blog.
- **Status**: Start with `Idea`.
Change Status to Ready to be generated by AI
.
.mdx
ready (supporting JSX or components if needed)."5 AI Trends in 2025"
→ 5-ai-trends-in-2025
)..mdx
file with that slug as the filename (e.g., 5-ai-trends-in-2025.mdx
).slug
field.Generated by AI
./blog
├── 5-ai-trends-in-2025.mdx
├── how-to-use-n8n-with-notion.mdx
Here’s what the generated .mdx
file looks like:
---
title: "5 AI Trends in 2025"
date: "2025-05-20"
slug: "5-ai-trends-in-2025"
summary: "Explore the top 5 trends in AI that are reshaping the tech world."
---
# 5 AI Trends in 2025
The future of AI is both exciting and disruptive...
// Continue with generated content