Live Chat JavaScript API

  • Cackle.Chat.invite(text) - dynamic call of the active window invitation (if operator online)

Widget configuration

To change the default behavior of the widget, you need to add or change the settings. This can be done by adding or changing properties and methods javascript widget object, for example:

cackle_widget.push({widget: 'Comment', id: 1, someParams: 'someValue'});
Parameter Type Default value Comment
welcomeText String Text of the first operator message
inviteTime Number Delay in seconds before the call to the active window invitation
inviteText String The text of the active window invitation
audio Link Link to mp3 or ogg file to an audio notification
hideBadge Boolean false Hide badge if all operators offline