How to get the nowBotID & is it configurable?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 02:34 AM
How to get the nowBotID ? which is sent with the request from Inbound Rest Endpoint
https://<instance-url>/api/sn_va_as_service/bot/integration
Is nowBotID configurable, Can we pass our own ID?, And how to access it at the Outbound Response ?
Inbound request Body:
My Outbound Response at my endpoint:
{ "requestId": "asd2423-sda23-qwe23-we25", "clientSessionId": "", "nowSessionId": "", "message": { "text": "SENDING FROM POSTMAN", "typed": true, "clientMessageId": "ABC-123" }, "userId": "beth.anglin", "body": [ { "uiType": "OutputText", "group": "DefaultText", "value": "I am sorry but I didn't understand your request.", "maskType": "NONE" }, { "uiType": "OutputText", "group": "DefaultText", "value": "Please try giving me your request in a different way. I'm currently better at understanding short sentences.", "maskType": "NONE" } ], "score": 0 }
- Labels:
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2022 06:10 AM
Hi Anay,
NowBotID is nothing but to differentiate bots. Even if you don't use this, the API will work. You can just name your bot and send it as a value.
Q: How to get the nowBotID in the JSON?
A: This is an ID required to distinguish between multiple ServiceNow bots if you have them. If you only have one ServiceNow bot, you can ignore this field.
More on this parameter here,
https://community.servicenow.com/community?id=community_article&sys_id=080e3903dbc4e4107d3e02d5ca96198c
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2023 10:49 PM - edited 01-07-2023 10:50 PM
Hi,
I have to configure multiple Provider applications/bots in servicenow. As of now i have configured a bot using OOTB objects and it is working perfectly fine. Now i want to configure few more custom bots in servicenow. Searched many pages but not enough info provided. Request someone to assist me with below queries:
1. How to configure multiple bots/Provided application with different static token each?
2. How to configure multiple outbound Rest messages, having respective outbound rest message for each bot.
3. Will this nowBotId helps me somehow?
Really appreciate the assistance. Thank you
Regards,
Nagarjun S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2023 09:53 PM
Step 1: Make Sure you are using VA API 3.0.0 or the latest.
Step 2: Create a new record in the sys_cs_provider_application table
- a) Open sys_cs_provider_application new record form.
- b) Name = Any Name
- c) Provider = VA Bot to Bot Provider
- d) Inbound Id = “Id unique to primary bot”
- e) Save
Step 3: Create a new Rest Message (In Virtual Agent API scope)
- Search for Rest Message in filter Navigator and and create a new record (sys_rest_message)
- Give the same name as your sys_cs_provider_application record. (same name as in 2.b)
- Endpoint = Primary bot endpoint
- save
- Open Rest Message Record created at 3.a
- Under Http Method related list: Click on New. And provide the below details
- name = postMessage
- HTTP Method = Post
- Configure the EndPoint and save.
Add the parameter appInboundId in your request body.
{
"requestId": "",
"clientSessionId": "",
"message": {
"attachment": {},
"text": "",
"typed":
},
"contextVariables": {},
"appInboundId":"same as given in 2.d",
"userId": “",
"emailId": "
}
Note :
1) If appInboundId is not provided in the payload or the appInboundId is invalid, VA API will pick the default provider Application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2023 08:59 PM - edited 01-10-2023 09:03 PM
Hi Rahul,
Thank you so much for the reply. It worked
I have one more question:
1. From where the subflow: Virtual Agent - Bot to Bot Sender is being called or triggered?
2. There are many flowdesigner flows available for virtual agent api, Where are these subflows being called, searched the system but not able to find.
Regards,
Nagarjun S