> For the complete documentation index, see [llms.txt](https://docs.smartbotpro.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.smartbotpro.io/scripts/variables/user-variables.md).

# User variables

User variables are anything you can create and assign to your clients, for example:&#x20;

* %Bonuses% (counter replenished with each target action)&#x20;
* %Status% ("buyer", "interested", "regular customer")&#x20;
* %Test passed% (current user status with yes-no values)&#x20;

These variables are created by you depending on your needs.&#x20;

{% hint style="info" %}
You can use variables in conditions by branching script logic&#x20;
{% endhint %}

To create a variable, go to the section of the same name and click "Add Variable"

<figure><img src="/files/0SLV54bP05RAN7Ya7I7s" alt=""><figcaption></figcaption></figure>

Select the desired type of variable, enter the name and make sure that the access level (lower window) is "User variable"

<figure><img src="/files/tmzfiXKnAoc4Q2B5Ij6G" alt=""><figcaption></figcaption></figure>

You can find out [what types of variables are in Smartbot Pro here](https://app.gitbook.com/o/-M0DMiuC0q5onO-ID_le/s/uRfd5lEYYH6D50QjzeAX/~/changes/pA05wngT4WvDNVoE80bp/scripts/variables#vidy-peremennykh).

Now the created variable will be individual for each user of the bot.


---

# 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://docs.smartbotpro.io/scripts/variables/user-variables.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.
