返回一个作业的对话数据。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
授权信息
当前API暂无授权信息透出。
请求参数
名称 | 类型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
InstanceId | string | 是 | 实例 ID。 | af81a389-91f0-4157-8d82-720edd02b66a |
JobId | string | 是 | 作业 ID。 | c8a2b7f2-ad1a-4865-b872-d0080d9802d9 |
WithScript | boolean | 否 | 是否返回任务场景信息。 | false |
返回参数
示例
正常返回示例
JSON
格式
{
"HttpStatusCode": 200,
"Code": "OK",
"Message": "Success",
"RequestId": "254EB995-DEDF-48A4-9101-9CA5B72FFBCC",
"Success": true,
"Job": {
"Status": "Succeeded",
"ActualTime": 1640068026385,
"Priority": 5,
"DsReport": "-",
"NextExecutionTime": 1640068026385,
"FailureReason": "NoAnswer",
"SystemPriority": 1,
"InstanceId": "d5971d98-7312-4f0e-a918-a17d67133e28",
"CalledNumber": "137****7777",
"ReferenceId": "d5971d98-7312-4f0e-a918-a17d67133e28",
"JobGroupId": "fce6c599-8ede-40e3-9f78-0928eda7b4e8",
"ScenarioId": "ade80092-03d9-4f4d-ad4f-ab8a247d3150",
"StrategyId": "c8a2b7f2-ad1a-4865-b872-d0080d9802d9",
"EndReason": 1,
"JobId": "b72425bd-7871-4050-838e-033d80d754b7",
"Contacts": [
{
"PhoneNumber": "1358****8888",
"State": "Available",
"ContactId": "db3db762-e421-44c9-9a01-cb423470757c",
"Honorific": "张先生",
"JobId": "72dcd26b-f12d-4c27-b3af-18f6aed5b160",
"ContactName": "张三",
"Role": "*",
"ReferenceId": "2fa6bac3-06da-4315-82ab-72d6fd3a6f34"
}
],
"Extras": [
{
"Key": "djrq",
"Value": "2019-08-21 09:49:59.0"
}
],
"Summary": [
{
"SummaryName": "score",
"Category": "{}",
"Content": "5"
}
],
"Tasks": [
{
"Status": "Succeeded",
"PlanedTime": 1579068424883,
"ChatbotId": "1234",
"ActualTime": 1579068424883,
"CalledNumber": "135****8888",
"EndTime": 1579068424883,
"ScenarioId": "ade80092-03d9-4f4d-ad4f-ab8a247d3150",
"EndReason": "FINISHED",
"JobId": "b72425bd-7871-4050-838e-033d80d754b7",
"CallId": "1528189846043",
"CallingNumber": "0571****3106",
"Brief": "1",
"Duration": 120,
"TaskId": "ff44709e-39a6-43ba-959b-20fcabe3e496",
"Conversation": [
{
"ActionParams": "{}",
"Action": "Broadcast",
"Timestamp": 1579068424883,
"Speaker": "Robot",
"Script": "你好,我是**客服",
"Summary": [
{
"SummaryName": "score",
"Category": "{}",
"Content": "5"
}
],
"SequenceId": "fd279983-93b9-b13b-9a34-64e5df473225"
}
],
"Contact": {
"PhoneNumber": "1351****8888",
"State": "Available",
"ContactId": "db3db762-e421-44c9-9a01-cb423470757c",
"Honorific": "张先生",
"JobId": "b72425bd-7871-4050-838e-033d80d754b7",
"ContactName": "张三",
"Role": "*",
"ReferenceId": "2fa6bac3-06da-4315-82ab-72d6fd3a6f34"
},
"HangUpDirection": "client",
"RingingDuration": 25,
"SipCode": "200",
"RealRingingDuration": 25,
"SipDuration": 25
}
],
"CallingNumbers": [
"[\"0571****3106\"]"
],
"Script": {
"Status": "DRAFTED",
"UpdateTime": 1578881227000,
"ChatbotId": "chatbot-cn-EJfqqa***",
"ScriptId": "810b5872-57f0-4b27-80ab-7b3f4d8a6374",
"IsDebugDrafted": true,
"Industry": "金融",
"ScriptDescription": "催收话术",
"MiniPlaybackConfigEnabled": true,
"IsDrafted": true,
"TtsConfig": "{\\\"voice\\\":\\\"xiaobei\\\",\\\"volume\\\":\\\"50\\\",\\\"speechRate\\\":\\\"-150\\\",\\\"pitchRate\\\":\\\"0\\\"}",
"DebugStatus": "DRAFTED",
"AsrConfig": "{\\\"AppKey\\\":\\\"3GHttnsvir1FeWWb\\\"}",
"Scene": "催收",
"Name": "催收话术"
}
}
}
错误码
HTTP status code | 错误码 | 错误信息 | 描述 |
---|---|---|---|
404 | NotExist.Instance | The specified Instance does not exist. | 指定的实例不存在。 |
404 | NotExist.Job | The specified Job does not exist. | 指定的任务不存在。 |
500 | InternalError | An error occurred while processing your request. Please try again later. Submit a ticket if the error still exists. | 内部错误。建议重试,如果多次重试报错请提交工单。 |
访问错误中心查看更多错误码。
变更历史
变更时间 | 变更内容概要 | 操作 |
---|---|---|
2024-07-22 | OpenAPI 描述信息更新、OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |
2023-04-25 | OpenAPI 错误码发生变更、OpenAPI 返回结构发生变更 | 查看变更详情 |