Websocket
Setup
Complete the steps mentioned in the Setup guide.
Use
Use the following code to review conversation message types that you can use with the Aisera Conversation Websocket.
Most other usage details are same as those for the Conversation API.
Sample Requests
You can use the following sample payloads to create requests using websockets with the Conversation Websocket.
Basic Request
{
"token": "<token>",
"userId": "<userid>",
"userEmail": "<userEmail>",
"channelId": "<channelId>",
"data": {
"text": "Contact live agent",
"sessionVars": {},
"reqId": "1",
"isKL": false
}
}Interactive Requests
Form Submit Requests
SessionVar Requests
Needs Session History Requests
IsReset Requests
Logout User - Finish Current Session
Go Back
Start Over
Websocket Client Files
Your Aisera team can provide you with a .zip package for a websocket client. If you don't receive the .zip package, you can build one using the following files.
Message Types
Postman Collection




Sample Client Implementation
The ReadMe file in the package will help you configure and run the sample client.
Last updated
Was this helpful?
