Getting improper response from Virtual Agent bot integration API

Raghav Aggarwal
Giga Contributor

I am using the Virtual Agent bot integration API to add a bot to my application.
Whenever I send some random message (example - hii) to the API for the first time I get a valid response from the API i.e
find_real_file.png

But after this, if I send some random request to the API, I get `undefined` in the response

Expected- 
find_real_file.png

 

Currently - 
find_real_file.png

 

After the above `hii` request I am getting the following response - 
find_real_file.png

If I send the `hii` message again after this then I get the proper response.

Am I missing out on some configuration?

6 REPLIES 6

Rahul Kumar3
ServiceNow Employee
ServiceNow Employee

hi @Raghav Aggarwal

For the VA API plugin, can you please verify that no object upgrade was skipped because of customizations? 

Also, can you run the below script from Scripts background for any open/in_progress conversation and see if the conversation is getting closed or not?


sn_cs.VASystemObject.faultConversation(conversationId,"test", "","test");

@Rahul Kumar 

What do you mean by "object upgrade" exactly?
I have installed all the updates for VA API if that's what you meant.

The above script is closing the conversation correctly.

Here is the response I got on "Scripts Background"-

find_real_file.png 

Conversation closed - 

find_real_file.png