> 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="/files/f2f6b9478738de7e53b39a723630a9167ba65bf6" 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="/files/668516a5f047feb1cfd9a2f286ae00ffe300c74c" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
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=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
