# How to Automatically Assign Category Mapping Rules in Omnitron?

This tutorial provides step-by-step instructions for automatically assigning rules for category mapping operations in Omnitron.

## <mark style="color:red;">Step 1: Access to Omnitron​</mark> <a href="#step-1-access-to-omnitron" id="step-1-access-to-omnitron"></a>

* Get access to the **Omnitron** panel.
* Enter your *Username* and *Password*, and then click the **Sign In** button.\
  ![](https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FY3yTlVwKTSWy2b5zG5sq%2Fimage.png?alt=media\&token=56bffccf-7280-4ca0-a497-ebd0e6cbc152)

## <mark style="color:red;">Step 2: Navigate to Category Mapping Page​</mark> <a href="#step-2-navigate-to-category-mapping-page" id="step-2-navigate-to-category-mapping-page"></a>

* Follow the **Products and Catalogs > Catalogs > Category Tree** or **Sales Channels > Category Management** steps and click on the **Auto Assign Rules** button to reach the **Category Mapping** page.
* *Category Mapping* is used for automatically assigning the category node to products for related Sales Channel.
  * *Category Mapping* action can be taken for both marketplaces and web-type of sales channels. The path may change as above depending on the sales channel where the action will be taken.

<figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FsevxxHMvAkD1EPEuLYW1%2Fimage.png?alt=media&#x26;token=2501004b-d2e4-4c6c-bd2f-0aa4a05657d5" alt=""><figcaption></figcaption></figure>

*Auto Assign Rules* button, following **Products and Catalogs > Catalogs > Category Tree** steps

<figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FOJjRE1QZoWnA8IGMScXf%2Fimage.png?alt=media&#x26;token=8acf5804-0847-401e-9d0c-a661b2f393ce" alt=""><figcaption></figcaption></figure>

*Auto Assign Rules* button, following **Sales Channels > Category Management** steps

<figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2Fa69Q1rDUx9yTdEcMNURW%2Fimage.png?alt=media&#x26;token=84bd3155-3586-4075-a8eb-98b820bb4404" alt=""><figcaption></figcaption></figure>

## <mark style="color:red;">Step 3: View Category Mapping Page​</mark> <a href="#step-3-view-category-mapping-page" id="step-3-view-category-mapping-page"></a>

* By clicking on the **Auto Assign Rules**, the **Category Mapping** page can be seen.
* Category Mapping page includes two different tabs,
  * *Category to Category* tab
    * In which different categories from different catalogs can be mapped directly.
  * *Rules (Product to Category)* tab
    * In which rule-based product to category mapping can be made.<br>

      <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FO99SoXStsFAJyCJ6Iqg0%2Fimage.png?alt=media&#x26;token=5fa10dca-7b8c-4e3f-818b-cac94193bddd" alt=""><figcaption></figcaption></figure>
* Users can;
  * view the *Source Category Tree* for the Category to Category mapping,
  * view the *Source Category Nodes* and map these nodes to the selected Sales Channel’s Category Nodes (*Target Category Nodes*)
  * make Category to Category mapping ignored
  * filter Category to Category Mappings by *Excluding Ignored Categories* or *Showing Categories That Need Mapping,*
  * view the schema of the *Target Category Nodes* on the *Category to Category* tab.<br>

    <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FlJIjMx9AP7W3OzQfddxU%2Fimage.png?alt=media&#x26;token=b1d3ea2a-d239-46b9-a2d6-2548ed059dac" alt=""><figcaption></figcaption></figure>
* Users also can;
  * view, create, update and delete the Category Mapping Rules,
  * filter Rules with respect to the *Status* and *Target Category Name* on the *Rules (Product to Category*) tab.<br>

    <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FJ79wUJerROfH8bL2J0vf%2Fimage.png?alt=media&#x26;token=05f22e74-d8d5-4df7-877b-4142e1ac3d55" alt=""><figcaption></figcaption></figure>

## <mark style="color:red;">Step 4: Add/Update “Category to Category” Mapping​</mark> <a href="#step-4-addupdate-category-to-category-mapping" id="step-4-addupdate-category-to-category-mapping"></a>

