The Events API allows the customer to hook into various Bold360 AI widget events.
For example, you can use this API to push different Bold360 AI events to a 3rd party BI system (e.g. Universal Analytics) and generate Bold360 AI related Reports.
Supported Events:
// For floating widgets _nRepData["float"] = { //.... // events: { eventName: function(parameters) {} }
//.... // }
// For the embedded widgets _nRepData["embed"] = { //.... // events: { eventName: function(parameters) {} }
//.... // }
// For both widgets _nRepData[" events "] = { eventName: function(parameters) {} };
// Widget loaded: load: function(){alert("widget loaded!");}
// User started typing: userStartedTyping:
function(){alert("user started typing");}
// User asked a question: query:
function(query, isAutoQuestion){alert("user asked: " + query + ". is auto ? : " + isAutoQuestion);}
// Incoming search results: incomingSearchResults:
function(hasResults){alert("incoming search results. has results: " + hasResults);}
// User performed escalation: escalation:
function(type, query){alert("Escalation occurred. type: " + type + ". user query: " + query);}
// User clicked 'Like': like :
function(query, answer){alert("User liked the answer: " + answer + " for the query: " + query);}
< !--do not modify this script -- >
< div class='Nanorep_loadingData' id='NanorepProxyContainer' style='position:absolute;top:-500px;left:0px;' >
< /div >
< script type='text/javascript' >var _nRepData = _nRepData || []; _nRepData['kb'] = '24218399';
_nRepData['float'] = {account: 'nisim', cdcVersion: 3, cdcFrame: '',
scriptVersion: '2.19.2.2', events: { userStartedTyping: function(){alert("user started typing");}} }
/* API here */; (function(){var windowLoadFunc = function(){var _nRepData = window._nRepData || [];
_nRepData['windowLoaded'] = true;if (typeof(_nRepData['windowOnload']) === 'function')
_nRepData['windowOnload']();};if (window.attachEvent)window.attachEvent('onload', windowLoadFunc);
else if (window.addEventListener)window.addEventListener('load', windowLoadFunc, false);
var sc = document.createElement('script');sc.type = 'text/javascript';
sc.async = true;sc.defer = true;sc.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'my.Nanorep.com/widget/scripts/float.js';
var _head = document.getElementsByTagName('head')[0];_head.appendChild(sc);})();
< /script >