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

1
  1. Fetch Posts
  2. Retrieve published posts from WordPress, sorted by date, up to the specified batch size.
2
  1. Extract Post Data
  2. Extract each post's ID and title to prepare for AI categorization.
3
  1. AI Categorization
  2. Send the title to an LLM that returns the single most relevant category ID from a fixed list.
4
  1. Validate & Parse Category ID
  2. Extract and verify the category ID from AI output; default to category 3 if none valid.
5
  1. Update WordPress Post
  2. 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

  1. Step 1. Prepare Your WordPress Site
  2. Confirm your site has published posts and the required categories with IDs 3 to 8.

  3. Step 2. Configure Credentials
  4. Input your WordPress API credentials to enable post fetching and updating.

  5. Step 3. Set Fetch Parameters
  6. Define the number of posts to retrieve per request (max 100, default 100).

  7. Step 4. Run the Workflow
  8. The workflow fetches posts, AI categorizes them, and updates categories automatically.

  9. Step 5. Verify Results
  10. Check the output summary and confirm the posts have updated, consistent categories.

FAQs

How does the AI determine the correct category for each post?
It sends each post's title to a large language model instructed to select one primary category ID from a fixed list based on the dominant theme.
What happens if the AI output does not contain a valid category ID?
The workflow defaults to category ID 3 (Content Creation) to ensure every post is assigned a category.
Can I customize the category list used by the AI?
No, the workflow uses a fixed set of category IDs (3 to 8) predefined in WordPress for consistent classification.
How does the workflow update the post categories?
It uses the WordPress API with your credentials to write the validated category ID back to each post's Categories field.
What is the maximum number of posts processed per run?
You can specify the number of posts fetched per request up to a maximum of 100 posts.
Was This Page Helpful?

More Workflows for Inspiration

✒️
YouTube Podcast Summary and Save to Sheets
Automate podcast transcript capture, summary generation, and archiving to Google Sheets instantly.
Learn more >
💬
Workspace Default Flow
Automate conversation start logic to flexibly switch AI modes and optimize response accuracy.
Learn more >
⚙️
WordPress Rank Math SEO Metadata Updater
Automate Rank Math SEO metadata updates on WordPress to save time and ensure accuracy.
Learn more >