To integrate the Web Self Service application into your HTML page, insert the following JavaScript code snippet anywhere in your HTML page code:
<script> var JavaScript={load:function(c,d){ var a=document.createElement(“script"),b;a.setAttribute("src",c); if(d){a.onreadystatechange=a.onload=function(){if(!b){var e=c.indexOf("agent-app/"); if(e>0){window.agentbaseurl=c.substr(0,e+"agent-app/".length);
JavaScript.load("http://10.90.18.72:8080/agent-app/js/agentpopover.js", function() { agentinit({ appkey:"526e3c5de4b0588fd09c9b67", accountId:"JacadaTrial", server:"http://23.23.154.19:8080"}); }); </script> |
Input parameters are described in the following table. All parameters, except for server, are mandatory.
Parameter |
Description/Notes |
---|---|
agentpopover.js |
The URL of the agentpopover.js file that holds the bootstrap code of the Web Self Service client. Generally this is provided by Jacada, and it points to a public location reachable from anywhere. |
appkey |
A unique identifier for the application (as defined in the Jacada Interaction Server Admin Console). |
accountId |
The tenant ID. |
server |
The location of the Interaction server. If this parameter is not provided, the location of the bootstrap code is used as the Interaction server. |
For a list of additional parameters that can be passed to the agentinit() function, refer to AgentPopoverOptions Object Specification.
After integrating the code snippet, the tab of the Web Self Service application should be displayed at the bottom of your HTML page. Clicking it opens the popover window that shows a list of Interactions or directly starts the Interaction you have specified in the parameter passed by the code snippet.