Skip to content

创建/删除任务回调数据

创建/删除任务回调数据

返回数据

json
{
    "type": 1,
    "mode": "saas_web",
    "task_data": {
        "auto_recycle_rule_id": 4,
        "call_pause_second": 10,
        "caller_line_id": null,
        "customer_service_id": 21,
        "destination_extension": 5,
        "disable_dial_timegroup": "8ae402ae-4af9-4c2a-914c-96e1efae399e",
        "maximumcall": 1,
        "name": "0930",
        "recycle_limit": 0,
        "remark": null,
        "uuid": "f8a1e546-2d5c-4e68-873e-8052645373e9",
        "user_id": "f00c8abc-433f-4666-a9d6-70479605ced1",
        "start": 0,
        "start_str": "暂停",
        "task_type": 6,
        "enable_type": 0,
        "create_datetime": "2020-10-27 16:12:17",
        "caller_line_name": "成都平安-20200524",
        "destination_extension_name": "话术分组11",
        "username": "用户1",
        "user_type": 4, // 4:终端用户 8:子账户
        "outbound_group_time": "2019-11-22 17:22:54",
        "caller_line_time": "2020-05-07 09:31:03",
        "time_range": [ //呼叫时间组
            {
                "id": 1, //呼叫组ID
                "name": "测试呼叫组1", //呼叫组名称
                "content": [ //呼叫组内容
                    { //以下配置表示呼叫时间为:周一 9点~12点、3点到18点
                        "week": 0, //周一
                        "times": [ //呼叫时间段
                            {
                                "end_time": "12:00",
                                "begin_time": "9:00"
                            },
                            {
                                "end_time": "18:00",
                                "begin_time": "13:00"
                            }
                        ]
                    },
                    { //以下配置表示呼叫时间为:周二 9点30分~12点30分、13点30分~17点30分
                        "week": 1,
                        "times": [
                            {
                                "end_time": "12:30",
                                "begin_time": "9:30"
                            },
                            {
                                "end_time": "17:30",
                                "begin_time": "13:30"
                            }
                        ]
                    }
                ],
                "skip_holiday": false, //是否跳法定节假日,为true表示任务的拨打时间自动跳过国家法定节假日(如春节、清明、端午、五一、国庆等)
                "is_default": true //是否为默认呼叫组,一个用户只能有一个默认组,方便用户在外呼任务处快速绑定呼叫组。
            },
            { //以下表示:使用该呼叫组的任务,只能在周一的8点~12点、13点~15点、16点~22点拨打,其余时间为禁呼时间
                "id": 2,
                "content": [
                    {
                        "week": 0,
                        "times": [
                            {
                                "end_time": "12:00",
                                "begin_time": "08:00"
                            },
                            {
                                "end_time": "15:00",
                                "begin_time": "13:00"
                            },
                            {
                                "end_time": "22:00",
                                "begin_time": "16:00"
                            }
                        ]
                    }
                ],
                "skip_holiday": false,
                "is_default": false
            }
        ]
    }
}

字段说明

字段说明
type类型:1表示创建任务,2表示删除任务
mode模式:表示该操作是界面操作(saas_web),还是通过代理接口(api_interface)
task_data任务数据
call_pause_second每通电话的呼叫间隔
caller_line_id线路ID
customer_service_id客服组ID
destination_extension使用话术分组的ID
disable_dial_timegroup禁用呼叫时间的uuid
maximumcall并发数
name任务名称
recycle_limit呼叫失败最大重拨次数
remark备注
uuid任务ID
start任务是否开启:1开启,0暂停
start_str任务状态
task_type任务类型(值为6代表2.0任务)
enable_type启用类型(当task_type值为6的情况下:0-2.0外呼,1-大模型外呼)
create_datetime创建时间
caller_line_name线路名称
destination_extension_name话术名称
username用户名称
user_type用户类型
outbound_group_time话术创建时间
caller_line_time线路创建时间
time_range呼叫时间组

基于 MIT 许可发布