Documentation

Livechat Realtime API

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);
  • Call livechat:getInitialData passing visitorToken as first argument, the response will be an object containing a livechat configuration object with following properties:
Field Type Description
enabled Boolean If wheter livechat is enabled for that server or not
online Boolean If there are livechat agents online
room String The current conversation room for the current guest user
registrationForm Boolean If the registration form should be displayed or not.
displayOfflineForm Boolean If should show a contact form if no agents online.
triggers Array Array of livechat triggers.
departments Array Array of livechat departments.