Dialogue Cloud

WebChat Configure UCC

Note Additional Anywhere365 WebAgent license required.

Note Enterprise license and higher

Note: Configure UCC is introduced in WebChat 2.1.

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:

  1. Web config

  2. Config.json

  3. Primary UCC (first UCC to connect to the WebChatDialogueProvider2)

 

Configuration

You can also define the UCC in the config loaded via the website.

Copy
Script
interface uccName: string

 

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>