What this workflow does
This workflow automatically tags new blog posts on WordPress using AI-generated keywords.
It stops the need to manually add tags, which can take hours and cause mistakes.
The result is faster, consistent tagging that improves how readers find posts on the site.
Who should use this workflow
Blog managers with many daily posts can use this workflow to save time.
Users who want to keep tags consistent and prevent duplicates will find it helpful.
Tools and services used
- n8n automation tool: Runs the workflow automation.
- OpenAI API: Generates relevant tags based on article content.
- WordPress REST API: Reads existing tags and updates posts with new tags.
- RSS Feed: Triggers the workflow when new blog posts appear.
How the workflow works
Inputs
- New posts detected from the blog’s RSS feed.
- Existing WordPress tags fetched via API.
Processing steps
- Content from each article is sent to OpenAI AI to get 3-5 tags in title case.
- AI response is parsed to a clean JSON format for safety.
- The workflow compares AI tags to existing WordPress tags.
- Any missing tags are created in WordPress via POST API calls.
- Updated WordPress tags are fetched again to include newly created ones.
- Relevant tags for the article are filtered and combined by ID.
- The WordPress post is updated with the AI-generated tags’ IDs.
Output
The blog post on WordPress is tagged automatically with consistent, AI-verified keywords.
Site SEO and navigation improve without manual work.
Beginner step-by-step: How to use this workflow in n8n
Import the workflow
- Download the workflow file using the Download button on this page.
- Open the n8n editor.
- Use “Import from File” to upload the workflow.
Configure credentials and settings
- Add your OpenAI API Key in the Langchain LLM Chat OpenAI node credentials section.
- Add WordPress API credentials in all HTTP Request nodes accessing the WordPress REST API.
- Update the RSS feed URL in the RSS Feed Trigger node with your blog’s feed.
- If needed, change any IDs or fields related to your WordPress setup in the nodes.
Test and activate
- Run a manual test to confirm new posts are detected and tagged.
- If the test works, activate the workflow to run automatically on schedule.
- You can host the workflow on your own server for full control by using self-host n8n.
Common edge cases and errors
- If the workflow shows “401 Unauthorized” errors, check WordPress API keys and permissions.
- If tags do not show on posts, verify the correct tag ID arrays are sent to the update node.
- If AI tags format is wrong, confirm the settings in Structured and Auto-fixing Output Parser nodes.
Customization ideas
- Change tag case style by editing the JavaScript in the “Return missing tags” code node.
- Add automatically generated categories by calling the categories REST API like with tags.
- Increase batch size to process many posts at once in the “Loop over articles” node.
- Include AI content rewriting before tagging to improve blog quality.
- Use alternative AI models by swapping OpenAI nodes if required.
Summary of benefits and results
✓ Saves about 15+ hours per week from manual tagging labor.
✓ Keeps tags consistent, avoiding duplicates and errors.
✓ Improves SEO and user navigation on WordPress blogs.
✓ Runs automatically when new posts appear.
✓ Fully manages tag creation and assignment.
