How to get the nowBotID & is it configurable?

Anay Sarkar
Kilo Contributor

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:

  "requestId": "asd2423-sda23-qwe23-we25", 
  "action": "START_CONVERSATION", 
  "enterpriseId": "ServiceNow", 
  "nowBotId": "A85PWLERF"
  "clientSessionId": "", 
  "nowSessionId": "",
  "message":{ 
    "text": "SENDING FROM POSTMAN", 
    "typed": true, 
    "clientMessageId": "ABC-123" 
  }, 
  "userId": "beth.anglin", 
  "emailId": "beth.anglin@example.com", 
  "timestamp": 1588824102, 
  "timezone": "America/New_York" 
}

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
}
22 REPLIES 22

Rahul Kumar3
ServiceNow Employee
ServiceNow Employee

@nagarjun2 : All these subflows are configured in the sys_cs_provider table. Virtual Agent picks the configuration from the sys_cs_provider table and triggers them internally.

@Rahul Kumar3, Thank you so much for the reply. Could you please be more specific. What is the trigger condition for these subflows?

 

The below doc contains a short description of all the configurable actions and subflows in VA.  https://docs.servicenow.com/en-US/bundle/tokyo-servicenow-platform/page/administer/virtual-agent/tas...

@Rahul Kumar3 , Why is "created by" field is guest user in creating Interaction from va bot api. This is happening only to newly added sys_cs_provider_application record "ABC". Not happening with OOB sys_cs_provider_applocation record "VA Bot to Bot Provider Application"

 

Thank you

Can you please check the consumer and consumer_account filed on sys_cs_conversation table? Is it also "Guest"? 

If that's the case, you might have not configured message_auth on the newly created provider application record.