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 , I am able to replicate the issue. If i use the same userId for both provider applications. it is when the records is created by Guest user. Which inturn causing some process to not work correctly.

Are you also using the same message_auth record for both provider_application?

No I am not using same message_auth profile. It is different for both.

 

I was able to resolve the issue. I think by default system Links account based on email Id of the user. So in table provider_user_map it is adding single record for each user specific to a single Provider application. I have manually added the record in table provider_user_map for both provider application for a single user. After this it started working fine. I think servicenow need to check on this in future releases. My instance is san diego version.

What version of VA API are you using?

I am using Virtual Agent Api 3.1.0