Web Client Channel Configuration

(vaibhav kansal) #1

Hi Team,
i have created a bot in kore.ai and enable the Web Channel. i am getting below error.
i am using https://bots.kore.ai/api/users/sts 401 (Unauthorized) for JWTurl
index_aa.html:50 Error in JWT get: {“readyState”:4,“responseText”:"{“errors”:[{“msg”:“INVALID_ACCESS_TOKEN”,“code”:41}]}",“responseJSON”:{“errors”:[{“msg”:“INVALID_ACCESS_TOKEN”,“code”:41}]},“status”:401,“statusText”:“Unauthorized”}

Can you pls suggest. i have published the code in kore.ai only.
what will be the JWT URL and from where i can get.
if above url is correct why i am getting the errror. below the code i am using in web SDK.

var _params = {
“clientId”: botOptions.clientId,
“identity”: botOptions.userIdentity,
“aud”: “”,
“isAnonymous”: false
url:‘https://bots.kore.ai/api/users/sts’, //botOptions.JWTUrl,
type: ‘post’,
data: _params,
dataType: ‘json’,
success: function (data) {
options.assertion = data.jwt;
callback(null, options);
error: function (err) {
console.error("Error in JWT get: "+JSON.stringify(err))

(Subrahmanyam Donepudi) #2

You will need to host and maintain the JWT service.

(vaibhav kansal) #3

Could you pls Specify the steps.
or ant sample through which i can do.