Templates / Auto-generate & publish SEO articles to WordPress with GPT-4 + Postgres tracking

Auto-generate & publish SEO articles to WordPress with GPT-4 + Postgres tracking

Needs changes

by AlexWantMoreB · 4,528 views · created 2025-05-06 · Content Creation, Multimodal AI

Needs 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 this workflow does

This AI workflow has 23 nodes and runs on a schedule (every hour). Along the way it connects OpenAI Chat Model and Postgres.

How it runs

Trigger: On a schedule (every hour).

  1. Config (Edit Fields (Set)): sets 1 field: domain
  2. Load Categories (HTTP Request): calls an HTTP API
  3. Category Filter (Code): runs custom JavaScript code
  4. Selecting recent (Postgres): run a query
  5. Picks Less Used (Code): runs custom JavaScript code
  6. 10 latest headlines (Postgres): run a query
  7. Merge: merges the data from its input branches
  8. AI Agent: runs an AI agent, with model: OpenAI Chat Model
  9. Combines full post meta (Code): runs custom JavaScript code
  10. New article title (Code): runs custom JavaScript code

…plus 9 more steps. See the full node list below.

Services it uses

OpenAI Chat ModelPostgres

Before you upgrade to n8n 3.0

1 thing in this workflow is removed in n8n 3.0. Fix it before you upgrade:

  • AI Agent v1 (old agent modes) in AI Agent SEO Headings (v1.9), AI Agent SEO writer (v1.9): replace with Latest AI Agent node (Tools Agent). For SQL Agent, use a Postgres or MySQL tool with a recent AI Agent.

Rather not rewrite it? Many of these flows can be rebuilt in Make (free plan).

Removed in 3.0Replace 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)

From the author

🚀 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…

Excerpt from AlexWantMoreB's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.