Virtual Agent REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2023 01:29 AM - edited 05-22-2023 01:58 AM
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
The response body which I am getting is
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
- Labels:
-
Virtual Agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 11:14 AM
Hi, I am experiencing the same issue. Do we have a solution to proceed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-27-2024 03:30 AM
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