Аналитика диалогов
API позволяет получить результаты диалогов по сценарию (в том числе по обзвону):
список колонок, отчёт в JSON/Excel и карточку конкретного диалога.
Все методы требуют заголовок: Authorization: Bearer [токен].
Base URL: https://dialog-api.intersvyaz.it
ВозможностиПорядок работы с API "Аналитика диалогов":
- Узнать scenario_id (при необходимости start block id) из UI или метод API
Получить список колонок доступных в аналитике диалогов:Получение доступных колонок для отчета-
Из ответа
Получение доступных колонок для отчетавыбрать нужныеколонкиколонки,добавитьприжелаемыенеобходимостифильтрызадатьfilter_*filter_type / filter_value / sortingв теле запросаиполучитьзапроситьотчет по диалогам:отчёт: отчет или в виде excel -
При необходимости открыть диалог:
Получениеинформации о конкретном диалоге
Детали Аналитики:Особенности:
-
Колонки нельзя выдумывать: берите объект из Получение доступных колонок для отчета. Для variables / intents важен id.
- В отчёт попадают только переданные columns.
-
Несколько фильтров на колонках работают как AND.
total_duration - минуты, avg_duration - секунды.
limit / offset влияют только на строки в data. count, total_duration, avg_duration считаются по всей выборке с учетом фильтров.
У целей (goals) из списка колонок часто id: null - тогда ключ будет goals__{name}
(например goals__Согласие).
Пример: получение колонок
[
{
"id": null,
"name": "uuid",
"display_name": "UUID",
"column_type": "default_dialogs",
"data_type": "text",
"table_type": "string",
"filter_type": null,
"filter_value": null,
"sorting": null
},
{
"id": null,
"name": "duration",
"display_name": "Длительность (сек.)",
"column_type": "analytics_dialogs",
"data_type": "number",
"table_type": "string",
"filter_type": "greater_than",
"filter_value": 30,
"sorting": "desc"
},
{
"id": 101,
"name": "client_name",
"display_name": "client_name",
"column_type": "variables",
"data_type": "text",
"table_type": "string",
"filter_type": "not_empty",
"filter_value": null,
"sorting": null
},
{
"id": 123,null,
"name": "Согласие",
"display_name": "Согласие",
"column_type": "goals",
"data_type": "goal",
"table_type": "string",
"filter_type": "is_true",
"filter_value": null,
"sorting": null
}
]
Пример: запрос отчета
{
"analytics_filter": {
"scenario_id": 951,
"call_id": "019cb965-869a-7fe0-8b53-bd7e6c5edf24",
"date_start": "2026-09-01T00:00:00.000",
"date_end": "2026-09-10T23:59:59.000",
"offset": 0,
"limit": 50
},
"columns": [
{
"id": null,
"name": "uuid",
"display_name": "UUID",
"column_type": "default_dialogs",
"data_type": "text",
"table_type": "string",
"filter_type": null,
"filter_value": null,
"sorting": null
},
{
"id": null,
"name": "duration",
"display_name": "Длительность (сек.)",
"column_type": "analytics_dialogs",
"data_type": "number",
"table_type": "string",
"filter_type": "greater_than",
"filter_value": 30,
"sorting": "desc"
},
{
"id": 101,
"name": "client_name",
"display_name": "client_name",
"column_type": "variables",
"data_type": "text",
"table_type": "string",
"filter_type": "not_empty",
"filter_value": null,
"sorting": null
},
{
"id": 123,null,
"name": "Согласие",
"display_name": "Согласие",
"column_type": "goals",
"data_type": "goal",
"table_type": "string",
"filter_type": "is_true",
"filter_value": null,
"sorting": null
}
]
}
Пример: ответ отчета
{
"columns": [
{
"field": "default_dialogs__uuid",
"display_name": "UUID",
"type": "text"
},
{
"field": "analytics_dialogs__duration",
"display_name": "Длительность (сек.)",
"type": "number"
},
{
"field": "variables__101",
"display_name": "client_name",
"type": "text"
},
{
"field": "goals__123"goals__Согласие",
"display_name": "Согласие",
"type": "goal"
}
],
"data": [
{
"id": 5001,
"uuid": "01950454-d67f-7932-9076-deb40bfadecc",
"default_dialogs__uuid": "01950454-d67f-7932-9076-deb40bfadecc",
"analytics_dialogs__duration": 120,
"variables__101": "Иванов Иван",
"goals__123"goals__Согласие": true
},
{
"id": 5002,
"uuid": "01950454-d67f-7932-9076-deb40bfadedd",
"default_dialogs__uuid": "01950454-d67f-7932-9076-deb40bfadedd",
"analytics_dialogs__duration": 95,
"variables__101": "Петров Пётр",
"goals__123"goals__Согласие": true
}
],
"total_duration": 4,
"avg_duration": 107,
"count": 2
}
Пример: запрос с одной колонкой
{
"analytics_filter": {
"scenario_id": 951,
"date_start": "2026-09-01T00:00:00.000",
"date_end": "2026-09-10T23:59:59.000",
"offset": 0,
"limit": 10
},
"columns": [
{
"id": 101,
"name": "client_name",
"display_name": "client_name",
"column_type": "variables",
"data_type": "text",
"table_type": "string",
"filter_type": "not_empty",
"filter_value": null,
"sorting": null
}
]
}
Пример: ответ с одной колонкой из запроса
{
"columns": [
{
"field": "variables__101",
"display_name": "client_name",
"type": "text"
}
],
"data": [
{
"id": 5001,
"uuid": "01950454-d67f-7932-9076-deb40bfadecc",
"variables__101": "Иванов Иван"
},
{
"id": 5002,
"uuid": "01950454-d67f-7932-9076-deb40bfadedd",
"variables__101": "Петров Пётр"
}
],
"total_duration": 4,
"avg_duration": 107,
"count": 2
}