产品动态
关于云联络中心术语更新
https://www.example.com。
示例:https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json&ClientIP=$ClientIP&OptPlatform=$OptPlatform
参数 | 说明 |
https | 请求协议为 HTTPS,请求方式为 POST |
www.example.com | 回调 URL |
SdkAppid | 创建应用时在即时通信 IM 控制台分配的 SDKAppID |
CallbackCommand | 固定为 Desk.SessionEventNotify |
contenttype | 固定值为 JSON |
ClientIP | 客户端 IP,格式例如:127.0.0.1 |
{"CallbackCommand": "Desk.SessionEventNotify","SessionId": "2baf4d84-beb4-4607-a1ea-6ebcaef3e0e6","Event": "ChatBot.UserSendMsg","EventTime": 1725540020017,"ChannelType": "SDK","ClientUserId": "your_user_id","CustomerServiceId": "@customer_service_account","AgentId": "test@qq.com","MsgKey": "152_1600012345_abcdefg","MsgBody": [{"MsgType": "TIMTextElem","MsgContent": {"Text": "请问如何申请退费?"}}],"CloudCustomData": "your cloud custom data","IsContactUser": false,"SatisfactionSelected": 5}
字段 | 类型 | 说明 |
CallbackCommand | String | 回调命令 |
SessionId | String | 会话的 SessionID |
Event | String | 事件类型: 详见事件类型列表及说明 |
EventTime | Integer | 事件触发的毫秒级别时间戳 |
ChannelType | String | 集成方式: SDK:SDK 集成,对应智能客服管理端的“应用/客户端”集成 Web(H5):Web 集成,对应智能客服管理端的“网页(H5)”集成 |
ClientUserId | String | 用户的 UserID |
CustomerServiceId | String | 客服号的 UserID |
AgentId | String | 人工客服 ID |
MsgKey | String | 消息回调的消息 Key |
MsgBody | Array | |
CloudCustomData | String | |
IsContactUser | Bool | 是否客服主动联系用户 |
SatisfactionSelected | Integer | 满意度评价星级(1 ~ 5),例如:5代表评价为五星 |
事件类型 | 说明 |
SessionBegin | 会话开始 |
ChatBot.UserSendMsg | 机器人阶段中用户发送的消息 |
ChatBot.RobotSendMsg | 机器人阶段中机器人回复的消息 |
Human.UserSendMsg | 人工阶段中用户发送的消息 |
Human.AgentSendMsg | 人工阶段中客服发送的消息 |
TransferringToHuman | 转人工中 |
TransferringToHumanWait | 转人工排队中 |
TransferToHumanSuccess | 转人工成功 |
NoAgentOnline | 无人工客服在线 |
AgentForward | 客服转接 |
SatisfactionSelected | 满意度评价 |
SessionUserEnd | 用户结束会话 |
SessionAgentEnd | 客服结束会话 |
SessionUserTimeoutEnd | 用户应答超时结束会话 |
SessionAgentTimeoutEnd | 客服应答超时结束会话 |
SessionPendingAutoFinishEnd | 排队中自动结束(用户离线) |
SessionEnd | 会话结束 |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0}
字段 | 类型 | 属性 | 说明 |
ActionStatus | String | 必填 | 请求处理的结果,OK 表示处理成功,FAIL 表示失败 |
ErrorCode | Integer | 必填 | 错误码,此处填0表示忽略应答结果 |
ErrorInfo | String | 必填 | 错误信息 |
文档反馈