Автообзвон¶
Для использования функционала домен должен иметь режим Колл-центр.
Объекты¶
DomainAutoDialingBatchScheduleDays
DomainAutoDialingBatchSchedule
DomainAutoDialingBatchSuccessOption
DomainDialerQueueStrategyManual
DomainDialerQueueStrategyProgressive
DomainDialerQueueStrategyPredictive
DPEDomainDialerContactIntegerTag
DPEDomainDialerContactMoneyTag
DPEDomainDialerContactPhraseTag
DomainDialerBatchHttpRequestBase
DomainDialerBatchHttpRequestGet
Запросы¶
Список пакетов¶
{
"action": "list",
"obj": "DomainDialerBatch",
"action_id": "a363-1636-fa71-fdc9",
"params": {
"domain_id": 34
},
"limit": 100,
"offset": 0,
"sort": {
"name": "+"
}
}
Редактирование пакета¶
{
"action": "update",
"obj": "DomainDialerBatch",
"action_id": "0815-a04c-1f22-3956",
"params": {
"id": 334,
"stat": null,
"domain_id": 34,
"name": "Test",
"delay_next_call": 60,
"dt": 1707206553.950868,
"contacts_by_status": {
"0": 5
},
"is_active": false,
"lines": 1,
"link": "",
"max_calls": 1,
"max_wait_answer": 60,
"max_wait_bridge": 1,
"status": 1,
"cpm": 0,
"target_time": 10,
"outbound_dp_id": 948,
"priority": 0,
"target": {
"type": 0,
"value": 100
},
"schedule": {
"dt_start": 1707177600,
"dt_end": 1707868799,
"time_start": "09:00:00",
"time_end": "17:59:59",
"time_start_weekend": "11:00:00",
"time_end_weekend": "16:59:59",
"tz": false,
"wd": {
"monday": true,
"tuesday": true,
"wednesday": true,
"thursday": true,
"friday": true,
"saturday": false,
"sunday": false
}
},
"dp": {
"name": "DomainDialerBatchDPQueue",
"queue_id": 89,
"audio_before": {
"list": []
},
"strategy": {
"name": "DomainDialerQueueStrategyProgressive",
"call_first_client": true,
"check_agents": true
}
}
}
}
Удаление пакета¶
{
"action": "delete",
"obj": "DomainDialerBatch",
"action_id": "437f-6382-74c1-d936",
"params": {
"id": 334,
"domain_id": 34
}
}
Создание пакета с типом Соединить с очередью¶
{
"action": "append",
"obj": "DomainDialerBatch",
"action_id": "3a8d-b2e3-b83a-997e",
"params": {
"stat": null,
"domain_id": 34,
"name": "Test",
"delay_next_call": 60,
"dt": null,
"contacts_by_status": null,
"is_active": null,
"lines": 1,
"link": "",
"max_calls": 1,
"max_wait_answer": 60,
"max_wait_bridge": 1,
"status": 0,
"cpm": 0,
"target_time": 10,
"outbound_dp_id": 948,
"priority": 0,
"target": {
"type": 0,
"value": 100
},
"schedule": {
"dt_start": 1707091200,
"dt_end": 1707782399,
"time_start": "09:00:00",
"time_end": "17:59:59",
"time_start_weekend": "11:00:00",
"time_end_weekend": "16:59:59",
"tz": false,
"wd": {
"monday": true,
"tuesday": true,
"wednesday": true,
"thursday": true,
"friday": true,
"saturday": false,
"sunday": false
}
},
"dp": {
"name": "DomainDialerBatchDPQueue",
"queue_id": 89,
"audio_before": {
"list": []
},
"strategy": {
"name": "DomainDialerQueueStrategyProgressive",
"call_first_client": true,
"check_agents": true
}
}
}
}
Создание пакета с типом Проиграть уведомление¶
{
"action": "append",
"obj": "DomainDialerBatch",
"action_id": "fccd-b670-9201-32c8",
"params": {
"stat": null,
"domain_id": 34,
"name": "Test",
"delay_next_call": 60,
"dt": null,
"contacts_by_status": null,
"is_active": null,
"lines": 1,
"link": "",
"max_calls": 1,
"max_wait_answer": 60,
"max_wait_bridge": 1,
"status": 0,
"cpm": 0,
"target_time": 10,
"outbound_dp_id": 948,
"priority": 0,
"target": {
"type": 0,
"value": 100
},
"schedule": {
"dt_start": 1707091200,
"dt_end": 1707782399,
"time_start": "09:00:00",
"time_end": "17:59:59",
"time_start_weekend": "11:00:00",
"time_end_weekend": "16:59:59",
"tz": false,
"wd": {
"monday": true,
"tuesday": true,
"wednesday": true,
"thursday": true,
"friday": true,
"saturday": false,
"sunday": false
}
},
"dp": {
"name": "DomainDialerBatchDPPlayback",
"audio": {
"list": [
{
"id": 775,
"dpe_name": "DPEAudioSystem"
}
]
}
}
}
}
Создание пакета с типом Вызов на маршрут¶
{
"action": "append",
"obj": "DomainDialerBatch",
"action_id": "55cf-e07a-a1bc-6d18",
"params": {
"stat": null,
"domain_id": 34,
"name": "Test",
"delay_next_call": 60,
"dt": null,
"contacts_by_status": null,
"is_active": null,
"lines": 1,
"link": "",
"max_calls": 1,
"max_wait_answer": 60,
"max_wait_bridge": 1,
"status": 0,
"cpm": 0,
"target_time": 10,
"outbound_dp_id": 948,
"priority": 0,
"target": {
"type": 0,
"value": 100
},
"schedule": {
"dt_start": 1707091200,
"dt_end": 1707782399,
"time_start": "09:00:00",
"time_end": "17:59:59",
"time_start_weekend": "11:00:00",
"time_end_weekend": "16:59:59",
"tz": false,
"wd": {
"monday": true,
"tuesday": true,
"wednesday": true,
"thursday": true,
"friday": true,
"saturday": false,
"sunday": false
}
},
"dp": {
"name": "DomainDialerBatchDPDP",
"dp_id": 979
}
}
}
Создание пакета с типом Актуализация контактов¶
{
"action": "append",
"obj": "DomainDialerBatch",
"action_id": "8ae1-34ba-e36e-2d0c",
"params": {
"stat": null,
"domain_id": 34,
"name": "Test",
"delay_next_call": 60,
"dp": {
"name": "DomainDialerBatchDPCheck"
},
"dt": null,
"contacts_by_status": null,
"is_active": null,
"lines": 1,
"link": "",
"max_calls": 1,
"max_wait_answer": 60,
"max_wait_bridge": 1,
"status": 1,
"cpm": 0,
"target_time": 10,
"outbound_dp_id": 948,
"priority": 0,
"target": {
"type": 0,
"value": 100
},
"schedule": {
"dt_start": 1707177600,
"dt_end": 1707868799,
"time_start": "09:00:00",
"time_end": "17:59:59",
"time_start_weekend": "11:00:00",
"time_end_weekend": "16:59:59",
"tz": false,
"wd": {
"monday": true,
"tuesday": true,
"wednesday": true,
"thursday": true,
"friday": true,
"saturday": false,
"sunday": false
}
}
}
}
Создание пакета с типом Анкетирование¶
{
"action": "append",
"obj": "DomainDialerBatch",
"action_id": "a6c3-0af1-aa74-6c5c",
"params": {
"stat": null,
"domain_id": 34,
"name": "Test",
"delay_next_call": 60,
"dt": null,
"contacts_by_status": null,
"is_active": null,
"lines": 1,
"link": "",
"max_calls": 1,
"max_wait_answer": 60,
"max_wait_bridge": 1,
"status": 0,
"cpm": 0,
"target_time": 10,
"outbound_dp_id": 948,
"priority": 0,
"target": {
"type": 0,
"value": 100
},
"schedule": {
"dt_start": 1707177600,
"dt_end": 1707868799,
"time_start": "09:00:00",
"time_end": "17:59:59",
"time_start_weekend": "11:00:00",
"time_end_weekend": "16:59:59",
"tz": false,
"wd": {
"monday": true,
"tuesday": true,
"wednesday": true,
"thursday": true,
"friday": true,
"saturday": false,
"sunday": false
}
},
"dp": {
"name": "DomainDialerBatchDPQuestions",
"audio_before": {
"list": [
{
"id": 775,
"dpe_name": "DPEAudioSystem"
}
]
},
"audio_after": {
"list": [
{
"id": 320,
"dpe_name": "DPEAudioSystem"
}
]
},
"questions": [
{
"max_value": 10,
"min_value": 0,
"wait_time": 5,
"save_error_value": true,
"allow_speech": false,
"audio_before": {
"list": [
{
"id": 733,
"dpe_name": "DPEAudioSystem"
}
]
}
}
]
}
}
}
Добавление контактов¶
{
"action": "append",
"obj": "DomainDialerContact",
"action_id": "b02a-10e0-c02a-b6e2",
"params": {
"domain_id": 34,
"batch_id": 334,
"phone": "7XXXXXXXXXX",
"tz": "Europe/Moscow",
"extra_fields": {},
}
}
Примечание
если необходимо добавить несколько номеров добавьте в запрос строки с параметрами «phone» и «extra_fields».
Добавление контактов через Excel-файл¶
{
"action": "import",
"obj": "DomainDialerContact",
"action_id": "6748-7c0b-69fc-3125",
"params": {
"contacts": [
{
"phone": "7XXXXXXXXXX",
"extra_fields": {
"FIO": "Иванов А.И."
},
"tz": null
}
],
"batch_id": 337,
"domain_id": 34
}
}
Удаление контактов¶
{
"action": "delete",
"obj": "DomainDialerContact",
"action_id": "9fb2-acbc-a705-7777",
"params": {
"id": 14087,
"domain_id": 34
}
}
Примечание
удаление доступно только по одному контакту.
Список контактов¶
{
"action": "list",
"obj": "DomainDialerContact",
"action_id": "6078-9fb0-2f26-ca4b",
"params": {
"domain_id": 34
},
"limit": 100,
"offset": 0,
"filter": {
"field_list": [
{
"field": "batch_id",
"condition_type": 0,
"value": 333
},
{
"field": "status",
"condition_type": 0,
"value": "0"
}
],
"type": 0
}
}