# Условия

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

Условия - важный элемент работы бота. Благодаря условиям вы можете разветвить логику выполнения бота. По условиям бот находит подходящий ответ или цепочку для запуска.

{% content-ref url="/pages/lk17rWVyxFrnQcH4JxmY" %}
[Условие](/scenarii/usloviya/uslovie.md)
{% endcontent-ref %}

{% content-ref url="/pages/qRqNSxx63celRGEd6Zro" %}
[Условие с вариантами](/scenarii/usloviya/uslovie-s-variantami.md)
{% endcontent-ref %}

{% content-ref url="/pages/JWT2H96SGAYDyfXUYrAx" %}
[Проверка подписки](/scenarii/usloviya/proverka-podpiski.md)
{% endcontent-ref %}


---

# 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/usloviya.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.
