Templates / Generate missing WordPress post excerpts with OpenAI Chat Completions

Generate missing WordPress post excerpts with OpenAI Chat Completions

Ready for 3.0

by Bincy Bhanu. S ✓ · 0 views · created 2026-10-13 · 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-12-01.

📬 Weekly n8n 3.0 breakage alerts, free

What this workflow does

This workflow has 14 nodes and runs on a schedule (every week at 09:00) (plus 1 other trigger). Along the way it connects Wordpress. It also calls api.openai.com over HTTP.

How it runs

Trigger: On a schedule (every week at 09:00) (plus 1 other trigger).

  1. Workflow Configuration (Edit Fields (Set)): sets 6 fields: siteUrl, postsToScan, maxPostsPerRun…
  2. Get Posts from WordPress (Wordpress): get many (post)
  3. Keep Posts Without Excerpt (Filter): keeps only the items that match a condition
  4. Limit: keeps the first few items
  5. Prepare Post Text (Edit Fields (Set)): sets 3 fields: postId, title, plainText
  6. Write Excerpt with OpenAI (HTTP Request): calls api.openai.com (POST)
  7. Validate AI Excerpt (Code): runs custom JavaScript code
  8. Is Excerpt Valid? (If): checks a condition and branches into true / false
  9. Is Dry Run Enabled? (If): checks a condition and branches into true / false
  10. Save Excerpt to WordPress (HTTP Request): calls an HTTP API (POST)

Services it uses

Wordpress

HTTP calls to: api.openai.com

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 (10)

From the author

Quick overview This workflow runs manually or weekly to find published WordPress posts missing excerpts, generates plain-text excerpts with OpenAI Chat Completions, and optionally saves the validated excerpts back to WordPress via the REST API. How it works…

Excerpt from Bincy Bhanu. S'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.