Dialogue Cloud

WebChat Loaded Event

Note: An additional Anywhere365 WebAgent for Omnichannel license is required.
Note: An Enterprise license or higher is required to access these features.

After loading successfully, the Anywhere365 WebChat will dispatch a WebChatLoaded event on window. You can use an event listener on window before calling WebChat.load to catch this event and run additional code. At this point the Anywhere365 WebChat has been fully loaded and started. Example:

Copy
Script
window.addEventListener('WebChatLoaded', function() {
// your code here
});