> For the complete documentation index, see [llms.txt](https://helpcenter.channable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/rules-in-channable.md). Agents can also search and read this documentation through its [MCP server](https://helpcenter.channable.com/~gitbook/mcp).

# How rules work

Use conditions and actions to automate changes to your product data.

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.

{% columns %}
{% column %}
{% hint style="info" icon="lightbulb" %}

#### Create a rule or start with a template

You can [create rules yourself](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/create-and-manage-rules.md), or start with one of our [rule templates](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/rule-templates.md).
{% endhint %}
{% endcolumn %}

{% column %}
{% hint style="info" %}

#### Choose where your rules run

Use [import rules](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/rules-in-channable/import-rules-in-channable.md) after project import, [master rule groups](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/rules-in-channable/create-master-rule-groups.md) for shared export changes, and [channel rules](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/rules-in-channable/channel-rules.md) for one channel’s requirements.
{% endhint %}
{% endcolumn %}
{% endcolumns %}

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

![](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)

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

* The 'IF' part of a rule is known as a '[condition](#h_01jkge9a2wcsvrtxvs606by95r)'.
* The 'THEN' part of a rule is known as an '[action](#h_01jnech2zz22txj61b9vtdgkva)'.

{% hint style="info" %}

#### Examples of rule logic

**Mark out-of-stock items:** Add an out-of-stock message to titles when items have no stock:

* IF value(s) in `stock` **`exactly match`** `0`
* THEN **`Add text`** `- Out of stock` to the end of `title`

**Shorten product titles:** Limit every product title to the channel's character limit:

* **`For all items`**
* THEN **`Trim text`** of `title` limit to `150` characters and `trim directly`
  {% endhint %}

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

Most conditions are the ‘**IF**’ part of a rule. Use them to filter which items your rule applies to.

**For all items** is the exception. Use it without IF when an action applies to every item.

For every available condition and use case, see the following page:

{% content-ref url="/spaces/u8whzIfip72Kvn3M1bsc/pages/2a5684186dfff550c234ba350e3cb6f73933be0d" %}
[Conditions](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-conditions-if-in-rules.md)
{% endcontent-ref %}

### 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.

For every available action and use case, see the following page:

{% content-ref url="/spaces/u8whzIfip72Kvn3M1bsc/pages/1b1f7bfaf5c251536c7ea069dc4aa6ce98c71146" %}
[Actions](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules.md)
{% endcontent-ref %}

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

<table data-view="cards"><thead><tr><th>Task</th><th>Description</th><th data-card-target data-type="content-ref">Guide</th></tr></thead><tbody><tr><td>Create a rule</td><td>Build a rule with conditions and actions.</td><td><a href="https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/create-and-manage-rules.md">Create and manage rules</a></td></tr><tr><td>Set the order of rules</td><td>Choose which rule runs first when several rules apply.</td><td><a href="https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/create-and-manage-rules.md">Create and manage rules</a></td></tr><tr><td>Check the effects of a rule</td><td>Review which items a rule changes before you continue.</td><td><a href="https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/check-rule-results-and-exclude-items.md">Check rule results and exclude items</a></td></tr><tr><td>Copy a rule</td><td>Reuse a rule as the starting point for a new rule.</td><td><a href="https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/create-and-manage-rules.md">Create and manage rules</a></td></tr><tr><td>Add labels to rules</td><td>Organize rules by adding labels.</td><td><a href="https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/create-and-manage-rules.md">Create and manage rules</a></td></tr><tr><td>Pause a rule</td><td>Temporarily stop a rule from running.</td><td><a href="https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/create-and-manage-rules.md">Create and manage rules</a></td></tr><tr><td>Delete a rule</td><td>Permanently remove a rule you no longer need.</td><td><a href="https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/create-and-manage-rules.md">Create and manage rules</a></td></tr><tr><td>Rule templates</td><td>Start with a template for a commonly used rule.</td><td><a href="https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/using-rules/rule-templates.md">Rule templates</a></td></tr></tbody></table>

[^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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/rules-in-channable.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
