Widget Escalation API
Endpoint for connecting agents with customers when an escalation is triggered
Request
- AuthorizationstringRequired
String API Key for the botId. The key can be generated on custom CRM integration page in our Ultimate.ai Dashboard. Please see Authentication article to learn more.
- botidstringRequired
The ID of the bot that is sending the event.
Body
Requiredapplication/json
- platformConversationIdstringRequired
An ID provided by the custom CRM to identify the conversation. The custom CRM application can decide the format.
- eventTypestringRequired
- textstring
Text of the agent's message, if the eventType is 'message'
- agentstring
Agent's name, if the eventType is 'escalationSuccess'
- agentAvatarstring
Agent's avatar, if the eventType is 'escalationSuccess'
- queuePositionstring
Queue position, if the eventType is 'escalationQueueUpdate'
- waitingTimestring
Waiting time, if the eventType is 'escalationQueueUpdate'
Response
The request has been acknowledge and will be processed. The actual response will come through webhooks.
Request Body
{ "platformConversationId": "string", "eventType": "string", "text": "string", "agent": "string", "agentAvatar": "string", "queuePosition": "string", "waitingTime": "string"}