> 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/rule-action-replace-value.md).

# Rule action: Replace value

Used for: replacing a value in a certain field with another value. It can also be used for deleting a value (replace by nothing).

Used in: "THEN"-statements and "ELSE"-statements.

With the "replace value" rule you can look for a certain value in a particular field and replace it with another value of your choice. If you don't enter a replacement value, you replace the value you search for with nothing (=deleting the value). Also, if the value you want to replace is not found in the field you select, the rule will do nothing, so it will not randomly add the replacement value in that case.

You could, for example, use the "replace value" rule to change your Dutch URLs to German URLs. This example is shown in the screenshot below.

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/qEUFZFW5di5vXYXh1b5J/channable_rules_what%20does%20each%20rule%20do%20rule%20replace%20value%200.png" alt=""><figcaption></figcaption></figure>

Besides searching for a value and then replacing it with another value, the "replace value" rule can also be used to delete certain values from a field. In this case you just leave the "replace with" field (".de" in the example above) empty. The screenshot below shows an example in which the brand is deleted from the title of every item.

<figure><img src="https://content.gitbook.com/content/u8whzIfip72Kvn3M1bsc/blobs/7pZjBscaDSOJxdrOTbSU/channable_rules_what%20does%20each%20rule%20do%20rule%20replace%20value%201.png" alt=""><figcaption></figcaption></figure>


---

# 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/rule-action-replace-value.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.
