Templates / Automate blog publishing from PostgreSQL to WordPress with OpenAI GPT

Automate blog publishing from PostgreSQL to WordPress with OpenAI GPT

Ready for 3.0

by Avkash Kakdiya ✓ · 332 views · created 2025-10-03 · Content Creation, Multimodal AI

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This AI workflow has 8 nodes and runs on a schedule (every day). Along the way it connects Postgres, Wordpress and OpenAI Chat Model.

How it runs

Trigger: On a schedule (every day).

  1. Postgres: run a query
  2. 🔍 Check Record Exists (If): checks a condition and branches into true / false
  3. 🤖 Generates Blog Post (AI Agent): runs an AI agent, with model: OpenAI Chat Model
  4. 📝 Format Blog Data (Code): runs custom JavaScript code
  5. Wordpress: uses Wordpress
  6. 💾 Update Database (Postgres): run a query

Services it uses

PostgresWordpressOpenAI Chat Model

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

Nodes used (7)

From the author

How it works This workflow automatically generates and publishes marketing blog posts to WordPress using AI. It begins by checking your PostgreSQL database for unprocessed records, then uses OpenAI to create SEO-friendly, structured blog content. The content…

Excerpt from Avkash Kakdiya'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.