Action of scenario Editor in Health Bot unable to extract user data

Carmela Mendicino 1 Reputation point
2022-07-28T18:08:40.97+00:00

@tbgangav-MSFT @tbgangav-MSFT

I am made my connection to health bot where I am trying to send initial user details at the time of creating the connection. The connection has been established but while in action of scenario editor, when I try accessing the passed value ,I get undefined.

Please check the connection of JS which I have used :
BotChat.App({
speechOptions: this.speechOptions,
botConnection: this.botConnection,
webSpeechPonyfillFactory: this.webSpeechPonyfillFactory,
attachmentMiddleware,
user: { id: '@WebSession.CurrentUser.FirstName', email:'@WebSession.CurrentUser.Email',location:'@WebSession.CurrentUser.EmployerLocation'},
bot: { id: 'VertieSpeech' },
resize: 'detect'
}, document.getElementById("divBotId"));

Also in the scenario editor I am trying out the following:
function test(){
scenario.var1 = @{initConversationEvent}.user.id ;
return @{initConversationEvent}.user.id;
}

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
941 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.