π What this flow does
β’ π Selects the least-used WordPress category (tracked in PostgreSQL)
β’ π€ Uses GPT (4-mini or better) to generate a fully formatted SEO article with headings, TOC, lists, CTA, and Yoast blocks
β’ πΌοΈ Creates a placeholder cover image and uploads it to WordPress Media
β’ π¬ Publishes the final post via /wp-json/wp/v2/posts with correct category + featured image
β’ π§  Logs the used category for future rotation (zero duplicates!)
βοΈ Setup in 3 mins
π·οΈ Add your WordPress domain with a simple Set node:
domain=https://yourdomain.com
π Create these 3 credentials in n8n:
YOUR_WORDPRESS_CREDENTIAL β for /media, /posts
YOUR_POSTGRES_CREDENTIAL β for category tracking
YOUR_OPENAI_CREDENTIAL β GPT-4-mini or better
π§± Run the SQL from docs to create the used_categories table
β Manually test first 3β5 nodes to check WP auth, OpenAI response, and DB connection
π Then just schedule it and let the bot write for you.
π― Why it's awesome
This is your personal AI content writer + publisher β perfect for:
β’ π° SEO content farms
β’ π Affiliate blogs
β’ π§° Micro niche sites
β’ π€« PBNs with rotation-safe automation
No more manual uploads, broken categories, or GPT spam. Every post is structured, beautiful, and intelligently categorized.


