# Как настроить интеграцию с Битрикс24

### 1. Создание ключа доступа

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

Выберите права доступа: **CRM**, **Пользователи** и нажмите **Сохранить**.

![Права доступа в Битрикс24](/files/-Lr9BT1TuJb5FyJb3cAM)

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

![Ключ доступа и ID приложения в Битрикс24](/files/-Lr9CpoHosafghizkj-t)

**На рисунке показаны:**

1. Ключ
2. ID приложения

{% hint style="info" %}
<https://watbot.bitrix24.ru/rest/**10**/qwertyqwerty/profile/>, где **10** - это ID вашего приложения.
{% endhint %}

### 2. Настройки интеграции

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

![Интерфейс интеграции с Битрикс24](/files/-Lr99vMTuyHyVUTVCUkP)

#### Поля для заполнения:

1. **Домен** - адрес вашего Битрикс24
2. **ID приложения** - получили на первом шаге
3. **Ключ** - получили на первом шаге<br>

Нажмите **Сохранить**, и перейдите на вкладку **Статус,** нажмите иконку обновления статуса

![](/files/-Lr9H7VCBP0Fm16JdR3_)

{% hint style="warning" %}
Для работы интеграции статус должен быть: **Авторизован**
{% endhint %}


---

# 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/integracii/bitrix24/kak-sdelat-integraciyu-s-bitrix24.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.
