Save hours of manual categorization while cutting costs by 80% compared to ChatGPT. Product Classifier delivers accurate, hallucination-free results with just 2 API calls per product—set up in 15 minutes.
Managing product categories in Shopify is a time-consuming challenge. With over 10,000 categories in the Shopify Product Taxonomy, manually classifying each product can become overwhelming.
Our Shopify app Cloudhooks, combined with Product Classifier, can automate this process, potentially saving hours of manual categorization work.
Unlike generic AI solutions that can sometimes hallucinate or provide inconsistent results, Product Classifier uses purpose-built classification algorithms while potentially reducing categorization costs by 80% compared to general-purpose AI solutions.
In this tutorial we'll show you step by step how to set up this automation, and how you can save both time and money by automating this process.
Time to complete: ~15 minutes
Difficulty level: Beginner
This tutorial assumes that you have:
Before diving into the setup, it's important to understand why Product Classifier can be a better choice for e-commerce categorization:
While OpenAI's ChatGPT is impressive for general tasks, it wasn't designed specifically for product categorization. This leads to several critical issues:
Product Classifier solves these problems with:
First, we'll create a Product Classifier account and generate API credentials for accurate product categorization.
Visit https://productclassifier.com and click "Get Started":
Enter your email address on the sign-up page. You'll receive a confirmation code via email. Enter this code to create your account:
Your account includes a 7-day trial with 50 classification credits—perfect for testing the integration before committing.
Before generating an API key, let's test the classification in the Playground:
Navigate to the Playground page and enter a product description. Include:
The more detailed your description, the more accurate the classification.
Classification typically takes a few seconds and returns the appropriate product category.
Click the settings button (top right) to customize classification behavior:
One of Product Classifier's most powerful features is the ability to provide custom AI instructions. Just like explaining to a human employee how to categorize products in your store, you can give specific guidance to the AI.
For example, if you sell vintage clothing, you might add instructions like:
These custom instructions guide the AI toward your preferred categorization approach, helping it make decisions that align with your store's organization and improving consistency across your catalog.
Navigate to the API Keys page and generate a new key.
Important: Copy and save this key immediately—it will only be displayed once:
Note: Your trial includes 50 classification credits. API requests will be rejected once these are exhausted. Upgrade your account to continue using the service beyond the trial.
Now we'll create a hook in Cloudhooks that automatically triggers the AI categorization whenever a new product is added to your store. This hook will:
Follow these steps:
1) From your Cloudhooks dashboard, click "Create hook" in the top-right corner:
2) Configure the trigger:
3) Add the hook code - navigate to the "Hook" tab
Copy the template code from:
https://gist.github.com/cloudhooks/996157f0717bb67bd4df4922f3f5f6e7
Paste the code into the editor.
4) Configure authentication and environment variables
To set up the authentication credentials and other configuration values, navigate to the "Environment Variables" section in your hook settings:
Configure the following environment variables:
These environment variables keep your sensitive data secure and make your hook more maintainable. The CATEGORIZATION_TAG prevents products from being categorized multiple times (avoiding infinite loops). Products with this tag won't be processed again. To re-categorize a product, simply remove this tag and save.
5) Configure and test
On the Settings tab, name your hook and save it (don't activate yet):
Return to the Hook tab and click "Run Test". This will:
6) Activate the hook
Once testing is successful, return to the Settings tab and activate your hook:
In your Shopify Admin, navigate to Products and click "Add Product":
Fill in the product information:
Remember: More detailed descriptions result in more accurate categorization.
After saving the product:
Refresh the product page to see the assigned category and tag:
Check the Cloudhooks logs for detailed classification information:
When a new product is added to Shopify, this hook:
The hook's streamlined process:
This efficient process consumes only 2 Cloudhooks actions per product—a 67% reduction compared to the OpenAI approach.
Product Classifier is designed to provide accurate results, but you can further improve categorization by:
Follow these guidelines for optimal results:
Testing
Maintenance
You've successfully set up automated product categorization! The system will now automatically classify all new products added to your store with reliable, accurate categories from the Shopify Product Taxonomy.
After implementing both solutions, Product Classifier offers several potential advantages: