Skip to content

Webchat config

Webchat predefined and custom configuration

You can override default webchat values or pass a custom values from an admin area to a client side. That allows you to configure a webchat without touching a JavaScript code.

Predefined values

Place webchat configuration in section webchatConfig:

{
    "webchatConfig": {
        "showTeaserAfter": "",
        "hideTeaserAfter": "",
        "setUnreadCounter": "",
        "teaserText": {},
        ...
    },

...
}

showTeaserAfter: Value in seconds to delay to show a teaser widget.

"showTeaserAfter": "5", // Teaser will be shown after 5 seconds
"showTeaserAfter": "0", // Teaser will be shown immediately

hideTeaserAfter: Value in seconds to delay to hide a teaser widget.

"hideTeaserAfter": "15", // Teaser will be hidden after 15 seconds
"hideTeaserAfter": "0", // Teaser will be hidden immediately

setUnreadCounter: Unread counter value.

"setUnreadCounter": "2", // Set 2 unread messages
"setUnreadCounter": "0", // Hide unread counter

teaserText: Text to show in a teaser widget.

"teaserText": {
  "en": "Hello, can we<br>help you?",
  "de": "Hallo, k├Ânnen wir<br/>Ihnen weiterhelfen?"
}

Custom values

Place webchat configuration in section webchatConfig:

{
    "webchatConfig": {
        "key": "value",
        ...
    },

...
}

See example