# Bulk Categorize Products with AI

*Published October 3rd 2024 · Updated October 16th 2024 · Written by Stanislas Marion*

This is the Markdown version of <https://autosheet.com/blog/categorize-products-in-bulk-chatgpt-sheets-excel>.

You can use Autosheet's [Classify / Categorize](https://autosheet.com/docs/gpt-for-excel/bulk-tools/reference#classify-categorize) bulk tool or GPT_CLASSIFY function to automate the categorization of new products for your product lifecycle management (PLM). This can considerably speed up the process and reduce manual effort, allowing your merchandisers to focus on product planning and replenishment instead of manual data entry.

This guide will walk you through classifying apparel products for lifecycle inventory management using Autosheet in Google Sheets or Excel.

![Classifying apparel products in Autosheet](https://static.talarian.io/cms/gptforwork/blog/result-classify-products.png?table=block\&id=1147455f-b966-8015-8fd1-ce2794be983f\&cache=v2)

By the end of this guide, you will know:

- The benefits of using Autosheet to automate parts of your product lifecycle management
- How to automatically process apparel products based on your product data using Autosheet’s Classify / Categorize bulk tool
- Some additional strategies for improving classification results.

## Why use Autosheet to automate product classification

Manual product classification for apparel lifecycle management is time-consuming and prone to human error, especially as inventory grows. By leveraging Autosheet’s `Classify / Categorize` bulk tool, businesses can gain the following benefits:

- **Time savings**: Categorize products in hours instead of weeks or months
- **Consistency**: Ensure uniform categorization across your entire product catalog, which will lead to better product discoverability
- **Scalability**: Easily handle large volumes of new products as your inventory expands
- **Reduced human error**: Minimize mistakes that can lead to misplaced inventory or inaccurate reporting

**Integrates into existing workflows:**

Users can bulk categorize all their files in a spreadsheet and then upload them directly to third-party software like [FlexPLM](https://www.ptc.com/en/industries/retail/flexplm) for further management.

## Classifying apparel products with Autosheet

### Prerequisites

To begin this tutorial, you need to complete the following prerequisites:

- Install [GPT for Sheets – Autosheet](https://workspace.google.com/marketplace/app/gpt_for_sheets_%E2%80%93_autosheet/677318054654) or [GPT for Excel – Autosheet](https://pages.store.office.com/addinsinstallpage.aspx?assetid=WA200005502).
- Copy the appropriate template:
  - For Google Sheets, click **USE TEMPLATE**: [Categorizing Apparel for E-Commerce Tutorial for Sheets with autosheet.com](https://docs.google.com/spreadsheets/d/1IXAugnZVBzC9BzlL-RgGJTaWBbmw4SPLr33K2Qr0scE/template/preview)
  - For Microsoft Excel, click **File > Download** the .xlsx file in your computer, and open the .xlsx file in Microsoft Excel: [Categorizing Apparel for E-Commerce Tutorial for Excel with autosheet.com](https://docs.google.com/spreadsheets/d/1lrQ7I434gY5qx33w4jigCEBVZRXEb4vx/template/preview)
- Or you have opened a spreadsheet containing identifiable apparel product information.

### Getting started in GPT for Sheets – Autosheet

Open GPT for Sheets – Autosheet using the **Extensions** menu at the top of your document.

*Note: You can also complete this tutorial in Excel. While the Excel version has been slightly modified due to formatting limitations between Sheets and Excel, the differences are purely cosmetic and do not affect the content or functionality of the tutorial. Other differences between the tutorials are noted below.*

#### Selecting a model

In the Autosheet sidebar, check that the model is set to **gpt-4o-mini**. If not, open the model switcher dropdown and select **gpt-4o-mini**.

![Selecting gpt-4o-mini in Autosheet](https://static.talarian.io/cms/gptforwork/blog/select-gpt-4o-mini.png?table=block\&id=1147455f-b966-80f7-b683-d21d134d291b\&cache=v2)

We recommend using **gpt-4o-mini** to complete this tutorial because of its cost savings.

Feel free to try out some different models and compare your results!

### Classify apparel products by category

First, we will sort our garments by product category using the `Classify / Categorize` bulk tool.

*Note: If you are using your own file or need help getting started, refer to our `Classify / Categorize` bulk tool guides for Google Sheets and Excel.*

From the Bulk Tools tab, select the `Classify / Categorize` bulk tool to configure your classification task.

![Selecting the Classify / Categorize bulk AI tool in Autosheet](https://static.talarian.io/cms/gptforwork/blog/select-classify-w%3A-gpt-4o-mini.png?table=block\&id=1147455f-b966-80ff-a357-f979e7d19350\&cache=v2)

Select the column containing the product names (column A) and paste the following list of categories (also found in cell `B3`).

```
Top, Bottom, Outerwear, Bras & Underwear, Dress, Accessory
```

Select the column where you want the results to appear (column `B`).

[Configuring the Classify / Categorize bulk AI tool in Autosheet](https://autosheet.com/gif/configure-category.mp4)

Set the first row to 6. Then, run the first three rows to test the classification and check the result (it will run the following three empty rows starting from row 6).

If satisfactory, run all rows to classify all apparel products.

[Running the Classify / Categorize bulk AI tool on the first three rows and checking the result in Autosheet](https://autosheet.com/gif/run-category.mp4)

### Classify apparel products by subcategory

Next, we will classify our garments into subcategories.

Paste the list below (also found in cell `C3`) into the bulk tool.

```
Bras, Underwear, Bodysuits, Coats, Jackets, Dresses, Hoodies, Sweatshirts, Joggers, Leggings, Long Sleeve Shirts, Pants, Polo Shirts, Shoes, Shorts, Skirts, Sports Bras, T-Shirts, Tank Tops, Backpacks, Bags
```

Select the column where you want the results to appear (column `C`).

[Configuring the Classify / Categorize bulk AI tool in Autosheet](https://autosheet.com/gif/configure-sub.mp4)

*Note: You can complete the Category/Subcategory classification with fewer function calls by using compound categories and then splitting the results with =SPLIT (or =TEXTSPLIT in Excel).*

*For example:*

```
Top / Hoodie, Top / Sweatshirt, Top / Long Sleeve Shirt, Top / Polo Shirt,Top / Shirt, Top / T-Shirt, Top / Tank Top, Bottom / Joggers, Bottom / Leggings, Bottom / Pant, Bottom / Short, Bottom / Skirt, Outerwear / Coat, Outerwear / Jacket, Bras & Underwear / Bra, Bras & Underwear / Underwear, Bras & Underwear / Sports Bra, Dress / Bodysuit, Dress / Dress, Accessory / Shoes, Accessory / Backpack, Accessory / Bag
```

*With =SPLIT(A6, “/”). Where A6 contains your compound Category/Subcategory.*

[Running the Classify / Categorize bulk AI tool on the first three rows and checking the result in Autosheet](https://autosheet.com/gif/run-sub.mp4)

Run 3 rows to test, then run all rows if the results are satisfactory.

## Identify apparel activity

We will sort our garments by activity once we’ve applied apparel categories and subcategories to our products.

Paste the following list of categories (also found in cell `D3`).

```
Running, Workout, Casual, Yoga, Golf, Tennis
```

Select the column where you want the results to appear (column `D`). Add the following classification instructions (also found in cell `D4`).

```
Items with technical properties are not casual
Polos are golf
Swiftlys are workout
Fast and Free are workout
Running shorts are running
Jackets are either Casual or Yoga
```

[Configuring the Classify / Categorize bulk AI tool in Autosheet](https://autosheet.com/gif/configure-activity.mp4)

Run 3 rows to test, then run all rows if the results are satisfactory.

[Running the Classify / Categorize bulk AI tool on the first three rows and checking the result in Autosheet](https://autosheet.com/gif/run-activity.mp4)

### Reviewing the results

You now have identified crucial categories required for product lifecycle management, saving you from manually adding tags.

- **Category** (Column B): Identifies the broad category to which an apparel item belongs.
- **Subcategory** (Column C): Indicates a more specific classification within the main category.
- **Activity** (Column D): Identifies the specific activity or use case for which the apparel item is designed.

While this is only a starting point, you can use this method to process your products automatically with whatever characteristics are appropriate for your business.

### Improving Your Results (optional)

To enhance the accuracy of your apparel classifications, consider the following strategies:

**Refine your category lists**: Ensure categories are mutually exclusive and comprehensive. Add specific categories for unique product lines (e.g., "Athleisure" or "Swimwear")

**Add a fallback category**: Capture all irrelevant content into a fallback category and review it to refine your classification approach. For example, add Other to your list of categories.

**Implement a hierarchical classification system**: Start with broad categories, then refine into subcategories and activities. Continue to refine this hierarchy as your product assortment grows.

**Use the Custom prompt bulk tool**: While the `Classify / Categorize` bulk tool is excellent for this task, you can try using the `Custom prompt` tool to create a more refined prompt based on your spreadsheet’s content. You can see an example of this in our [Classifying Leads](https://docs.google.com/document/d/1vCwnuPmlqCCVG-hsYlcna491T7VEVmsJAAo8TjRI55U/edit) tutorial

You can learn more about best practices for classification through our [GPT for Sheets – Autosheet](https://autosheet.com/docs/gpt-for-sheets/bulk-tools/reference#classify-categorize) and [GPT for Excel – Autosheet](https://autosheet.com/docs/gpt-for-excel/bulk-tools/reference#classify-categorize) documentation.

### Estimated Token Use

All costs have been estimated using **gpt-4o-mini** in Sheets. You can read more about [model pricing here](https://autosheet.com/docs/resources/pricing/how-credits-are-consumed?pricing-model=payg#bulk-models) and view our [cost estimator here](https://autosheet.com/docs/resources/pricing/estimate-usage?pricing-model=payg).

#### Estimated token cost for one product classification

| Category   | Tokens  | Cost         |
| ---------- | ------- | ------------ |
| Function   | ~29    | ~$0.000026  |
| Value      | ~11.55 | ~$0.00001   |
| Categories | ~28.67 | ~$0.000026  |
| Output     | ~2.6   | ~$0.0000023 |
| Total      | ~71.82 | ~$0.000064  |

*Note: The estimate is based on an average of the three classifications in the Google Sheets tutorial file. Classification task costs may vary based on model, output, and total number of categories.*

#### Estimated token cost by number of generations

| Generations | Tokens    | Cost        |
| ----------- | --------- | ----------- |
| 1           | ~71.82   | ~$0.000064 |
| 40          | ~2,872.8 | ~$0.00256  |
| 100         | ~7,182   | ~$0.0064   |
| 1,000       | ~71,820  | ~$0.064    |
| 10,000      | ~718,200 | ~$0.64     |

You can also use your API keys to reduce costs. [Learn more](https://autosheet.com/docs/resources/pricing/how-credits-are-consumed?pricing-model=payg#bulk-models) about our pricing.

## Conclusion

You should now understand how the `Classify / Categorize` bulk tool in Autosheet can help you automatically categorize new products for apparel product lifecycle management. Automating product classification quickly and in bulk can help update and manage your merchandise without the need for tedious data entry.

[We would love to hear if you enjoyed this guide or have suggestions for the next one](https://support.autosheet.com/hc/en-us/requests/new?ticket_form_id=10619301131164). If you want to try this exercise yourself, use either of the following tutorial files:

- [Categorizing Apparel for E-Commerce Tutorial for Sheets with autosheet.com](https://docs.google.com/spreadsheets/d/1IXAugnZVBzC9BzlL-RgGJTaWBbmw4SPLr33K2Qr0scE/template/preview)
- [Categorizing Apparel for E-Commerce Tutorial for Excel with autosheet.com](https://docs.google.com/spreadsheets/d/1lrQ7I434gY5qx33w4jigCEBVZRXEb4vx/template/preview)

Remember to check out the rest of our guides and documentation for [GPT for Excel – Autosheet](https://autosheet.com/docs/gpt-for-excel/quickstart), [GPT for Sheets – Autosheet](https://autosheet.com/docs/gpt-for-sheets/quickstart), and the rest of our [Autosheet](https://autosheet.com/) products.
