In order to integrate the widget in the website, we need to add some configuration.
window._genesys = {
widgets: {
webchat: {
transport: {
type: 'purecloud-v2-sockets',
dataURL: 'https://api.mypurecloud.com', // replace with API URL matching your region
deploymentKey : 'YOUR_DEPLOYMENTKEY_HERE', // replace with your Deployment ID
orgGuid : 'YOUR_ORGGUID_HERE', // replace with your Organization ID
interactionData: {
routing: {
targetType: 'QUEUE',
targetAddress: 'YOUR_QUEUENAME_HERE',
priority: 2
}
}
}
}
}
};
and use the following script tag:
<script src="https://apps.mypurecloud.com/widgets/9.0/cxbus.min.js" onload="javascript:CXBus.configure({debug:false,pluginsPath:'https://apps.mypurecloud.com/widgets/9.0/plugins/'}); CXBus.loadFile('path/to/widgets.config.js').done(function(){CXBus.loadPlugin('widgets-core')});"></script>
What are https://api.mypurecloud.com
and https://apps.mypurecloud.com
used for?