* After selecting a *Source Category Tree* and clicking on the **Apply** button, the selected Category Tree can be seen on the **Category to Category** tab.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FYzCyI7UUvEZDuokghxaG%2Fimage.png?alt=media&#x26;token=85617108-1914-4707-a5ce-9950131b3cd7" alt=""><figcaption></figcaption></figure>
* Listed source categories can be mapped
  * by clicking on the dropdown and selecting the target category nodes, or
  * by clicking on the schema icon and selecting the target category nodes.
* Mapped categories can be edited by the same steps above.
* Mapped categories can be deleted by clicking on the *Delete Icon.*

For products added to the catalog, category assignments are automatically made to the target category node with respect to the relevant *Category to Category Mapping*.

<figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FwUyvenWm7T4AQFXxGWn7%2Fimage.png?alt=media&#x26;token=4eccb8c7-7afd-4815-8961-6d5bc07c2676" alt=""><figcaption></figcaption></figure>

*Creating / Updating “Category to Category Mapping” by clicking on the dropdown and selecting the target category nodes*

<figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2Fmx0MFELNb1ssdWOVsPI7%2Fimage.png?alt=media&#x26;token=b28a0143-9a6d-43b5-9144-4855ef87e705" alt=""><figcaption></figcaption></figure>

*Creating / Updating “Category to Category Mapping” by clicking on the schema icon and selecting the target category nodes.*

{% hint style="info" %}
Please note that the “*adding products to the catalog*” operation should be done after the *Category to Category Mapping* is completed.
{% endhint %}

{% hint style="info" %}
Please note that only the “leaf” source and target categories can be mapped to each other (leaf categories: sub-category nodes that do not have any child category nodes).
{% endhint %}

## <mark style="color:red;">Step 5: Add/Update Category Mapping Rule​</mark> <a href="#step-5-addupdate-category-mapping-rule" id="step-5-addupdate-category-mapping-rule"></a>

* Clicking on the **Rules** button on the Category Mapping page, **Category Mapping Rules** can be seen as a list.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2FPJTmvYKI1asUAfKevGXB%2Fimage.png?alt=media&#x26;token=313b091d-1704-4cf7-af27-865cdd1a40e2" alt=""><figcaption></figcaption></figure>
* By clicking on the **+ New Category Mapping Rule** button, or clicking on the **Edit** icon on the listed category mapping rules, **Add / Edit Category Mapping Rule** **Form** can be opened.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2F88Q6ZNkBHAqQUKssYWPt%2Fimage.png?alt=media&#x26;token=80a703cd-7d7e-4016-bb14-5cbc15717925" alt=""><figcaption></figcaption></figure>
* Users can;
  * select a *Target Category Name*,
  * give rule(s) to the *Target Category Node* by selecting one or multiple *Attribute Name, Condition Processor* and *Attribute Value* for the *Category Mapping Rule*.

For products added to the catalog, category assignments are automatically made to the target category node with respect to the relevant *Category Mapping Rule*.

<figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2F8PihUUwBniX84EN4MzYO%2Fimage.png?alt=media&#x26;token=fb56f15f-45fb-4335-ae05-68b0df09cf88" alt=""><figcaption></figcaption></figure>

*One Rule can include multiple Attribute Name, Condition, Attribute Value groups*

{% hint style="info" %}
The “*adding products to the catalog*” operation should be done after the *Category Mapping Rule* is created.
{% endhint %}

{% hint style="info" %}
Only the “leaf” source and target categories can be mapped to each other (leaf categories: sub-category nodes that do not have any child category nodes).
{% endhint %}

{% hint style="info" %}
*Category to Category Mapping* and *Category Mapping Rules* can be formed for the same *Target Category Node*. In this case, the product assignment to the Target Category Node, provided that the product has been added to the catalog, is automatically made with respect to both mapping rules.
{% endhint %}

## <mark style="color:red;">Step 6: Delete Category Mapping Rule​</mark> <a href="#step-6-delete-category-mapping-rule" id="step-6-delete-category-mapping-rule"></a>

* Listed Category Mapping Rules can be deleted by selecting the “Delete Selected Items” option and clicking on the **Apply** button.<br>

  <figure><img src="https://3333414532-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbwGN7KwvYi0iLbjtnXz%2Fuploads%2Fa0e2a2KOSW3Japl5Gcny%2Fimage.png?alt=media&#x26;token=ab085088-12bf-435e-8810-b72d10906125" 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.akinon.com/tutorials/omnitron/sales-channels/category-management/how-to-automatically-assign-category-mapping-rules-in-omnitron.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.
