> For the complete documentation index, see [llms.txt](https://wiki.qolio.ru/qolio-or-baza-znanii/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.qolio.ru/qolio-or-baza-znanii/integracii/podklyuchenie-po-api/integraciya-po-api-dlya-ip-telefonii-i-chatov/api-zapros-dlya-dobavleniya-zvonkov/api-zapros-dlya-dobavleniya-zvonka-s-transkribciei.md).

# API запрос для добавления звонка с транскрибцией

В системе Qolio есть возможность хранить и отображать данные транскрипции звонка. Это повышает скорость проверки и добавляет больше контекста для проверяющего.

Для загрузки транскрибации звонка при загрузке телефонного звонка, используется поле transcription. В это поле передается массив объектов с данными text, start\_time, end\_time, role (возможные значение operator / client)

```json
{
  "operator_id": "007",
  "direction": "incoming",
  "duration": 410.1,
  "started_at": "2020-01-06T09:42:51Z",
  "client_phone_number": "79912068575",
  "media_url": "https://demo-records.s3.eu-central-1.amazonaws.com/News_Room_News.mp3",
  "transcription": [
    {
      "text": "Добрый день! Какой у вас вопрос?",
      "start_time": 0.5,
      "end_time": 4,
      "role": "operator"
    },
    {
      "text": "Я могу перевести деньги на карту другой страны?",
      "start_time": 4.5,
      "end_time": 8.8,
      "role": "client"
    },
    {
      "text": "Конечно. В какую страну вы хотите перевести деньги?",
      "start_time": 8,
      "end_time": 10,
      "role": "operator"
    },
    {
      "text": "В Россию",
      "start_time": 9.2,
      "end_time": 9.5,
      "role": "client"
    },
    {
      "text": "Можете. У вас есть валютный счет в RUB?",
      "start_time": 10,
      "end_time": 12,
      "role": "operator"
    },
    {
      "text": "Нету, а обязательно нужен?",
      "start_time": 13,
      "end_time": 15,
      "role": "client"
    },
    {
      "text": "Нет. Вы можете открыть бесплатный счет в RUB, сделать обмен валюты со счета BYN на счет в RUB на сумму перевода и перевести деньги со счета в RUB.",
      "start_time": 15,
      "end_time": 19,
      "role": "operator"
    },
    {
      "text": "За это будет коммисия?",
      "start_time": 20,
      "end_time": 22,
      "role": "operator"
    },
    {
      "text": "Да, комиссия за перевод 1,5% от суммы (минимум 2 белорусских рубля).",
      "start_time": 15.3,
      "end_time": 18,
      "role": "operator"
    },
    {
      "text": "Понятно, спасибо",
      "start_time": 19,
      "end_time": 21,
      "role": "client"
    },
    {
      "text": "Пожалуйста, хорошего дня.",
      "start_time": 21,
      "end_time": 22,
      "role": "operator"
    }
  ]
}
```


---

# 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://wiki.qolio.ru/qolio-or-baza-znanii/integracii/podklyuchenie-po-api/integraciya-po-api-dlya-ip-telefonii-i-chatov/api-zapros-dlya-dobavleniya-zvonkov/api-zapros-dlya-dobavleniya-zvonka-s-transkribciei.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.
