---
title: "Rule based settings"
url: https://docs.woolytech.com/en/articles/51-rule-based-settings
collection: "Getting started"
updated: 2026-10-29
language: en
---

# Rule based settings

Rule based settings are supported in most of the feed data fields.

For example a rule-based setting for the Google product category field can set the category to "Apparel & Accessories > Clothing > Shirts & Tops" if the product title includes the word "shirt", set it to "Apparel & Accessories > Clothing > Pants" if it includes the word "pants" and set it to "Apparel & Accessories > Clothing" for all other cases, can be setup like in the screenshot below:

![](https://staticfiles.gleap.io/helpcenter/65cecc47f9fbfb7f6ae1288e/20260325041347_5785.png)

In rule-based settings, **the criteria** are tested on the **base expression** from top to bottom and if a match is found, the corresponding **outcome** (the expression in the **then** clause) will be used to set the feed data (in this case the Google product category).

In the example above, Google product category is set to "Shirts & Tops" if the product title includes the word "shirt", if not then set to category "Pants" if the title includes "pants", or if none are matched, set to "Apparel & Accessories".

The base expression makes use of tokens to pull in the context data, and can even be a combination of them. In the screenshot, we use the Product title as the base expression, but it could be the product description or any token listed in the drop-down at the end of the field. The list of the context data that can be used in the base expression:

![](https://staticfiles.gleap.io/helpcenter/65cecc47f9fbfb7f6ae1288e/20260325041347_8457.png)
