简要描述:
对话记录查询
接口版本:
| 版本号 | 制定人 | 制定日期 | 修订日期 |
|---|---|---|---|
| 1.0 | 王力 | 2019-04-17 | 2019-04-23 |
接口说明:
| 请求方式 | 接口地址 | Content-Type |
|---|---|---|
| GET | /dialog/find | none |
请求参数说明:
| 名称 | 提交 | 必填 | 数据类型 | 参数说明 |
|---|---|---|---|---|
| appId | json | Y | String | 机器人ID |
| customerId | json | Y | String | 用户ID |
| date | json | Y | String | 日期 |
请求参数示例:
{
“customerId”: “1234”,
“appId”: “02c81872-0044-41ca-a5d5-2cc2f79e15ac”
}
返回参数说明:
| 参数名 | 必填 | 类型 | 说明 |
|---|---|---|---|
| errorCode | 是 | int | 错误码(0表示成功) |
| errorMsg | 是 | string | 描述信息 |
| count | 是 | int | 数据行数 |
| data | 是 | 数组 | 数据内容,内容参考数据设置表BotModel |
返回示例:
正确时返回
{
"data": [
{
"createTime": "2019-04-25 17:19:42",
"channel": "1234",
"appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac",
"updateBy": "",
"updateTime": "",
"request": {
"q": "你好啊",
"signal": "",
"service": "",
"slot": {}
},
"response": {
"meta_process_milliseconds": 130,
"intents": [
{
"outputs": [
{
"type": "dialog",
"property": {
"text": "可爱的小朋友,你下午学习了吗? ",
"emotion": "suspect"
}
},
{
"type": "wechat.text",
"property": {
"text": "可爱的小朋友,你下午学习了吗? "
}
}
],
"score": "0",
"action": "dialog",
"scoreColor": "c1",
"id": "default-intent-id",
"result": {
"text": "可爱的小朋友,你下午学习了吗? ",
"type": "dialog"
}
}
],
"msg_id": "abe0642c-985b-4c89-bb01-210914ce6dc5",
"_text": "你好啊"
},
"_id": "abc7b9e4-a855-4967-89a6-1563ca521897",
"customerId": "1234",
"create": "2019-04-25",
"status": "Normal",
"chatId": "1234",
"sessionId": "1234",
"matchingIntentId": "1234"
},
{
"createTime": "2019-04-25 17:19:43",
"channel": "1234",
"appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac",
"updateBy": "",
"updateTime": "",
"request": {
"q": "你好啊",
"signal": "",
"service": "",
"slot": {}
},
"response": {
"meta_process_milliseconds": 130,
"intents": [
{
"outputs": [
{
"type": "dialog",
"property": {
"text": "可爱的小朋友,你下午学习了吗? ",
"emotion": "suspect"
}
},
{
"type": "wechat.text",
"property": {
"text": "可爱的小朋友,你下午学习了吗? "
}
}
],
"score": "0",
"action": "dialog",
"scoreColor": "c1",
"id": "default-intent-id",
"result": {
"text": "可爱的小朋友,你下午学习了吗? ",
"type": "dialog"
}
}
],
"msg_id": "abe0642c-985b-4c89-bb01-210914ce6dc5",
"_text": "你好啊"
},
"_id": "10776b9a-e63b-40fb-9c97-c32f18b0ba08",
"customerId": "1234",
"create": "2019-04-25",
"status": "Normal",
"chatId": "1234",
"sessionId": "1234",
"matchingIntentId": "1234"
},
{
"createTime": "2019-04-25 17:19:53",
"channel": "1234",
"appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac",
"updateBy": "",
"updateTime": "",
"request": {
"q": "你好啊",
"signal": "",
"service": "",
"slot": {}
},
"response": {
"meta_process_milliseconds": 130,
"intents": [
{
"outputs": [
{
"type": "dialog",
"property": {
"text": "可爱的小朋友,你下午学习了吗? ",
"emotion": "suspect"
}
},
{
"type": "wechat.text",
"property": {
"text": "可爱的小朋友,你下午学习了吗? "
}
}
],
"score": "0",
"action": "dialog",
"scoreColor": "c1",
"id": "default-intent-id",
"result": {
"text": "可爱的小朋友,你下午学习了吗? ",
"type": "dialog"
}
}
],
"msg_id": "abe0642c-985b-4c89-bb01-210914ce6dc5",
"_text": "你好啊"
},
"_id": "2ec10743-dcde-404b-a8f3-c602f9fc999d",
"customerId": "1234",
"create": "2019-04-25",
"status": "Normal",
"chatId": "1234",
"sessionId": "1234",
"matchingIntentId": "1234"
},
{
"createTime": "2019-04-25 17:19:53",
"channel": "1234",
"appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac",
"updateBy": "",
"updateTime": "",
"request": {
"q": "你好啊",
"signal": "",
"service": "",
"slot": {}
},
"response": {
"meta_process_milliseconds": 130,
"intents": [
{
"outputs": [
{
"type": "dialog",
"property": {
"text": "可爱的小朋友,你下午学习了吗? ",
"emotion": "suspect"
}
},
{
"type": "wechat.text",
"property": {
"text": "可爱的小朋友,你下午学习了吗? "
}
}
],
"score": "0",
"action": "dialog",
"scoreColor": "c1",
"id": "default-intent-id",
"result": {
"text": "可爱的小朋友,你下午学习了吗? ",
"type": "dialog"
}
}
],
"msg_id": "abe0642c-985b-4c89-bb01-210914ce6dc5",
"_text": "你好啊"
},
"_id": "082556a6-bc74-4cb5-a48a-c35c6e5674e6",
"customerId": "1234",
"create": "2019-04-25",
"status": "Normal",
"chatId": "1234",
"sessionId": "1234",
"matchingIntentId": "1234"
},
{
"createTime": "2019-04-25 17:19:55",
"channel": "1234",
"appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac",
"updateBy": "",
"updateTime": "",
"request": {
"q": "你好啊",
"signal": "",
"service": "",
"slot": {}
},
"response": {
"meta_process_milliseconds": 130,
"intents": [
{
"outputs": [
{
"type": "dialog",
"property": {
"text": "可爱的小朋友,你下午学习了吗? ",
"emotion": "suspect"
}
},
{
"type": "wechat.text",
"property": {
"text": "可爱的小朋友,你下午学习了吗? "
}
}
],
"score": "0",
"action": "dialog",
"scoreColor": "c1",
"id": "default-intent-id",
"result": {
"text": "可爱的小朋友,你下午学习了吗? ",
"type": "dialog"
}
}
],
"msg_id": "abe0642c-985b-4c89-bb01-210914ce6dc5",
"_text": "你好啊"
},
"_id": "6adc81f4-db39-4f68-a654-043864603059",
"customerId": "1234",
"create": "2019-04-25",
"status": "Normal",
"chatId": "1234",
"sessionId": "1234",
"matchingIntentId": "1234"
},
{
"createTime": "2019-04-25 17:19:56",
"channel": "1234",
"appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac",
"updateBy": "",
"updateTime": "",
"request": {
"q": "你好啊",
"signal": "",
"service": "",
"slot": {}
},
"response": {
"meta_process_milliseconds": 130,
"intents": [
{
"outputs": [
{
"type": "dialog",
"property": {
"text": "可爱的小朋友,你下午学习了吗? ",
"emotion": "suspect"
}
},
{
"type": "wechat.text",
"property": {
"text": "可爱的小朋友,你下午学习了吗? "
}
}
],
"score": "0",
"action": "dialog",
"scoreColor": "c1",
"id": "default-intent-id",
"result": {
"text": "可爱的小朋友,你下午学习了吗? ",
"type": "dialog"
}
}
],
"msg_id": "abe0642c-985b-4c89-bb01-210914ce6dc5",
"_text": "你好啊"
},
"_id": "51ae9a33-70b1-44e1-a87d-2c588e1a3930",
"customerId": "1234",
"create": "2019-04-25",
"status": "Normal",
"chatId": "1234",
"sessionId": "1234",
"matchingIntentId": "1234"
},
{
"createTime": "2019-04-25 17:19:56",
"channel": "1234",
"appId": "02c81872-0044-41ca-a5d5-2cc2f79e15ac",
"updateBy": "",
"updateTime": "",
"request": {
"q": "你好啊",
"signal": "",
"service": "",
"slot": {}
},
"response": {
"meta_process_milliseconds": 130,
"intents": [
{
"outputs": [
{
"type": "dialog",
"property": {
"text": "可爱的小朋友,你下午学习了吗? ",
"emotion": "suspect"
}
},
{
"type": "wechat.text",
"property": {
"text": "可爱的小朋友,你下午学习了吗? "
}
}
],
"score": "0",
"action": "dialog",
"scoreColor": "c1",
"id": "default-intent-id",
"result": {
"text": "可爱的小朋友,你下午学习了吗? ",
"type": "dialog"
}
}
],
"msg_id": "abe0642c-985b-4c89-bb01-210914ce6dc5",
"_text": "你好啊"
},
"_id": "50d2664f-b98d-4864-9c85-8f2c42673882",
"customerId": "1234",
"create": "2019-04-25",
"status": "Normal",
"chatId": "1234",
"sessionId": "1234",
"matchingIntentId": "1234"
}
],
"errorCode": 0,
"errorMsg": "请求成功",
"count": 7
}错误时返回
{
"errorCode": 100,
"errorMsg": "系统错误"
}备注:
- 更多返回错误代码请看首页的错误代码描述
文档更新时间: 2019-04-25 17:25 作者:彭湃