> For the complete documentation index, see [llms.txt](https://doc.nextbot.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.nextbot.ru/functional/integrations/bitrix24/skrytye-komandy-vnutri-chata-bitrix24.md).

# Скрытые команды внутри чата Bitrix24

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FLtgC8ntUCBnrLzwwV3Rx%2Fimage.png?alt=media&amp;token=1edc6b1a-92bf-4d72-897c-33727b53837c" alt=""><figcaption></figcaption></figure>

В случае, если вы используете тип подключения ["Коммуникация через Bitrix24"](/functional/integrations/bitrix24/podklyuchenie/podklyuchenie-nextbot-kak-chatbot.md), вам доступны три "скрытые" команды в рамках общения внутри чата Открытой линии.\
Список доступных команд можно узнать, нажав на кнопку снизу чата "Открыть список доступных команд".\
Чтобы воспрользоваться ими, просто напишите команду (вместе со знаком косой черты или слэша "/") в чат:

{% hint style="warning" %}
Не забудьте включить режим "скрытой от клиента перески" (перечёркнутый глаз снизу), иначе ваша команда будет видна не только ИИ-агенту, но и клиенту.
{% endhint %}

* /resume — команда для снятия агента с паузы
* /pause — команда для постановки агента на паузу
* /context — команда, дающая ИИ-агенту дополнительный контекст или инструкцию от менеджера

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FADuCJlVYi8BAe9aAe0F0%2Fimage.png?alt=media&amp;token=6eee5012-956e-4609-a04b-19a1da077227" alt=""><figcaption><p>Пример использования команды /context: в нашем случае ИИ-агент будет знать имя и адрес доставки, не задавая клиенту лишних вопросов</p></figcaption></figure>

### Роботы Битрикс для использования в рамках команды /context

Хорошим примером является использование роботов Bitrix24 для отправки контекста ИИ-агенту.\
Например, можно настроить робота так, чтобы он автоматически отправлял в чат контекст, содержащий всю информацию о клиенте (см. скриншот). Это позволит ИИ-агенту не задавать лишние вопросы и не беспокоить покупателя.

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FGXNnMYcovwJL9ltbFkXF%2Fimage.png?alt=media&amp;token=2733a65c-e9fe-4974-974e-47b8adb3ecbd" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Не забудьте правильно настроить чат-бота: он должен отключаться *только после завершения диалога*, а не при подключении менеджера к чату.\
На скриншоте ниже вы можете увидеть соответствующую опцию.
{% endhint %}

<figure><img src="https://2593311972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fef2EBU68XAlye1NtG8DF%2Fuploads%2FgQ5IfI1RLyHAPSOftCUb%2Fimage.png?alt=media&amp;token=4b9b33f1-9165-475e-8d6b-5a4064b3de46" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://doc.nextbot.ru/functional/integrations/bitrix24/skrytye-komandy-vnutri-chata-bitrix24.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
