ServiceNow Virtual Agent API Integration

shishirsapkal
Tera Contributor

Hi!

I am trying to run a remote action using ServiceNow Virtual Agent which will return the device health from a third party tool called Nexthink. I have created the required REST Message and HTTP method to invoke the API call. I have also created a topic in Virtual Agent Designer which contains a script to call the REST message and return the response. I will attach the code below. I am able to get correct response through the REST message, but I am not able to parse the response or output through Virtual Agent. Any help would be appreciated. 

 

1 ACCEPTED SOLUTION

@shishirsapkal 

 

Please try replacing 

vaVars.responseBody

 

with 

var responseBody

  in both the codes and retry.


Please mark this response as correct and helpful if it assisted you with your question.

View solution in original post

13 REPLIES 13

Ramakrishna Rao
Tera Contributor

Can you provide the detailed steps of how you integrated servicenow with nexthink?

Create an Application Registry to connect to the NexThink

Create REST Message using that OAuth profile you just built

Create HTTP methods on that REST Message for different NexThink remote actions or query pulls

 

In virtual agent you can then tap into these, but one thing I did was query the CMDB for the device that user was assigned, and had them confirm that was the device they are on... otherwise you don't know what device to execute the remote action on!

 

I have created a action in flow designer how virtual agent can invoke this action

I have created action in flow designer how can i invoke that into virtual agent