Overview
Manually categorizing WordPress posts drains time and causes inconsistent tagging. This workflow automates the process by fetching published posts, using AI to identify each post's primary category from a fixed list, and updating the posts via the WordPress API. The result: faster, uniform categorization that supports better content navigation and recommendations.
The Impact
- Slash manual workload. Batch categorize posts in minutes, not hours.
- Enforce category consistency. AI picks one dominant category per post from a fixed set.
- Boost content navigation. Accurate categories improve recommendations and user experience.
- Recover post-migration sanity. Quickly fix categories after data imports or site changes.
Who This Is For
- Content Editors batch-assign categories to new or uncategorized posts.
- Site Administrators correct categories after migrations or bulk imports.
- Product Teams ensure taxonomy consistency for automated recommendations.
- Marketing Analysts maintain clean category data for strategy and insights.
How It Works
- Fetch Posts
- Retrieve published posts from WordPress, sorted by date, up to the specified batch size.
- Extract Post Data
- Extract each post's ID and title to prepare for AI categorization.
- AI Categorization
- Send the title to an LLM that returns the single most relevant category ID from a fixed list.
- Validate & Parse Category ID
- Extract and verify the category ID from AI output; default to category 3 if none valid.
- Update WordPress Post
- Write the validated category ID back to the post via WordPress API.
What You'll Need
Before using this template, make sure you have:
- Access to a WordPress site with published posts that require categorization.Predefined WordPress categories with confirmed IDs: 3, 4, 5, 6, 7, 8.WordPress site credentials authorized to read and update posts via API.
How to Use
- Step 1. Prepare Your WordPress Site
- Step 2. Configure Credentials
- Step 3. Set Fetch Parameters
- Step 4. Run the Workflow
- Step 5. Verify Results
Confirm your site has published posts and the required categories with IDs 3 to 8.
Input your WordPress API credentials to enable post fetching and updating.
Define the number of posts to retrieve per request (max 100, default 100).
The workflow fetches posts, AI categorizes them, and updates categories automatically.
Check the output summary and confirm the posts have updated, consistent categories.