Parameter | Description |
https | The request protocol is HTTPS, and the method is POST |
www.example.com | Callback URL |
SdkAppid | The SDKAppID assigned in the Instant Messaging IM console when creating the application |
CallbackCommand | Fixed as ChatBot.OnAssignAgent |
contenttype | Fixed value as JSON |
ClientIP | Client IP, format such as: 127.0.0.1 |
OptPlatform | the meaning of parameters in OptPlatform |
{"CallbackCommand": "ChatBot.OnAssignAgent", //Webhook command"SessionId":"aa-bb-cc-dd", //SessionID of the conversation"ClientUserId":"123", // User ID of the client triggering the request for human assistance"EventTime": 1670574414123 //Timestamp}
Field | Type | Description |
CallbackCommand | String | Webhook command |
SessionId | String | SessionID of the conversation |
ClientUserId | String | User ID of the client triggering the request for human assistance |
EventTime | String | Timestamp of the event in milliseconds |
{"ActionStatus": "OK","ErrorInfo": "","ErrorCode": 0,"AgentGroupId": 6521, //Agent Group ID sent from your end"AgentIdList": ["penn_svc","dramon_svc"] //List of agent sent from your end}
Field | Type | Attribute | Description |
ActionStatus | String | Required | Result of the request processing: OK for success FAIL for failure |
ErrorCode | Integer | Required | Error code: 0 for successful processing and sends RspData back to the smart robot 1 for failure, RspData is ignored |
AgentGroupId | Integer | Optional | ID of the agent group returned from your end; if only this field is provided, the IM backend will assign agent from this agent group |
AgentIdList | Array | Optional | List of agents returned from your end; if specified, one agent from the list will be assigned based on availability rules |
Was this page helpful?