Can I integrate third party chatbot into servicenow chat window?

rupeshgaikwad
Kilo Explorer

Can I integrate third party chatbot into servicenow chat window?

17 REPLIES 17

Chuck Tomasi
Tera Patron

The short answer is - yes. It requires some scripting to wire the bits together on ServiceNow's side, but it can be done.



chrisc. did this for a PoV with Watson's conversation service recently. Perhaps he can provide some details.


Hi


Can you suggest some syntax or some sample code for integrate such requirement of chatbot.


Hi,



I tried the following client script to call the third party API   onLoad of the form, but it gives the following error.



Access to Script Include https://bot.api.ai/609835b0-450c-43d0-b73a-e236b2376829 blocked from scope: x_87414_demo_appli



function onLoad() {


    //Type appropriate comment here, and begin script below


  var ga= new GlideAjax('https://bot.api.ai/609835b0-450c-43d0-b73a-e236b2376829');


  ga.getXML(HelloWorldParse);



  function HelloWorldParse(response) {


  var answer = response.responseXML.documentElement.getAttribute("answer");


  alert(answer); }


   


}



Please suggest what I am doing wrong.


When using GlideAjax, you specify the name of the script include, not the path.



Ex:



var ga = new GlideAjax('MyScriptInclude');