Auto-generate & publish SEO articles to WordPress with GPT-4 + Postgres tracking
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: AI Agent v1 (old agent modes). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| AI Agent v1 (old agent modes) AI Agent SEO Headings (v1.9), AI Agent SEO writer (v1.9) | Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent. |
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - Merge
n8n-nodes-base.merge - Postgres
n8n-nodes-base.postgres - AI Agent
@n8n/n8n-nodes-langchain.agent - No Operation, do nothing
n8n-nodes-base.noOp - Edit Fields (Set)
n8n-nodes-base.set
What it does
π 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: YOURWORDPRESSCREDENTIAL β for /media, /posts YOURPOSTGRESCREDENTIAL β for category tracking YOUROPENAICREDENTIAL β GPT-4-mini or better π§± Run the SQL from docs to create the usedcategories 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.