How can i get caller number and called number dial by caller in smart assist

how can i get caller number and called number dial by caller in smart assist

Hi @rayya.alohatechnolog ,

Thank you for reaching out to Kore.ai Community.
Please refer to the below post, this might be helpful for you.

Thank you,
Srujan Madderla
Kore.ai Community Team

sir above code give caller number i want dialed number typed by caller

hello @rayya.alohatechnolog

We can access the dialed number using the below JSON object in the message node.

{{JSON.stringify(context.BotUserSession.channels[0].handle.dialedNumber)}}

Experience flow and Interactions tab screenshot added below for reference.

Hope this helps!

How do I access sessionId? The sessionId is not part of the channels array, and when I try to collect it using
{{JSON.stringify(context.BotUserSession.sessionId)}} it is giving me {{unresolved}}. When i print the whole context.BotUserSession object i can see the sessionId.

  },
  "thumbnails": []
}

],
“botId”: “xxxxxx”,
“orgId”: “xxxxxxx”,
“accountId”: “xxxxxxxxx”,
“isBB”: 0,
“ms”: 1,
“chnl”: “korevg”,
“isD”: 0,
“lang”: “en”,
“iv”: “GinMrYYf84kNzVQBeDCH0A==”,
“ire”: true,
lModifiedOn”: “2024-01-26T18:00:35.000Z”,
“timestampValue”: 1706292035283,
“__v”: 0,
“sT”: 1,
“sessionId”: “65b3xxxxxxxxf”,
“resourceid”: “messagestore”
}