云蝠智能 AI知识中心
所有文章
完整版
完整版
客户端
API文档
升级日志
合作伙伴
基础知识
产品介绍
帮助中心
模型呼叫
对接文档
开发指引
API接口
【新】云节点列表
用户
子账户
任务
线路
话术分组
客户公海
合同管理
号码
通话记录
呼叫时间
用户凭证
回调黑名单
对话接口
系统账单
其他
回调
iFrame嵌套
升级日志
常见问题
行业案例
其他文档
2.0任务初始化
最后更新于 2025/03/13   阅读数 108

2.0创建任务初始化


获取新建任务所需要的初始信息

  • 接口:/agent-api/new/user/{user_id}/task/create

  • 请求方式: GET

  • 路由参数

参数

类型

示例

解释

必填

user_id

string

5832d184-dd53-42a0-8ace-0bf8d660f4cc

用户id

  • 请求参数

参数

类型

示例

解释

必填

sub_user_id

string

5b55bcca-d653-4a58-8f9a-437fb0601f8e

子账户id(传递此参数则是对子账户操作)

  • 返回示例

{
    "code": 200,
    "status": "success",
    "message": "返回任务初始化信息成功",
    "data": {
        "task_dial_times": [ //时间组信息
            {
                "id": 1,
                "name": "系统呼叫时间",
                "user_id": "b6d94bef-5ac2-4c6e-ba13-d2f8f124862b", // 用户id
                "content": [
                    {
                        "week": 0,
                        "times": [
                            {
                                "end_time": "12:00",
                                "begin_time": "09:00"
                            },
                            {
                                "end_time": "18:00",
                                "begin_time": "13:00"
                            }
                        ]
                    },
                    {
                        "week": 1,
                        "times": [
                            {
                                "end_time": "12:00",
                                "begin_time": "09:00"
                            },
                            {
                                "end_time": "18:00",
                                "begin_time": "13:00"
                            }
                        ]
                    },
                    {
                        "week": 2,
                        "times": [
                            {
                                "end_time": "12:00",
                                "begin_time": "09:00"
                            },
                            {
                                "end_time": "18:00",
                                "begin_time": "13:00"
                            }
                        ]
                    },
                    {
                        "week": 3,
                        "times": [
                            {
                                "end_time": "12:00",
                                "begin_time": "09:00"
                            },
                            {
                                "end_time": "18:00",
                                "begin_time": "13:00"
                            }
                        ]
                    },
                    {
                        "week": 4,
                        "times": [
                            {
                                "end_time": "12:00",
                                "begin_time": "09:00"
                            },
                            {
                                "end_time": "18:00",
                                "begin_time": "13:00"
                            }
                        ]
                    },
                    {
                        "week": 5,
                        "times": [
                            {
                                "end_time": "12:00",
                                "begin_time": "09:00"
                            },
                            {
                                "end_time": "18:00",
                                "begin_time": "13:00"
                            }
                        ]
                    },
                    {
                        "week": 6,
                        "times": [
                            {
                                "end_time": "12:00",
                                "begin_time": "09:00"
                            },
                            {
                                "end_time": "18:00",
                                "begin_time": "13:00"
                            }
                        ]
                    }
                ],
                "is_default": true,
                "remark": null,
                "created_at": "2024-06-16 14:57:12",
                "updated_at": "2024-06-16 14:57:12"
            }
        ],
        "caller_line_list": [ // 当前用户可使用外呼线路信息
            {
                "name": null,
                "remark": "yw代理-测试主账户1", // 线路备注
                "line_id": "29c39ec4-b292-4af9-a88b-922d61866aag", // 线路id
                "belong_user": "b0e353f1-03db-4811-96e9-5fdfc9b2f31b", // 所属用户
                "line_concurrency": 1,
                "residue": 1,
                "available_at": "2025-11-28 00:00:00",
                "new_line": {
                    "name": "修改线路测试1111", // 线路名称
                    "type": 1, // 线路类型 
                    "bind_type_str": "IP",
                    "type_str": "外部线路",
                    "node": {
                        "name": "fs-node1" // 节点名称
                    }
                }
            }
        ],
        "call_in_line_list": [ //  当前用户可使用呼入线路信息
            {
                "name": null,
                "remark": "root-cbq测试(体育生测试号)",
                "line_id": "f15e465a-50f4-4f5b-8f78-772b539f33a5",
                "belong_user": "b0e353f1-03db-4811-96e9-5fdfc9b2f31b",
                "line_concurrency": 1,
                "residue": 1,
                "available_at": "2025-03-12 10:09:02",
                "new_line": {
                    "name": "呼入测试",
                    "type": 2,
                    "bind_type_str": "IP",
                    "type_str": "内部线路",
                    "node": {
                        "name": "节点 1(负载均衡版)"
                    }
                }
            }
        ],
        "max_recycle_limit": 50,
        "outbound_group": [  //常规外呼话术组信息
            {
                "id": 1,
                "name": "测试-抖音-1",
                "user_id": "b6d94bef-5ac2-4c6e-ba13-d2f8f124862b",
                "category_id": null,
                "debug": true,
                "deleted_at": null,
                "created_at": "2024-06-17 10:46:03",
                "updated_at": "2024-09-26 18:36:59",
                "link_word_group_id": null,
                "tag_scene_id": null,
                "knowledge_id": null,
                "exclusive_asr": "aliYun1",
                "exclusive_tts": "aliyunv2_siyue",
                "priority_matching": 0,
                "is_top": 0,
                "nlp_threshold": 0,
                "order_matching": 0,
                "sort": 0,
                "usable": 0,
                "inner": 0,
                "is_sync": 0,
                "speed": 50,
                "volume": 50,
                "is_lock": 0,
                "is_train": 0,
                "is_visible": 1,
                "is_edit": 1,
                "is_active": 1,
                "use_type": 3,
                "extension_number": null,
                "aim_content": null,
                "intention_group_id": 0,
                "tts_extension": null,
                "big_model_type": "local_zhipu-api",
                "local_knowledge_base_id": null,
                "custom_prompt": null,
                "bridge_group_id": null,
                "llm_nlp_threshold": 80,
                "llm_scene_id": null,
                "default": false
            }
        ],
        "big_model_outbound_group": [ // 大模型外呼话术组
            {
                "id": 12542,
                "name": "测试",
                "is_lock": 0,
                "is_active": 1,
                "created_at": "2025-03-13 17:08:19",
                "default": false
            }
        ],
        "bridge_groups": [ // 转接分组信息
            {
                "id": 1,
                "name": "转人工",
                "strategy": 1,
                "strategy_str": "平均"
            }
        ],
        "auto_recycle_rules": [ // 重呼规则
            {
                "id": 1,
                "user_id": "b6d94bef-5ac2-4c6e-ba13-d2f8f124862b",
                "name": "默认重呼规则",
                "remark": "默认重呼规则",
                "status": true,
                "created_at": "2024-06-16 14:57:12",
                "updated_at": "2024-06-16 14:57:12",
                "is_default": true,
                "type": 1,
                "configs": [],
                "details": [
                    {
                        "rule_id": 1,
                        "number_status": 6,
                        "time": 0,
                        "number_status_str": "关机"
                    }
                ]
            }
        ],
        "end_actions": { // 2.0任务后续动作
            "1": "暂停任务释放并发",
            "0": "无操作"
        },
        "background": [ // 背景音列表
            {
                "id": 34,
                "name": "超市大厅",
                "created_at": "2024-10-25 13:25:43"
            }
        ],
        "llm_intention_configs": [
            {
                "id": 1,
                "name": "质检条件1",
                "user_id": "b6d94bef-5ac2-4c6e-ba13-d2f8f124862b",
                "llm_type": 2,
                "is_default": 0,
                "created_at": "2024-11-19 15:03:46"
            }
        ]
    }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
plaintext
未能解决您的问题?请联系
本篇目录

2.0创建任务初始化