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

Yes it is Guest in sys_cs_conversation table. But i have configured the message_auth for new provider application records. anything to be configured extra in message_auth specifically for guest user issue?

 

nagarjun2_2-1673591374363.png

 

 

nagarjun2_0-1673591202002.png

 

Thank you

 

Can you try with some new userID?

Awesome, It worked with different user. But what is the issue?

Can tell for sure. Need proper steps to reproduce the issue. 

But my best guess is, you might have sent some request for that user before message_auth was configured. 
How to fix this:
Delete entries from provider_user_map and sys_cs_channel_user_profile table that were created for the previous userId

Thank you so much for all the help. This is weird issue. i was searching from past 3 days.

Below step should fix the issue.

How to fix this:
Delete entries from provider_user_map and sys_cs_channel_user_profile table that were created for the previous userId