# Category Based Group Switching Settings

Here you can find settings to configure the extension to enable customer group switching based on categories.

* **Auto Assign Groups Based on Categories:** Enable it to switch the customer group based on categories.
* **Switch to Customer Group:** Select the group to switch customers if the set condition for the category is met. The group will be updated when the customer logs in. Only completed orders will be considered here.
* **Enter Category IDs:** Enter comma-separated category IDs to switch customers to the selected group. If the customer purchased the product available in the entered category ID, then the group will be assigned.

<figure><img src="/files/kD5Za2XZwK1OmmofXy28" 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://docs.magecomp.com/magento-2-auto-customer-group-switching-extension/category-based-group-switching-settings.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.
