This API is intended to be used for having a Livechat conversation;
First of all you need to generate a visitor token (any random string);
If whether Livechat is enabled for that server or not
The Livechat widget title
The hexadecimal color of the Livechat widget title bar when the Livechat is online
If the registration form should be displayed or not.
The current conversation room for the current guest user
The current guest user
Array of Livechat triggers.
Array of Livechat departments.
If client-side department switching is allowed
If there are Livechat agents online
The hexadecimal color of the Livechat widget title bar when the Livechat is offline
The message that will be displayed on the Livechat offline form
The message that will be displayed after send a message using the offline form
The message that will be displayed when the Livechat is offline
If the offline form will be displayed when the Livechat is offline
If the VideoCall feature is available
The system message that will be send to the current guest user when the conversation is closed
If the name field will be displayed on Livechat registration form
If the email field will be displayed on Livechat registration form
The title of the widget when the Livechat is offline
The default user language to be set in the Livechat widget
If the Livechat widget will ask the current guest user if they would like a transcript after the conversation is closed
The message to be displayed when asking about transcript
The current agent attending the chart
Call livechat:registerGuest to register guest and get the response containing the visitor's data.
Before sending the first message you have to generate a random
Now you can send messages to method sendMessageLivechat
Subscribe to: stream-room-messages and
Get agent info by calling