Templates / Auto-tag blog posts in WordPress with AI

Auto-tag blog posts in WordPress with AI

Ready for 3.0

by Ludwig ✓ · 7,977 views · created 2025-01-28 · Content Creation, AI Summarization

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 22 nodes and runs when another workflow calls it (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Wordpress.

How it runs

Trigger: When another workflow calls it (plus 1 other trigger).

  1. Loop over articles (Loop Over Items (Split in Batches)): loops over the items in batches
  2. Generate tags for article (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Auto-fixing Output Parser
  3. SET initial record (Edit Fields (Set)): sets or maps fields
  4. MOCK article (Edit Fields (Set)): sets 4 fields: title, content, categories…
  5. GET WP tags (HTTP Request): calls an HTTP API
  6. Auto-Tag Posts in WordPress (Execute Sub-workflow): calls another n8n workflow
  7. Combine slugs (Aggregate): combines items into one
  8. Return article details (Edit Fields (Set)): sets 3 fields: tag_ids, title, content
  9. Return missing tags (Code): runs custom JavaScript code
  10. Wordpress: uses Wordpress

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

Services it uses

OpenAI Chat ModelWordpress

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

From the author

How it works: This workflow automates tagging for WordPress posts using AI: 1. Fetch blog post content and metadata. 2. Generate contextually relevant tags using AI. 3. Verify existing tags in WordPress and create new ones if necessary. 4. Automatically…

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