https://www.example.com.
Example:https://www.example.com?SdkAppid=$SDKAppID&CallbackCommand=$CallbackCommand&contenttype=json&ClientIP=$ClientIP&OptPlatform=$OptPlatform
Parameter | Description |
https | The request protocol is HTTPS, and the request method is POST. |
www.example.com | Callback URL |
SdkAppid | Assigned SDKAppID in the Chat console when creating an application |
CallbackCommand | Fixed as ChatBot.OnAssignHuman |
contenttype | The value is fixed as JSON. |
ClientIP | Client IP address. For example, 127.0.0.1. |
OptPlatform | Client platform. For the parameter values, see the description of the OptPlatform parameter in Third-Party Callback Introduction: Callback Protocol. |
{"CallbackCommand": "ChatBot.OnAssignHuman", // Callback command."SessionId":"aa-bb-cc-dd" //session ID"ClientUserId":"123", // User ID that triggered the transfer to human customer service request"EventTime": 1670574414123 //A timestamp}
Field | Type | Description |
CallbackCommand | String | Callback command |
SessionId | String | Session ID of the session |
ClientUserId | String | User ID that triggered the transfer to live agent request |
EventTime | Integer | Event-triggered timestamp, in milliseconds. |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"AgentGroupId": 6521, //The business returns the specified Agent Group ID"AgentIdList": ["svc1@tencent.com","svc2@tencent.com"] //The business returns the assigned customer service agent list. The customer service ID needs to be filled with the customer service email.}
Field | Type | Required | Description |
ActionStatus | String | Required | Request processing result: OK indicates successful processing. FAIL indicates failure. |
ErrorCode | Integer | Required | Error Code: 0 indicates successful processing. Non-zero indicates processing failure. |
AgentGroupId | Integer | Optional. | Returns the target agent group ID. If only this field is provided, the Chat backend will assign an agent from this group to serve the user. |
AgentIdList | Array | Optional. | Returns the target agent list. If this field is specified, an agent from the list will be sequentially routed according to the idle rule. Here, the Agent ID needs to fill in the agent email. |
Feedback