# Rules in Channable

In Channable, you can use rules[^1] to edit and enrich your [product data](#user-content-fn-2)[^2] to meet the requirements of your chosen channel.&#x20;

### What is a rule? <a href="#h_01jkgdxp9jndv9484sqh0pw45k" id="h_01jkgdxp9jndv9484sqh0pw45k"></a>

Rules follow a basic logic to help you to automatically manage and modify your items: “IF the items meet X criteria, THEN do Y”.

Perhaps you have some items in your product data that are out of stock. You can use a rule to check for these items and exclude them so that they are not listed on the channel.&#x20;

Or, you want to list your products on Google Shopping, but they enforce a maximum character length for product titles, and your titles are too long. You can use a rule to adjust all your product titles to meet the exact character limit.&#x20;

![](https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2Fjc70xFgOlEsI68muVQD1%2FRules-condition-action-focus.png?alt=media\&token=57768ed6-f127-4065-b987-4e12479f2bfa)

### Conditions <a href="#h_01jkge9a2wcsvrtxvs606by95r" id="h_01jkge9a2wcsvrtxvs606by95r"></a>

Conditions are the ‘**IF**’ part of a rule. Use conditions to filter which items you want your rule to apply to.

[Learn more about conditions](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-conditions-if-in-rules)

| **Condition type**                                                                                                                        | **Description**                                                                                                               |
| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- |
| [All](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-conditions-if-in-rules#all)                                 | Use **All** to perform an action on every item.                                                                               |
| [Contains any of](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-conditions-if-in-rules#contains-any-of)         | Use **Contains any of** to search for values in other fields.                                                                 |
| [Equals any of](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-conditions-if-in-rules#equals-any-of)             | Use **Equals any of** to search for exact matches on values in other fields.                                                  |
| [Is before](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-conditions-if-in-rules#is-before)                     | Use **Is before** to perform an action when the current\_date is before a specified date and time.                            |
| [Is empty](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-conditions-if-in-rules#is-empty)                       | Use **Is empty** to perform an action when a field contains no data.                                                          |
| [Is less or equal to](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-conditions-if-in-rules#is-less-or-equal-to) | Use **Is less or equal to** to perform an action when a field is less or equal to the value of another field, or a set value. |
| [Is less than](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-conditions-if-in-rules#is-less-or-equal-to)        | Use **Is less than** to perform an action when a field is less than the value of another field, or a set value.               |
| [Is not valid](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-conditions-if-in-rules#is-not-valid)               | Use **Is not valid** to perform an action when the gtin field contains invalid data.                                          |
| [Is on or after](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-conditions-if-in-rules#is-on-or-after)           | Use **Is on or after** to perform an action when the current\_date is on or after a specified date and time.                  |

### Actions <a href="#h_01jnech2zz22txj61b9vtdgkva" id="h_01jnech2zz22txj61b9vtdgkva"></a>

Actions are the ‘**THEN**’ part of a rule. Use actions to define what you want your rule to do to the items you have filtered.

[Learn more about actions](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules)

| **Action type**                                                                                                                                                                                 | **Description**                                                                                                  |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| [Build item group](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-build-item-group)                       | Use **Build item group** to store values from item fields in a list.                                             |
| [Calculate](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-calculate)                                     | Use **Calculate** to add, subtract, multiply, or divide fields or values.                                        |
| [Calculate formula](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-actions-then-in-rules#calculate-formula)                                                            | Use **Calculate formula** to make complex calculations using numbers and project field values.                   |
| [Copy value](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-copy-value)                                   | Use **Copy value** to populate a field with data from another field.                                             |
| [Remove duplicate items](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-remove-duplicate-items)           | Use **Deduplicate list** to remove duplicate items.                                                              |
| [Remove duplicates from list](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-remove-duplicates-from-list) | Use **Deduplicate list** to remove duplicate items from a list.                                                  |
| [Exclude](https://helpcenter.channable.com/manage-improve-product-data/how-to-use-actions-then-in-rules#exclude)                                                                                | Use **Exclude** to remove items that meet the specified conditions.                                              |
| [Modify text](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-modify-text)                                 | Use **Modify text** to make changes to the styling or formatting of a text-based field. Including removing HTML. |
| [Reformat number](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-reformat-number)                         | Use **Reformat number** to change how decimal separators and thousands separators are formatted.                 |
| [Replace value](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-replace-value)                             | Use **Replace value** to replace a value in a field with a value of your choice.                                 |
| [Search for value](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-search-for-value)                       | Use **Search for value** to extract a value from a field and add it to another field.                            |
| [Set to value](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-set-to-value)                               | Use **Set to value** to populate a field with a fixed value.                                                     |
| [Split items](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/rule-action-split-items)                                 | Use **Split items** to split up items based on a field that is a list.                                           |

### Using rules <a href="#h_01jppsfsza1x9q3vbhap4srep8" id="h_01jppsfsza1x9q3vbhap4srep8"></a>

* [Create a rule](https://helpcenter.channable.com/manage-improve-product-data/using-rules#create-a-rule)
* [Order of rules](https://helpcenter.channable.com/manage-improve-product-data/using-rules#order-of-rules)
* [Check the effects of a rule](https://helpcenter.channable.com/manage-improve-product-data/using-rules#check-the-effects-of-a-rule)
* [Copy a rule](https://helpcenter.channable.com/manage-improve-product-data/using-rules#copy-a-rule)
* [Add labels to rules](https://helpcenter.channable.com/manage-improve-product-data/using-rules#add-a-label-to-a-rule)
* [Pause a rule](https://helpcenter.channable.com/hc/en-us/articles/360012773460#h_01JNGSTBHZ2HB6GCP23TQSKN9Z)
* [Delete a rule](https://helpcenter.channable.com/manage-improve-product-data/using-rules#delete-a-rule)

### Rule templates <a href="#h_01jppsfszbatx8fs3frcw23w12" id="h_01jppsfszbatx8fs3frcw23w12"></a>

We have list of [rule templates](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/rule-templates), based on commonly used rules, to help you get started quickly.

[^1]: A set of instructions in Channable that automates changes to your product data using an IF–THEN structure

[^2]: All the information associated with a product (e.g. characteristics, attributes, details)


---

# 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/rules-in-channable.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.
