Virtual Agent REST API

Syed Sabiha1
Tera Contributor

Hi, I am working on Virtual Agent integration using Virtual Agent API, when I am trying the following REST API https://instancename.service-now.com/api/sn_va_as_service/bot/integration using Rest API Explorer, the response body is giving success message but unable to get the required response.

The request body which I have given is 

SyedSabiha1_0-1684745723963.png

The response body which I am getting is 

SyedSabiha1_1-1684745756323.png

But the actual response body should be

 

{
"requestId":"asd2423-sda23-qwe23-we23",
"clientSessionId":"",
"nowSessionId":"",
"message":{
"text":"",
"typed":true,
"clientMessageId":"ABC-123"
},
"userId":"beth.anglin",
"body":[
{
"uiType":"OutputText",
"group":"DefaultText",
"value":"Hi, I'm your Virtual Agent. Let me know how I can help you today.",
"maskType":"NONE"
},
{
"uiType":"TopicPickerControl",
"group":"DefaultPicker",
"nluTextEnabled":false,
"promptMsg":"Hi guest, please enter your request or make a selection of what I can help with. You can type help any time when you need help.",
"label":"Show me everything",
"options":[
{
"label":"b2b topic",
"value":"2bb7bd7670de6010f877c7f188266fc7",
"enabled":true
},
{
"label":"Live Agent Support.",
"value":"ce2ee85053130010cf8cddeeff7b12bf",
"enabled":true
}
]
}
],
"score":1
}

 

 

Looking forward for the help.

Thanks & Regards,
Syed Sabiha

 

 

 

2 REPLIES 2

JDua
Tera Contributor

Hi, I am experiencing the same issue. Do we have a solution to proceed?

Arjun2
Tera Contributor

Hi @Syed Sabiha1 

I've seen both the responses appear for me intermittently. I don't recall the exact scenario. However,"status"success" , after the START_CONVERSATION API call is correct. If it's creating IMS and all the parameters in the first call are getting set, the response is fine.

The API call should create IMS, History needs to be present, context variables should be utilised (if at all they are being sent). If all these functioanlities are happening, that's right