> For the complete documentation index, see [llms.txt](https://help.watbot.ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.watbot.ru/chat-boty/integracii/bitrix24/dvukhstoronnyaya-svyaz-s-bitrix24.md).

# Двухсторонняя связь с Битрикс24

{% hint style="info" %}
Данная инструкция предполагает, что вы уже настроили связь WatBot с Битрикс24, если нет, переходите по ссылке ниже.
{% endhint %}

{% content-ref url="/pages/-Lr98Z4jzGbvOd6z63B-" %}
[Как настроить интеграцию с Битрикс24](/chat-boty/integracii/bitrix24/kak-sdelat-integraciyu-s-bitrix24.md)
{% endcontent-ref %}

## Для чего это нужно?

На момент написания статьи возможно настроить Битрикс24 для передачи событий обновления сделок. Это позволяет нашей системе знать на каком этапе воронки находится сделка, а вы сможете настроить авторассылку на определенный этап сделки.

## Связь со сделками

### 1. Получение адреса обработчика

Откройте личный кабинет [WatBot](https://watbot.ru), перейдите в вашего бота в раздел **Настройки** > **Интеграции** > **Битрикс24**

Перейдите на вкладку **Двухсторонняя связь**

![](/files/-Lr9Mnvodzln2XhkCakQ)

1. Адрес обработчика - скопируйте его кликнув по кнопке и переходите к следующему шагу.
2. Код авторизации - получите на втором шаге

### 2. Настройка Битрикс24

Войдите в свой личный кабинет [Битрикс24](https://bitrix24.ru), затем перейдите в раздел **Приложения**, далее откройте вкладку **Вебхуки** и нажмите конпку **Добавить вебхук** > **Исходя вебхук**.

В адрес обработчика вставьте адрес полученный на первом шаге. Выберите тип события - **Обновления сделки** и нажмите **Сохранить**.

![](/files/-Lr9QHCG1okJrw0HUvnT)

1. Адрес обработчика
2. Тип события

#### В итоге должно получится что-то вроде этого:

![](/files/-Lr9Qw67h6BD3go1vN_y)

На рисунке изображен код авторизации, скопируйте его и переходите к следующему шагу

### 3. Настройка WatBot

Возвращайтесь в личный кабинет WatBot, вставьте код авторизации и нажмите **Сохранить**.

![](/files/-Lr9RwJkmd864uvtar9s)

### 4. Пример использования

{% content-ref url="/pages/-Lr9SakFF3\_ZhG8Leoks" %}
[Broken mention](broken://pages/-Lr9SakFF3_ZhG8Leoks)
{% endcontent-ref %}


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.watbot.ru/chat-boty/integracii/bitrix24/dvukhstoronnyaya-svyaz-s-bitrix24.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
