# Script events

{% hint style="info" %}
**An event** is an external influence that the bot can respond to. For example, the receipt of a message from a subscriber.&#x20;
{% endhint %}

The bot always starts the script on some of the events. And chooses exactly the event that fits best. You can read more about this in [this article.](https://app.gitbook.com/o/-M0DMiuC0q5onO-ID_le/s/uRfd5lEYYH6D50QjzeAX/~/changes/996w3IhouLXkvHdJdNpB/scripts/basics/how-the-script-is-chosen)

{% content-ref url="/pages/aNLbFPznLCk2ZdUj9B0H" %}
[Message from user](/scripts/script-events/message-from-user.md)
{% endcontent-ref %}

{% content-ref url="/pages/37ZECzlfYaapDk1jzOny" %}
[No appropriate script](/scripts/script-events/no-appropriate-script.md)
{% endcontent-ref %}

{% content-ref url="/pages/wWtw4c8qvPDX2Jy9bjGn" %}
[First message](/scripts/script-events/first-message.md)
{% endcontent-ref %}

{% content-ref url="/pages/1RUUkv4EBCznm4UQKIsN" %}
[VK Events](/scripts/script-events/vk-events.md)
{% endcontent-ref %}

{% content-ref url="/pages/DKOcK4CReXU2Z3UeKPZO" %}
[Webhook](/scripts/script-events/webhook.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/script-events.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.
