Using OneAgentWeb SDK

This section gives the information needed to understand the functions provided in the OneAgentWeb SDK.

To get started, using it, you only need to add the oneAgentSDK.js file to the script page. For example :

      <script src="https://<yourNubitalkInstance>/OneAgentWeb/Scripts/agentsdk/oneagentSDK.js"></script>

and when the page loads, make a request to the global function "var api = getAgentAPI();"

Also, to register to receive the OneContact events just add a function to the event you want to handle. For example:

api.onCallConnected = function(event){
            console.log(event);

Have more questions? Submit a request