请求方法
POST
https://open.sobot.com/open/platform/api.json
请求参数(Request Body)
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| action | 字符串 | 是 | 传值为"wb_session_customer" |
| access_token | 字符串 | 是 | 调用接口凭据 |
| data | 对象 | 是 | 详见下文 |
请求data
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| startDate | 字符串 | 是 | 开始日期(yyyy-MM-dd) |
| endDate | 整型 | 是 | 结束日期(yyyy-MM-dd) |
返回数据
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | 字符串 | 执行结果码,1000代表成功,1001表示失败 |
| data | 对象 | 详见下文 |
返回item
| 参数名 | 类型 | 说明 |
|---|---|---|
| totalConsultSession | 整型 | 总咨询会话 |
| totalValidSession | 整型 | 总有效会话 |
| totalValidSessionRate | 字符型 | 总有效会话率 |
| avgSessionDuration | 字符串 | 平均总会话接待时长 |
| avgTotalSessionDuration | 字符型 | 平均总会话时长 |
| totalInvalidSession | 整型 | 总无效会话 |
请求示例
curl https://open.sobot.com/open/platform/api.json \
-X POST \
-H 'content-type: application/json' \
-d '
{
"action": "wb_session_customer",
"access_token": "xx",//获取access_token
"data": {
"startDate": "xx",
"endDate":xx
}
}'
返回示例
{
"data": {
"item": {
"totalConsultSession": xx,
"totalValidSession": xx,
"totalValidSessionRate": "xx",
"avgSessionDuration": "xx",
"avgTotalSessionDuration": "xx",
"totalInvalidSession": xx
}
},
"code": "1000"
}请求方法
POST
https://open.sobot.com/open/platform/api.json
请求参数(Request Body)
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| action | 字符串 | 是 | 传值为"wb_session_robot" |
| access_token | 字符串 | 是 | 调用接口凭据 |
| data | 对象 | 是 | 详见下文 |
请求data
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| startDate | 字符串 | 是 | 开始日期(yyyy-MM-dd) |
| endDate | 整型 | 是 | 结束日期(yyyy-MM-dd) |
返回数据
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | 字符串 | 执行结果码,1000代表成功,1001表示失败 |
| data | 对象 | 详见下文 |
返回item
| 参数名 | 类型 | 说明 |
|---|---|---|
| consultSession | 整型 | 咨询会话 |
| validSession | 整型 | 有效会话 |
| invalidSession | 整型 | 无效会话 |
| validReceptionRate | 字符串 | 有效接待率 |
| selfReceptionSession | 整型 | 独立接待会话 |
| selfReceptionRate | 字符串 | 独立接待率 |
| toHumanSession | 整型 | 转人工会话 |
| toHumanSessionRate | 字符串 | 转人工会话率 |
| avgSessionDuration | 字符串 | 平均会话时长 |
请求示例
curl https://open.sobot.com/open/platform/api.json \
-X POST \
-H 'content-type: application/json' \
-d '
{
"action": "wb_session_robot",
"access_token": "xx",//获取access_token
"data": {
"startDate": "xx",
"endDate":xx
}
}'
返回示例
{
"data": {
"item": {
"consultSession": xx,
"validSession": xx,
"invalidSession": xx,
"validReceptionRate": xx,
"selfReceptionSession": xx,
"selfReceptionRate":xx,
"toHumanSession": xx,
"toHumanSessionRate": xx,
"avgSessionDuration": xx
}
},
"code": "1000"
}请求方法
POST
https://open.sobot.com/open/platform/api.json
请求参数(Request Body)
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| action | 字符串 | 是 | 传值为"wb_session_human" |
| access_token | 字符串 | 是 | 调用接口凭据 |
| data | 对象 | 是 | 详见下文 |
请求data
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| startDate | 字符串 | 是 | 开始日期(yyyy-MM-dd) |
| endDate | 整型 | 是 | 结束日期(yyyy-MM-dd) |
返回数据
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | 字符串 | 执行结果码,1000代表成功,1001表示失败 |
| data | 对象 | 详见下文 |
返回item
| 参数名 | 类型 | 说明 |
|---|---|---|
| consultSession | 整型 | 咨询会话 |
| selfReceptionSession | 整型 | 独立接待会话 |
| selfReceptionSessionZb | 字符串 | 独立接待会话占比 |
| validSession | 整型 | 有效会话 |
| invalidSession | 整型 | 无效会话 |
| validSessionRate | 字符串 | 有效会话率 |
| validReceptionSession | 整型 | 有效接待会话 |
| invalidReceptionSession | 整型 | 无效接待会话 |
| invalidReceptionRate | 字符串 | 无效接待率 |
| notReceptionSession | 整型 | 未接待会话 |
| notReceptionSessionRate | 字符串 | 未接待会话率 |
| transferSession | 整型 | 转接会话 |
| blankListSession | 整型 | 拉黑会话 |
| avgSessionDuration | 字符串 | 平均人工接待时长 |
| solvedSession | 整型 | 已解决会话 |
| notSolvedSession | 整型 | 未解决会话 |
| notMarkIsSolved | 整型 | 未标注是否解决会话 |
| maxMeantimeRecp | 整型 | 最大同时接待会话 |
| initiativeSession | 整型 | 主动发起会话量 |
| validReceptionRate | 字符串 | 有效接待率 |
请求示例
curl https://open.sobot.com/open/platform/api.json \
-X POST \
-H 'content-type: application/json' \
-d '
{
"action": "wb_session_human",
"access_token": "xx",//获取access_token
"data": {
"startDate": "xx",
"endDate":xx
}
}'
返回示例
{
"data": {
"item": {
"consultSession": xx,
"selfReceptionSession": xx,
"selfReceptionSessionZb": xx,
"validSession": xx,
"invalidSession": xx,
"validSessionRate": xx,
"validReceptionSession": xx,
"invalidReceptionSession": xx,
"invalidReceptionRate": xx,
"notReceptionSession": xx,
"notReceptionSessionRate": xx,
"transferSession": xx,
"blankListSession": xx,
"avgSessionDuration": xx,
"solvedSession": xx,
"notSolvedSession": xx,
"notMarkIsSolved": xx,
"maxMeantimeRecp": xx,
"initiativeSession": xx,
"validReceptionRate": xx
}
},
"code": "1000"
}请求方法
POST
https://open.sobot.com/open/platform/api.json
请求参数(Request Body)
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| action | 字符串 | 是 | 传值为"wb_session_message" |
| access_token | 字符串 | 是 | 调用接口凭据 |
| data | 对象 | 是 | 详见下文 |
请求data
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| startDate | 字符串 | 是 | 开始日期(yyyy-MM-dd) |
| endDate | 整型 | 是 | 结束日期(yyyy-MM-dd) |
返回数据
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | 字符串 | 执行结果码,1000代表成功,1001表示失败 |
| data | 对象 | 详见下文 |
返回item
| 参数名 | 类型 | 说明 |
|---|---|---|
| totalMessage | 整型 | 总会话消息数 |
| robotMessage | 整型 | 机器人消息数 |
| totalCustomerMessage | 整型 | 客户消息数 |
| serviceMessage | 整型 | 客服消息数 |
| avgMessage | Double | 平均每会话消息数 |
| avgCustomerMessage | Double | 平均每会话客户消息数 |
| avgServiceMessge | Double | 平均每会话客服消息数 |
| customerToRobotMessage | 整型 | 客户消息数 |
| robotAvgMessage | Double | 平均每会话消息数 |
| robotAvgCustomerMessage | Double | 平均每会话客户消息数 |
| totalHumanMessage | 整型 | 总人工会话消息数 |
| customerToServiceMessage | 整型 | 客户消息数 |
| serviceMessage | 整型 | 客服消息数 |
| answerThan | 字符串 | 答问比 |
| humanAvgMessage | Double | 平均每会话消息数 |
| humanAvgCustomerMessage | Double | 平均每会话客户消息数 |
| humanAvgServiceMessage | Double | 平均每会话客服消息数 |
| serviceWord | 整型 | 客服字数 |
| avgServiceWord | Double | 平均每会话客服字数 |
| serviceOfflineNum | 整型 | 客服离线消息数 |
请求示例
curl https://open.sobot.com/open/platform/api.json \
-X POST \
-H 'content-type: application/json' \
-d '
{
"action": "wb_session_message",
"access_token": "xx",//获取access_token
"data": {
"startDate": "xx",
"endDate":xx
}
}'
返回示例
{
"data": {
"item": {
"totalMessage": xx,
"robotMessage": xx,
"totalCustomerMessage": xx,
"serviceMessage": xx,
"avgMessage": xx,
"avgCustomerMessage": xx,
"avgServiceMessge": xx,
"customerToRobotMessage": xx,
"robotAvgCustomerMessage": xx,
"robotAvgMessage": xx,
"totalHumanMessage": xx,
"customerToServiceMessage": xx,
"answerThan": xx,
"serviceWord": xx,
"avgServiceWord": xx,
"humanAvgMessage": xx,
"humanAvgCustomerMessage": xx,
"humanAvgServiceMessage": xx,
"serviceOfflineNum": xx
}
},
"code": "1000"
}请求方法
POST
https://open.sobot.com/open/platform/api.json
请求参数(Request Body)
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| action | 字符串 | 是 | 传值为"wb_human_satisfaction" |
| access_token | 字符串 | 是 | 调用接口凭据 |
| data | 对象 | 是 | 详见下文 |
请求data
| 参数名 | 类型 | 必填 | 说明 | |
|---|---|---|---|---|
| startDate | 字符串 | 是 | 开始日期(yyyy-MM-dd) | |
| endDate | 整型 | 是 | 结束日期(yyyy-MM-dd) | |
返回数据
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | 字符串 | 执行结果码,1000代表成功,1001表示失败 |
| data | 对象 | 详见下文 |
返回item
| 参数名 | 类型 | 说明 |
|---|---|---|
| effectSessionCount | 整型 | 有效会话总数 |
| totalTimes | 整型 | 已评价总数 |
| canpinglv | 字符串 | 参评率 |
| initiative | 整型 | 客户主动参评 |
| customActiveEvRatio | 字符串 | 客户主动参评占比 |
| serviceInvEvRatio | 字符串 | 客服邀请参评占比 |
| invites | 整型 | 客服邀请参评 |
| solvedCount | 整型 | 评价解决总数 |
| solved | 整型 | 已解决数 |
| notSolved | 整型 | 未解决数 |
| solvedLv | 字符串 | 已解决率 |
| avgNum | 字符串 | 平均分 |
| good | 整型 | 好评数 |
| goodLv | 字符串 | 好评率 |
| middle | 整型 | 中评数 |
| middleLv | 字符串 | 中评率 |
| bad | 整型 | 差评数 |
| badLv | 字符串 | 差评率 |
| score4 | 整型 | 4分数 |
| score3 | 整型 | 3分数 |
| score2 | 整型 | 2分数 |
| score1 | 整型 | 1分数 |
请求示例
curl https://open.sobot.com/open/platform/api.json \
-X POST \
-H 'content-type: application/json' \
-d '
{
"action": "wb_human_satisfaction",
"access_token": "xx",//获取access_token
"data": {
"startDate": "xx",
"endDate":xx
}
}'
返回示例
{
"data": {
"item": {
"effectSessionCount": xx,
"totalTimes": xx,
"canpinglv": xx,
"initiative": xx,
"invites": xx,
"solvedCount": xx,
"solved": xx,
"notSolved": xx,
"solvedLv": xx,
"avgNum": xx,
"good": xx,
"goodLv": xx,
"middle": xx,
"middleLv": xx,
"bad": xx,
"badLv": xx,
"customActiveEvRatio": xx,
"serviceInvEvRatio": xx,
"score4": xx,
"score3": xx,
"score2": xx,
"score1": xx
}
},
"code": "1000"
}请求方法
POST
https://open.sobot.com/open/platform/api.json
请求参数(Request Body)
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| action | 字符串 | 是 | 传值为"wb_robot_satisfaction" |
| access_token | 字符串 | 是 | 调用接口凭据 |
| data | 对象 | 是 | 详见下文 |
请求data
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| startDate | 字符串 | 是 | 开始日期(yyyy-MM-dd) |
| endDate | 整型 | 是 | 结束日期(yyyy-MM-dd) |
返回数据
| 参数名 | 类型 | 说明 |
|---|---|---|
| code | 字符串 | 执行结果码,1000代表成功,1001表示失败 |
| data | 对象 | 详见下文 |
返回item
| 参数名 | 类型 | 说明 |
|---|---|---|
| effectSessionCount | 整型 | 有效会话总数 |
| totalTimes | 整型 | 已评价总数 |
| canpinglv | 字符串 | 参评率 |
| solved | 整型 | 已解决数 |
| notSolved | 整型 | 未解决数 |
| solvedLv | 字符串 | 已解决率 |
请求示例
curl https://open.sobot.com/open/platform/api.json \
-X POST \
-H 'content-type: application/json' \
-d '
{
"action": "wb_robot_satisfaction",
"access_token": "xx",//获取access_token
"data": {
"startDate": "xx",
"endDate":xx
}
}'
返回示例
{
"data": {
"item": {
"effectSessionCount": xx,
"totalTimes": xx,
"canpinglv": xx,
"solved": xx,
"notSolved": xx,
"solvedLv": xx,
}
},
"code": "1000"
}