WebChat Configure UCC
Note: An Enterprise license or higher is required to access these features.
Introduction
Both the WebChat 2 and the WebChatDialogueProvider2 supports multiple UCC's. This enabled web-developers to connect to specific UCC's based on the page navigation or other variables. The UCC can be set in 2 locations.
Order
Which UCC is loaded is based on the following order:
-
Web config
-
Config.json
-
Primary UCC (first UCC to connect to the WebChatDialogueProvider2)
Configuration
You can also define the UCC in the config loaded via the website.
Example
Below an example script that can be loaded into your website's html. In this example we loaded a webchat that is connected to "ucc_sales":
Copy
HTML
<script type="text/javascript" src="webchat.bootstrap.js"></script>
<script>
window.onload = function() {
const config = {
uccName:'ucc_support',
}
};
WebChat.load(config);
};
</script>