# Update Custom Variable

**Introduction**&#x20;

This step updates the value of an existing custom variable within an automation.

**Description**&#x20;

Allows for modifying the content of a custom variable based on its predefined schema. This step is essential for altering variable values as an automation progresses.

**Configuration**

* **Variable**: Choose the custom variable you want to update. This must be an existing custom variable within the automation. This is a required field.
* **Value**: Input the new value for the custom variable. This value must conform to the variable's schema, ensuring consistency and validity of the data.

**Usage**&#x20;

Useful for dynamically changing data stored in custom variables, such as updating counters or modifying collected information.


---

# 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://docs.flexy.bot/modules/variables/steps/update-custom-variable.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.
