VCC integration
After installation, you need to apply the following actions to CTLive to work with VCC:
GeneralSettings
Using a mongoDB client, change into GeneralSettings collection the following parameters:
"ct7url" : "http://localhost:8889/VccCTL/contact"
Change accordingly to VCC the sharedSecret
Services
db.getCollection('services').updateMany( {},
{
"$set": {
enableCallbackNow: false,
enableCallbackLater: false,
checkMediaUrl: "http://localhost:8889/VccCTL/Availability"
}
});
DataCollection
Add a new DataCollection with the following value to fetch the VCC variable from the hosted page:
{
"dc_type" : "VCC",
"label" : "VCC",
"isMandatory" : true,
"isVisibleAgent" : true,
"isVisibleCustomer" : false,
"isEditable" : true,
"custom_regexp" : "",
"customValidationErrorMessage" : "",
"value" : "return JSON.stringify(window.VCC)",
"name" : "VCC",
"mode" : "auto"
}
The VCC object is created adding in the customer webpage the following JS snippet:
<script>
var VCCNewContact = {
"from": { "__ref__": "NickName" },
"to": "Chat Contact center",
"queue_name": "Default"
}
var VCCContactWaiting = {
"skills": ["Skill1Example", "Skill2Example"],
"priority": 5.0,
"customer_data": {
"customer_id": "My customer",
"customer_info": "Customer Info Example"
}
}
window.VCC = {};
window.VCC.NewContact = VCCNewContact;
window.VCC.VCCContactWaiting = VCCContactWaiting;
</script>