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

441 views · 🎬 Content Creation & Video

Description

WP Category Toolkit automates mapping content topics to your WordPress category IDs using your WordPress REST API and a GPT-5mini model.

Screenshot 20250810 at 10.51.28.png

It replaces manual copy-paste and guesswork when assigning categories, speeds up publishing, and reduces tagging errors so your site stays organized and search friendly without you learning new dev magic (just a bit of prompt craft).

💡 Why Use WP Category Toolkit?

⚡ Perfect For

🔧 How It Works

  1. ⏱ Trigger: Manual start (kick it off when you’re ready to map categories).
  2. 📎 Process: Pull all site categories from your WordPress REST endpoint, aggregate the list, and feed the source content + 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 (GPT5-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 → n8n Import Link
  2. Add credentials: WordPress API credential & Azure OpenAI (GPT5-mini) credential or you can use usual open AI node
  3. Update: Replace the WP endpoint URLand any post-body endpoints you’ll 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

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

🔗 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