Action of scenario Editor in Health Bot unable to extract user data
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;
}