- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2022 09:44 PM
Hi, I am working on chatbot integration using Virtual Agent API but when I am trying to send the payload to the OOB endpoint i.e https://instancename.service-now.com/api/sn_va_as_service/bot/integration using Resi API Explorer, I am getting the below-mentioned errors. I tried investigating on my own by checking Script Include which is being called from Scripted Rest API but it seems like the line which is highlighted in the snapshot below is not getting called.
Any input would be highly appreciated 🙂
Errors:
Script Include:
Payload:
{
"requestId": "302bas2be70-sadsa-we32-3eq2-1231ra9",
"action": "START_CONVERSATION",
"botToBot": true,
"clientSessionId": "",
"silentMessage": false,
"message":{
"text": "hola",
"typed": true
},
"userId":"kushal.tiwari",
"emailId":"kushal.t@enableps.com",
"timezone":"America/New_York"
}
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 08:29 AM
HI Kushal,
This error is seen because you have not added token, I had same error. You can use static or hash token.
Try with a static token in this case, it should work.
Go to
- token_verification - create a token like below
- message_auth
Finally check if the sys_cs_provider_application is linked to the message_auth above. Then amend the payload like below.
{
"requestId": "302bas2be70-sadsa-we32-3eq2-1231ra9",
"action": "START_CONVERSATION",
"token": "abcd",
"clientSessionId": "",
"message":{
"text": "",
"typed": true
},
"userId":"kushal.tiwari",
"emailId":"kushal.t@enableps.com",
"timezone":"America/New_York"
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-29-2022 08:29 AM
HI Kushal,
This error is seen because you have not added token, I had same error. You can use static or hash token.
Try with a static token in this case, it should work.
Go to
- token_verification - create a token like below
- message_auth
Finally check if the sys_cs_provider_application is linked to the message_auth above. Then amend the payload like below.
{
"requestId": "302bas2be70-sadsa-we32-3eq2-1231ra9",
"action": "START_CONVERSATION",
"token": "abcd",
"clientSessionId": "",
"message":{
"text": "",
"typed": true
},
"userId":"kushal.tiwari",
"emailId":"kushal.t@enableps.com",
"timezone":"America/New_York"
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 09:01 PM
Hi Murali,
It seems to be working fine now. Thanks mate for the response.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-31-2022 09:47 PM
You've welcome mate!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-02-2022 09:00 PM
Hi Murali,
When I am trying to access the same endpoint with the same payload from Postman, I am getting 400 Bad request error and no log is getting printed either.
Thanks