# Oktell: Общие сведения для подключения

Для подключения Oktell используется подключение через Qolio API. Вы можете прочитать, как создать такую интеграцию со стороны Qolio в следующей статье:

После этого следует настроить Oktell таким образом, чтобы он присылал информацию о звонках в Qolio.

**Одним из способов подключения можно выбрать компонент Oktell под названием Bpium.**

{% embed url="<https://docs.bpium.ru/integration/cases/telephony/oktell/component>" %}

Bpium располагает возможностью настройки Вебхуков, которые будут сообщать о событиях коммуникации Qolio API. Подробнее про этот механизм можно прочитать по ссылке

{% embed url="<https://docs.bpium.ru/integration/data/webhooks>" %}

Вы можете использовать следующий пример для создания конфигурации в Bpium (но вполне возможно вам понадобится дополнительная настройка)

{% file src="/files/bCOdDFy4ZEsibV4NfYNf" %}

Дополнительные компоненты, которые могут пригодиться:

{% file src="/files/mcMtqGHY42DanYTbFQbZ" %}

{% file src="/files/2RuRHgKchdfjnpkD6UdR" %}

Пример JSON запроса в компоненте:

```
// {
  "started_at": "'+[started_at]+'",
  "operator_id": "'+[operator_id]+'",
  "client_id": "'+[client_id]+'",
  "direction": "'+[direction]+'",
  "duration": '+[duration]+',
  "phone_number_source": "'+[phone_number_source]+'",
  "phone_number_target": "'+[phone_number_targe]+'",
  "audio_source_url": "'+[audio_source_url]+'"
}
```

Так же для получения идеи о настройке можете рассмотреть пример, приведенный в документации Oktell <http://wiki.oktell.ru/Обработка_webhooks_Bpium_в_Oktell>


---

# 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://wiki.qolio.ru/qolio-or-baza-znanii/integracii/oktell-obshie-svedeniya-dlya-podklyucheniya.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.
