Commit bffbd76e by 李进峰

客服系统机器人电话更新

parent 81d67244
- BaseUrl
- BaseUrl
- 测试环境: http://api-pre.heyqiwu.cn/api/kaisen
#### 获取或者搜索记录
URL: {BaseUrl}/analysis/data/search
METHOD: GET
RequestParams:
| key | value | note |
| :----------- | :------------ | :--------------- |
| botName | 作品名 | 非必填项 |
| botNumber | 机器人号码 | 非必填项 |
| phoneNumber | 作品名 | 非必填项 |
| startTime | 接通时间 | 非必填项 |
| endTime | 挂断时间 | 非必填项 |
| pageSize | 页面条数 | 非必填项 |
| pageNum | 第几页 | 非必填项 |
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
ResponseBody:
```json
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": [
{
"id": 1109, // 主键ID
"sessionId": "telephone_1641386439303_7002", // 会话ID
"botName": "微脉赠险", // bot名称
"botNumber": "7500075", // bot对应电话号码
"startTime": 1641386510000, // 接通时间
"endTime": 1641386511000, // 挂断时间
"lastname": "高", // 姓
"gender": "女士", // 性别
"phoneNumber": "", // 用户电话号码
"asrName": "baidu-mrcpserver", // asr标识
"channelId": "kaisen-phone-api-pro" // 渠道ID
},
{
"id": 1108,
"sessionId": "telephone_1641385791085_826",
"botName": null,
"botNumber": null,
"startTime": 1641385861000,
"endTime": 1641385862000,
"lastname": "高",
"gender": "女士",
"phoneNumber": null,
"asrName": null,
"channelId": null
}
]
}
```
Example
```
curl --location --request GET 'http://api-pre.heyqiwu.cn/api/kaisen/analysis/data/search?botName=%E5%BE%AE%E8%84%89%E8%B5%A0%E9%99%A9'
```
#### 获取单个会话的具体数据
URL: {BaseUrl}/analysis/data?id={主键ID}
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
ResponseBody:
```json
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": {
"sessionId": "telephone_1641386439303_7002", // 会话ID
"recordAudioUrl": "http://api-pre.heyqiwu.cn/api/kaisen/resource/media/audio/telephone_1641386439303_7002/telephone_1641386439303_7002.mp3", // 录音地址
"dialogs": [
{
"timestame": 1641386452000, // 播放时间,毫秒级时间戳
"text": "不记得了", // 文本
"audioUrl": "http://api-pre.heyqiwu.cn/api/kaisen/resource/media/audio/telephone_1641386439303_7002/user_4e0b5b6fcdf544df_5_1.mp3", // 音频地址
"position": 0 // 0:表示用户,1:表示bot
},
{
"timestame": 1641386452000,
"text": "【旁白】没关系,可能您平时太忙忘记了。",
"audioUrl": "http://api-pre.heyqiwu.cn/api/kaisen/resource/media/audio/telephone_1641386439303_7002/bot_38678b6acf7e8b3d7bc9e8f4da777056.mp3",
"position": 1
}
]
}
}
```
Example
```
curl --location --request GET 'http://api-pre.heyqiwu.cn/api/kaisen/analysis/data?id=1109'
```
#### 获取所有的机器人名称
URL: {BaseUrl}/analysis/botName/all
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
ResponseBody:
```json
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": [
"微脉赠险"
]
}
```
Example
```
curl --location --request GET 'http://api-pre.heyqiwu.cn/api/kaisen/analysis/botName/all'
```
#### 获取所有的机器人电话号码
URL: {BaseUrl}/analysis/botNumber/all
METHOD: GET
RequestHeaders:
| key | value |
| :----------- | :------------ |
| Content-Type | application/json;charset=utf-8 |
ResponseBody:
```json
SUCCESS:
{
"code": 1,
"msg": "成功",
"data": [
"7500075"
]
}
```
Example
```
curl --location --request GET 'http://api-pre.heyqiwu.cn/api/kaisen/analysis/botNumber/all'
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment