# Set variable

The **Set Variable** action allows assigning values to variables, enabling dynamic behavior and logic control within the project.

<figure><img src="/files/QyYB9qBKRcEtwkWgsZTs" alt="" width="563"><figcaption></figcaption></figure>

**Settings**<br>

* **Variable** — Specify the variable whose value needs to be updated.
* **Value** — Specify the value to assign to the variable. This can be a static value or an expression.

Learn more about variables and expressions: [Variables & Expressions](/documentation/3d-configurator/variables-and-expressions.md)


---

# 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://help.vectary.com/documentation/3d-configurator/interactions/actions/set-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.
