获取一个通话的详情接口
# 1、接口描述
功能说明: 通过此接口可以获取指定通话的详细信息
请求地址: https://open-api.soboten.com/apiOpen/v1/callRecord/callDetail?callRecordId=CALL_RECORD_ID 请求方法: GET
# 2、请求头
请求头参数获取详见权限认证
| 参数名 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
| appkey | String | 是 | ISV账号信息里获取 |
| timestamp | Long | 是 | 生成验签字段时使用的时间戳 |
| signature | String | 是 | 验签字段,获取方法详见权限认证 |
# 3、输入参数
| 参数名 | 类型 | 是否必须 | 描述 | 示例 |
|---|---|---|---|---|
| callRecordId | Long | 是 | 通话记录id | 1164305750 |
# 4、输出参数
| 参数名 | 类型 | 描述 | 示例 |
|---|---|---|---|
| code | Integer | 响应码 | 200 |
| data | Object | ||
| +callDetailList | List | 对话内容 | [{ "text": "喂,您好, ...我可以给您介绍一下吗?", "type": "ROBOT", "callDetailId": 1 }, { "text": "嗯", "type": "PERSON", "callDetailId": 2 }] |
| +callRecordId | Long | 通话记录id | 1164305750 |
| +robotCallJobId | Long | 任务id | 30816 |
| +fullAudioUrl | String | 完整音频地址 | https://ai-call-platform-daily.oss-cn-hangzhou.aliyuncs.com/DialogueRecording/TenantId1/Call JobId17/YKUYXGLL_TaskId_1305098/early_media.wav |
| +customerAudioUrl | String | 客户音频地址 | https://ai-call-platform-daily.oss-cn-hangzhou.aliyuncs.com/DialogueRecording/TenantId1/Call JobId17/YKUYXGLL_TaskId_1305098/early_media.wav |
| +startTime | String | 开始拨打时间 | 2018-10-02T16:54:08 |
| +endTime | String | 结束拨打时间 | 2018-10-02T16:54:08 |
| +chatDuration | Integer | 通话时长 | 0 |
| +chatRound | Integer | 通话轮次 | 0 |
| +resultStatus | String | 通话结果,详见枚举类型说明中的通话结果枚举 | VACANT_NUMBER |
| +intentLevelName | String | 意向标签名称 | 一般 |
| +realIntentLevelName | String | 人工意向标签名称 | 一般 |
| +intentLevelTagId | Long | 意向分类标签id | 0 |
| +dialogFlowId | Long | 话术id | 1758 |
| +intentLevelCode | Integer | ai意向分类code | 2 |
| +realIntentLevelCode | Integer | 真实意向分类code | 2 |
| +customerConcern | List | 客户关注点 | ["价格", "位置"] |
| +analysisBasis | String | 意向规则判断原因说明 | "空号" |
| +attributes | List | 客户属性 | [“有钱”] |
| +calledPhoneNumber | String | 被叫号码 | 150****8665 |
| +customerPersonGender | String | 性别 | FEMALE |
| +recognizeGender | String | 语音识别性别 | FEMALE |
| +customerPersonName | String | 客户名称 | 章三 |
| +emotion | String | 情绪 | HAPPY |
| +transferPhoneNumber | String | 转人工号码 | |
| +transferTime | String | 转人工时间 | |
| +transferType | String | 转人工状态 | NO_TRANSFER |
| +callRecordType | String | 通话类型 | NORMAL |
| +callRecordTagIds | List | 通话标签id | [1] |
| +callRecordTagNames | List | 通话标签名称 | ["优质"] |
| +customerPerson | Object | 客户信息 | . |
| ++properties | Map | 自定义变量 | { "欠款金额": "10.13", "最后还款日期": "2018年10月3日" } |
| ++customerTagIds | List | 客户标签id | [1] |
| ++customerTagNames | List | 客户标签名称 | ["优质"] |
| +extraInfo | Map > | 通话过程中收集的动态变量 | { "是否上交工资卡":["是"], "是否介绍基本情况": ["否"], "是否向同事介绍": ["是"] } |
| +ringDuration | long | 振铃时长(单位s) | 10 |
| requestId | String | 请求Id | PSVILAEB |
| resultMsg | String | 响应说明 | 执行成功 |
| host | String | 业务主机名 | prod-web-7 |
| errorStackTrace | String | 异常堆栈 | null |
# 5、示例
输出示例:
{
"code": 200,
"data": {
"callRecordId": 1,
"attributes": [],
"customerAudioUrl": null,
"startTime": "2018-10-02T16:54:08",
"endTime": "2018-10-02T16:54:08",
"chatRound": 0,
"chatDuration": 0,
"callRecordType": "NORMAL",
"calledPhoneNumber": "150****8665",
"customerPersonGender": "FEMALE",
"customerPersonName": "",
"dialogFlowId": 1758,
"emotion": "HAPPY",
"recognizeGender": "FEMALE",
"transferPhoneNumber": null,
"transferTime": null,
"transferType": "NO_TRANSFER",
"customerPerson": {
"alternatePhoneNumbers": [],
"areaCode": null,
"assignTime": "2021-07-02 16:22:29",
"attributes": [],
"createTime": "2021-07-02 16:22:29",
"createUserId": 801,
"customerGroupId": null,
"customerGroupName": null,
"customerLevel": "UNKNOWN",
"customerPersonId": 19038537,
"extraInfo": null,
"followStatus": 0,
"followStatusName": "线索",
"followUserId": 2051,
"followUserName": null,
"gender": "FEMALE",
"inWhiteList": false,
"lastChatDuration": 59,
"lastDialStatus": "ANSWERED",
"lastEmotion": "UNKNOWN",
"lastFollowTime": "2021-07-02 16:22:15",
"lastIntentLevel": "D",
"lastIntentLevelCode": 3,
"lastIntentLevelTagId": 0,
"lastRobotCallJobId": 9915,
"lastStartTime": "2021-10-26 13:44:39",
"manualFollowStatus": false,
"name": "",
"phoneNumber": "150****8665",
"properties": {},
"publicTime": "2021-07-02 16:22:29",
"source": null,
"updateTime": "2021-07-02 16:22:29",
"customerTagIds":[1],
"customerTagNames":["优质"]
},
"resultStatus": "VACANT_NUMBER",
"intentLevelName":"一般",
"realIntentLevelName":"一般",
"intentLevelTagId":0,
"intentLevelCode":2,
"realIntentLevelCode":2,
"customerConcern": ["价格", "位置"],
"extraInfo": {
"是否上交工资卡": [
"是"
],
"是否介绍基本情况": [
"否"
],
"是否向同事介绍": [
"是"
]
},
"fullAudioUrl": "https://ai-call-platform-daily.oss-cn-hangzhou.aliyuncs.com/DialogueRecording/TenantId1/CallJobId17/YKUYXGLL_TaskId_1305098/early_media.wav",
"analysisBasis": "空号",
"callRecordTagIds":[1],
"callRecordTagNames":["优质"],
"callDetailList": [{
"text": "喂,您好, (停顿2s),您好,想问下您位于江北纬七路隧道附近,均价17000的高端商业综合体,我可以给您介绍一下吗?",
"type": "ROBOT",
"callDetailId": 1
},
{
"text": "嗯",
"type": "PERSON",
"callDetailId": 2
}
],
"ringDuration": 10,
"robotCallJobId": 29
},
"requestId": "PSVILAEB",
"resultMsg": "执行成功",
"errorStackTrace": null
}
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
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
上次更新: 2026/8/4 16:22:00