自动外呼接口
该接口文档用于【创建任务外呼任务、IVR流程、导入号码数据】等操作。
具体IVR流程配置无法用接口完成,需要登录极简云后台配置
- 请求方式:POST
- 请求地址:/openapi/call/web/v1/autoCallTask/createIntelligentCall
- 请求时请进行接口鉴权
| 字段 | 类型 | 是否必须 | 备注 |
| createUser | String | 否 | 创建人坐席工号 |
| name | String | 是 | 智能外呼名称 |
| description | String | 否 | 智能外呼描述 |
| callStrategy | object | 是 | 呼叫策略 |
| ->concurrentType | String | 是 | 并发类型,stable固定并发 dynamic动态并发 |
| ->concurrent | int | 条件 | 并发数,固定并发是必填 |
| ->maxConcurrent | int | 条件 | 最大并发数,动态并发必填 |
| ->freeAgentCount | int | 条件 | 动态并发倍率,动态并发必填 |
| priority | int | 是 | 任务优先级 |
| startType | String | 是 | 启动方式 manual手动启动 timing定时启动 |
| timingStartTime | String | 条件 | 定时启动时间,定时启动必填,yyyy-MM-dd HH:mm:ss |
| timeConditionName | String | 是 | 运行时间 |
| ivrName | String | 是 | 语音导航(需要后台配置) |
| numberType | String | 是 | 号码类型 number外显号码 group号码组 |
| numberList | List<String> | 条件 | 号码列表,选外显号码时必填 |
| numberGroup | String | 条件 | 号码组,选号码组时必填 |
| timeOut | int | 是 | 振铃时间 秒 |
{
"name":"test112",
"description":"123",
"callStrategy":{"concurrentType":"stable","concurrent":1},
"priority":1,
"startType":"manual",
"timeConditionName":"2024",
"ivrName":"ssss1",
"numberType":"number",
"numberList":["02862280304"],
"timeOut":20
}| 字段名称 | 字段类型 | 字段描述 |
| success | boolean | 请求是否成功 |
| _id | String | 唯一标识 |
| message | String | 响应结果 |
{
"success": true,
"message": "200 ok!",
"code": "200",
"data": {
"_id": "ec731c0d-14c6-46b1-a23c-2401665ece7e",
"accountId": "1019",
"name": "zxcs",
"description": "zhangxuan",
"priority": 1,
"actualConcurrent": 0,
"accountMaxConcurrent": 0,
"callStrategy": {
"concurrentType": "stable",
"concurrent": 1,
"magnification": null,
"maxConcurrent": null,
"freeAgentCount": 0
},
"timeConditionId": "2bbc588d-081c-4b8e-bbad-3f024fbc4f1d",
"ivrId": "975196973752930304",
"ivrType": null,
"dynamicDisplayNumId": null,
"timeOut": 20,
"startType": "manual",
"timingStartTime": null,
"openRepeatCall": false,
"repeatCallConfig": {
"callResult": [],
"repeatCount": 0,
"repeatIntervalType": "afterNumber",
"interval": null,
"frequencyConfig": []
},
"status": "notTurnedOn",
"callout": 0,
"total": 0,
"dealing": 0,
"called": 0,
"createTime": "2025-09-05T07:44:39.250+00:00",
"updateTime": "2025-09-05T07:44:39.250+00:00",
"createUser": "openapi",
"updateUser": null,
"executeTime": "2025-09-05T07:44:39.250+00:00",
"isManualPause": false,
"isTimerStart": false,
"repeatCallComplete": null,
"taskNumberDialComplete": null,
"isControllerTimerStart": null,
"isControllerTimerStop": null,
"numberType": "number",
"numberList": [
"02823034031"
],
"numberGroup": null,
"order": 4,
"callStatus": {
"call_limit": 0,
"black_list": 0,
"ivr": 0,
"queue_abandon": 0,
"voicemail": 0,
"answer": 0,
"agent_no_answer": 0,
"customer_no_answer": 0,
"call_transfer": 0,
"call_threeway": 0,
"call_consult": 0,
"call_consult_transfer": 0,
"risk": 0
},
"init": false
},
"traceId": "2b870adb5944445881330096c2319ea3"
}- 请求方式:POST
- 请求地址:/openapi/call/web/v1/autoCallTask/insertOutboundTaskData
- 请求时请进行接口鉴权
| 字段 | 类型 | 是否必须 | 备注 |
| taskId | String | 是 | 任务ID |
| duplicateCheckType | String | 是 | 号码去重方式:1:账户内所用任务去重,2:当前任务内去重,3:不检测 |
| createUser | String | 否 | 操作人 |
| numbers | array | 是 | 导入的数据,此值类型为数组 |
| ->phone | String | 是 | 手机号 |
| ->extras | String | 否 | 额外参数,传参需要是jsonString格式,该参数可以用在ivr中,且extras参数会在通话事件推送中同步推送给用户的接口。 |
{
"duplicateCheckType" : "3",
"taskId" : "e8b0b776-5d9d-47a9-b84f-2b024f058c75",
"numbers" : [{"phone":"13778220778","extras" :"{\"vo\":\"测试测试\",\"id\":\"1234531\"}"},
{"phone":"17854110073","extras" :"{\"vo\":\"测试测试\",\"id\":\"1234531\"}"}]
}
| 字段名称 | 字段类型 | 字段描述 |
| success | boolean | 请求是否成功 |
| code | String | 响应码 |
| message | String | 响应结果 |
{
"success": true,
"code": 200,
"message": "200 OK"
}