# Conditions

{% hint style="info" %}
In Smartbot Pro, you can configure under what conditions this or that script chain will work. You can check what message the user wrote, whether he is in a certain list, what are the values of his variables.&#x20;
{% endhint %}

Conditions are an important element of the bot's work. With conditions, you can branch out the bot's execution logic. According to the conditions, the bot finds a suitable answer or chain to run.

{% content-ref url="/pages/lk17rWVyxFrnQcH4JxmY" %}
[Condition](/scripts/conditions/condition.md)
{% endcontent-ref %}

{% content-ref url="/pages/qRqNSxx63celRGEd6Zro" %}
[Condition with options](/scripts/conditions/condition-with-options.md)
{% endcontent-ref %}

{% content-ref url="/pages/JWT2H96SGAYDyfXUYrAx" %}
[Conditions of VKontakte](/scripts/conditions/conditions-of-vkontakte.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.io/scripts/conditions.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.
