> 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/how-to-use-actions-then-in-rules.md). Agents can also search and read this documentation through its [MCP server](https://helpcenter.channable.com/~gitbook/mcp).

# Actions

Choose the changes a rule makes to selected items.

Learn [how actions work](#how-actions-work), combine actions with `AND` or `ELSE`, and view [all available actions](#list-of-available-actions).

## How actions work

Actions define what your rule does to the items selected by its [Conditions](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-conditions-if-in-rules.md). For example, exclude items from your export channel when they have no title:

* IF `title` is empty
* THEN **`Exclude item(s)`**

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/so4u61H0cRquiMo4afCh/25540322321554" alt=""><figcaption></figcaption></figure>

### Extend an action with ‘AND’

You can extend actions using AND to make multiple changes to the items that you have filtered.

Example: Change the values in the `condition` and `brand` fields

To change both fields for every item, set up these actions:

* **`For all items`**
* THEN **`Set value`** of `condition` to `new`
* AND **`Set value`** of `brand` to `Channable`

### Extend an action with ‘ELSE’

You can extend actions using ELSE to make changes to items not filtered by your IF condition.

Example: Free shipping for items over $50

To filter items that have a price of more than 50 and set their shipping price to 0:

* IF `price` is greater than `50`
* THEN **`Set value`** of `shipping_price` to `0`

To set a shipping cost for all items below $50, use ELSE to set up a follow-up action:

* ELSE **`Set value`** of `shipping_price` to `3.99`

### List of available actions

| Action                                                    | What it does                                                                      | Action type                  | Learn more                                                                                                                                                                                                                                      |
| --------------------------------------------------------- | --------------------------------------------------------------------------------- | ---------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **`Exclude item(s)`**                                     | Excludes selected items from your channel export.                                 | Item action                  | [Exclude items](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/item-actions/exclude-items.md)                                                                         |
| **`Group items together`**                                | Combines related items into one item and stores selected values as lists.         | Item action                  | [Group items together](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/item-actions/rule-action-group-items.md)                                                        |
| **`Split list into items`**                               | Creates a separate item for each value in a list field.                           | Item action                  | [Split list into items](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/item-actions/rule-action-split-items.md)                                                       |
| **`Remove duplicate products`**                           | Removes duplicate items, or keeps the highest or lowest value.                    | Item action                  | [Remove duplicate products](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/item-actions/rule-action-remove-duplicate-items.md)                                        |
| **`Build item group`**                                    | Creates lists of field values for items with the same group identifier.           | Item action                  | [Build item groups](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/item-actions/rule-action-build-item-group.md)                                                      |
| **`Set value`**                                           | Sets a field to a fixed value.                                                    | Text action                  | [Set value of a field](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-set-value.md)                                                          |
| **`Add text`**                                            | Adds fixed text before or after a field value.                                    | Text action                  | [Add text to a field](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-append-value.md)                                                        |
| **`Copy value`**                                          | Copies a value from one field to another field.                                   | Text action                  | [Copy value from one field to another](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-copy-value.md)                                         |
| **`Build value`**                                         | Combines fixed text and values from other fields.                                 | Text action                  | [Rule action: Build value](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-build-value.md)                                                    |
| **`Search for value`**                                    | Finds specified values in one field and stores a matching value in another field. | Text action                  | [Search for value](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-search-for-value.md)                                                       |
| **`Replace value`**                                       | Replaces specified text or numbers within a field.                                | Text action                  | [Replace a value](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-replace-value.md)                                                           |
| **`Search for and replace with supported value`**         | Replaces a value in the same field with a supported value.                        | Text action                  | [Search for and replace with supported value](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-search-for-and-replace-with-supported-value.md) |
| **`Search for and replace values with supported values`** | Replaces several field values with supported values.                              | Text action                  | [Search for and replace values with supported values](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-lookup-and-replace-value.md)            |
| **`Split text`**                                          | Splits text and keeps the selected part.                                          | Text action                  | [Split text and keep a selected part](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-split-text.md)                                          |
| **`Trim text`**                                           | Removes a selected number of characters from text.                                | Text action                  | [Trim text to a character limit](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-maximum-length.md)                                           |
| **`Modify text`**                                         | Changes text formatting, including capitalization and whitespace.                 | Text action                  | [Modify text](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/text-actions/rule-action-modify-text.md)                                                                 |
| **`Add Google tracking`**                                 | Adds Google tracking parameters to URLs.                                          | Tracking and category action | [Add Google tracking](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/tracking-and-category-actions/rule-action-add-utm-google-tracking.md)                            |
| **`Set category`**                                        | Sets categories for the category step.                                            | Tracking and category action | [Set channel category](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/tracking-and-category-actions/set-channel-category.md)                                          |
| **`Round number`**                                        | Rounds numeric values to a selected increment.                                    | Math action                  | [Round prices and numeric values](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/math-actions/rule-action-round-number.md)                                            |
| **`Reformat number`**                                     | Changes decimal places and number separators.                                     | Math action                  | [Reformat numbers](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/math-actions/rule-action-reformat-number.md)                                                        |
| **`Calculate formula`**                                   | Calculates a value with a custom formula.                                         | Math action                  | [Calculate formula](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/math-actions/calculate-formula.md)                                                                 |
| **`Calculate`**                                           | Adds, subtracts, multiplies, or divides numeric values.                           | Math action                  | [Calculate values](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/math-actions/rule-action-calculate.md)                                                              |
| **`Calculate date interval`**                             | Calculates the interval between dates.                                            | Math action                  | [Calculate date interval](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/math-actions/calculate-date-interval.md)                                                     |
| **`Calculate date`**                                      | Calculates a date value.                                                          | Math action                  | [Calculate date](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/math-actions/calculate-date.md)                                                                       |
| **`Calculate sum`**                                       | Adds all numeric values in a list.                                                | Math action                  | [Calculate sum of values](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/math-actions/rule-action-calculate-sum.md)                                                   |
| **`Calculate length`**                                    | Counts the characters in a field value.                                           | Math action                  | [Calculate length of a value](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/math-actions/rule-action-calculate-length.md)                                            |
| **`Calculate list length`**                               | Counts the values in a list field.                                                | Math action                  | [Calculate length of a list field](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/math-actions/rule-action-calculate-list-length.md)                                  |
| **`Calculate item group`**                                | Counts or calculates values across items that share a group identifier.           | Math action                  | [Rule action: Item group rules](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/math-actions/rule-action-item-group-rules.md)                                          |
| **`Sort list`**                                           | Sorts text or numeric values in a list.                                           | List action                  | [Sort values in a list](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/list-actions/rule-action-sort-list.md)                                                         |
| **`Select list range`**                                   | Selects a range of values from a list.                                            | List action                  | [Select list range](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/list-actions/rule-action-slice-list.md)                                                            |
| **`Split text to list`**                                  | Turns text separated by a character into a list.                                  | List action                  | [Split text into list](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/list-actions/rule-action-split-text-to-list.md)                                                 |
| **`Join list to text`**                                   | Combines list values into one text value.                                         | List action                  | [Join list to text](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/list-actions/rule-action-join-list-to-text.md)                                                     |
| **`Remove duplicates from list`**                         | Removes repeated values from a list.                                              | List action                  | [Remove duplicates from list](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/list-actions/rule-action-remove-duplicates-from-list.md)                                 |
| **`Delete value from list`**                              | Removes selected values from a list.                                              | List action                  | [Delete value from list](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/list-actions/rule-action-search-in-list.md)                                                   |
| **`Delete other values from list`**                       | Keeps selected list values and removes the others.                                | List action                  | [Delete other values from a list](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/list-actions/delete-other-values-from-a-list.md)                                     |
| **`Count occurrences in list`**                           | Counts how often a value occurs in a list.                                        | List action                  | [Count occurrences in a list](https://helpcenter.channable.com/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-actions-then-in-rules/list-actions/count-occurrences-in-a-list.md)                                             |


---

# 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/how-to-use-actions-then-in-rules.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.
