WebChat Configure UCC

Introduction

Both the WebChat 2 and the WebChatDialogueProvider2 supports multiple '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.

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":

HTML
<script type="text/javascript" src="webchat.bootstrap.js"></script>
<script>
window.onload = function() {
	const config = {
        	uccName:'ucc_support',
		}
	};
WebChat.load(config);
};
</script>