# Rule action: Set category

**Used for:** setting the category of the export channel for your item.

**Used in:** "THEN"-statements and "ELSE"-statements.

The "set category" rule acts as an alternative for the "categories" step that each export channel has. Usually the categories step is the easiest to use for setting the export channel's category for your items, however there are some cases in which rules get the job done faster and/or better.

For example, your shop might be specialized in one specific type of item that all fall under one category of the export channel. In this case you may want to set the category of all your items to the same category — which is easier done in rules. Also, some channels require you to divide your items into e.g. female clothes and male clothes. In this case you would need rules to check the gender and to check what type of clothing item a product is.

We'll show both examples in the screenshots below. The first screenshot shows how you set the category for all items in your feed.

<figure><img src="/files/9ff6d896715759255f2f480449151f45ed24e22d" alt=""><figcaption></figcaption></figure>

The screenshot below is an example of how you would also take gender into account when setting the category for your items.

<figure><img src="/files/5414fdb31fe4946f598214183f7741283dda79cd" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-set-category.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
