Configuration
Example
if(!window._genesys)window._genesys = {}; if(!window._gt)window._gt = []; var sServer = "https://api.genesyscloud.com"; window._genesys.cxwidget = { webchat: { apikey: "m6gLKXREBMOK8VAlygOHHLLn3eNkgYjG", dataURL: "https://api.genesyscloud.com/gms-chat/2/test", userData: {}, emojis: true, actionsMenu: true, autoInvite: { enabled: false, timeToInviteSeconds: 10, inviteTimeoutSeconds: 30 }, chatButton: { enabled: true, template: "", openDelay: 1000, effectDuration: 300, hideDuringInvite: true } } };
Options
| Option | Type | Description |
|---|---|---|
| chatButton.enabled | boolean | Enable/Disable chat button on screen |
| chatButton.openDelay | number | Number of milliseconds before displaying chat button on screen |
| chatButton.template | string | Custom HTML string template for chat button |
| chatButton.effect | string | Type of animation effect when revealing chat button. 'slide' or 'fade' |
| chatButton.effectDuration | number | Length of animation effect in milliseconds |
| chatButton.hideDuringInvite | boolean | When auto-invite feature is activated, hide the chat button. When invite is dismissed, reveal the chat button again. |
| autoInvite.enabled | boolean | Enable/Disable auto-invite feature. Automatically invites user to chat after user idles on page for preset time |
| autoInvite.timeToInviteSeconds | number | Number of seconds of idle time before inviting customer to chat |
| autoInvite.inviteTimeoutSeconds | number | Nunber of seconds to wait, after showing invite, before closing chat invite |
| emojis | boolean | Enable/Disable Emoji menu inside chat message input |
| actionsMenu | boolean | Enable/Disable actions menu next to chat message input |
Comments or questions about this documentation? Contact us for support!
