# Пользовательские переменные

Пользовательские переменные - это всё то, что вы можете создать и присвоить вашим клиентам, например:

%Бонусы% (счетчик, пополняемый с каждым целевым действием)

%Статус% ("покупатель", "интересующийся", "постоянный клиент")

%Прошел тест% (текущий статус пользователя со значениями "да-нет")

Такие переменные создаются вами в зависимости от нужд.

{% hint style="info" %}
Вы можете использовать переменные в условиях, разветвляя логику сценария
{% endhint %}

Чтобы создать переменную, идем в одноименный раздел и нажимаем "Добавить переменную"

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

Выбираем нужный тип переменной, вписываем название и убеждаемся, что уровень доступа (нижнее окошко) - "Пользовательская переменная"

<figure><img src="/files/pxIeH1Z6bQRHccBbq3Sx" alt="" width="263"><figcaption></figcaption></figure>

Узнать [какие виды переменных есть в Smartbot Pro, можно здесь](/scenarii/peremennye.md#vidy-peremennykh)

Теперь созданная переменная будет индивидуальной у каждого пользователя бота.


---

# 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.smartbotpro.ru/scenarii/peremennye/polzovatelskie-peremennye.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.
