Auto-tag blog posts in WordPress with AI
Ready for 3.0What 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).
- Loop over articles (Loop Over Items (Split in Batches)): loops over the items in batches
- Generate tags for article (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Auto-fixing Output Parser
- SET initial record (Edit Fields (Set)): sets or maps fields
- MOCK article (Edit Fields (Set)): sets 4 fields: title, content, categories…
- GET WP tags (HTTP Request): calls an HTTP API
- Auto-Tag Posts in WordPress (Execute Sub-workflow): calls another n8n workflow
- Combine slugs (Aggregate): combines items into one
- Return article details (Edit Fields (Set)): sets 3 fields: tag_ids, title, content
- Return missing tags (Code): runs custom JavaScript code
- Wordpress: uses Wordpress
…plus 6 more steps. See the full node list below.
Services it uses
Other WordPress + OpenAI templates (91)
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.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (16)
- OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Auto-fixing Output Parser
@n8n/n8n-nodes-langchain.outputParserAutofixing - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - RSS Feed Trigger
n8n-nodes-base.rssFeedReadTrigger - Edit Fields (Set)
n8n-nodes-base.set - Split Out
n8n-nodes-base.splitOut - Loop Over Items (Split in Batches)
n8n-nodes-base.splitInBatches - HTTP Request
n8n-nodes-base.httpRequest - Filter
n8n-nodes-base.filter - Aggregate
n8n-nodes-base.aggregate - If
n8n-nodes-base.if - Code
n8n-nodes-base.code - Wordpress
n8n-nodes-base.wordpress - Execute Workflow Trigger
n8n-nodes-base.executeWorkflowTrigger - Execute Sub-workflow
n8n-nodes-base.executeWorkflow - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm
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…