# Подключение к Watbot

1. Откройте сценарий вашего чат-бота, затем нажмите "Подключить мессенджер" или "Управлять мессенджерами" (если у вас уже подключен какой-либо мессенджер).

<figure><img src="/files/IwFfS9G51NwCXxImsTEW" alt=""><figcaption><p>Сценарий чат-бота</p></figcaption></figure>

2. Выберите мессенджер Max

<figure><img src="/files/XRCtWywvVgPJT9c2Mxmu" alt=""><figcaption><p>Выбор мессенждера для чат-бота</p></figcaption></figure>

3. Вставьте токен, который вы получили в [@MasterBot](https://max.ru/MasterBot) ([инструкция](/chat-boty/kanaly/max/registraciya-bota-v-max.md)).

<figure><img src="/files/DNpEC7eT24nH6pVGWLvT" alt=""><figcaption><p>Подключение мессенджера Max</p></figcaption></figure>

4. Перейдите по ссылке в вашего чат-бота Max.

<figure><img src="/files/2ovVcr2E6gW1kstdxvn9" alt=""><figcaption></figcaption></figure>


---

# 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://help.watbot.ru/chat-boty/kanaly/max/podklyuchenie-k-watbot.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.
