🎬 Automate WordPress category mapping with GPT-5 Mini (Azure OpenAI)

⚑ 480 views · 🎬 Content Creation & Video

Description

Map content topics to the right WordPress categories automatically. WP Category Toolkit reads your WordPress categories via REST API, lets a GPT-5-mini model decide which IDs fit your topic, and hands back a clean mapping. No more copy-paste guesswork, tagging errors drop, and your site stays organized.

Screenshot 20250810 at 10.51.28.png

Last updated: September 2026.

Why Use WP Category Toolkit?

Perfect For

How It Works

  1. Trigger: Manual start. Kick it off when you are ready to map categories.
  2. Process: Pulls all site categories from your WordPress REST endpoint, aggregates the list, and feeds the source content plus current topic into the mapping step.
  3. Smart Logic: A Chain LLM node (Category-Mapping) uses a small prompt to decide which WordPress category IDs match the content topic (GPT-5-mini handles the reasoning).
  4. Output: A clean category ID mapping you can paste into your Body Post WordPress node or use to patch posts automatically.

Quick Setup

  1. Import JSON file to your n8n instances
  2. Add credentials: WordPress API credential & Azure OpenAI (GPT-5-mini) credential, or you can use the standard OpenAI node
  3. Update: Replace the WP endpoint URL (REST API docs) and any post-body endpoints you will write back to
  4. Test: Run with a sample post and copy the output mapping into your Body Post WordPress node to confirm IDs match expected categories

You’ll Need

Level Up Ideas

Quick Answers

What do I feed it?
Your content topic plus your site’s category list pulled from the WordPress REST API.
What comes back?
A clean mapping of WordPress category IDs matched to your topic.
Which model decides?
GPT-5-mini (Azure OpenAI), guided by a small mapping prompt.

Made by: khmuhtadin
Tags: WordPress, Categories, AI, n8n
Category: WordPress
Need custom work? Contact me

Additional info

Built with n8n. Need an assessment on your business? Feel free to reach out at https://khmuhtadin.com/consultation/

πŸ”— Nodes Used

HTTP Request, Basic LLM Chain, Azure OpenAI Chat Model

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup