You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you tried navigating through the conversation to get to the desired dialog?
something like this:
constchoiceMessage='pick a weather dialog or not';constweatherDialog='weather';constweatherResponse='look\'s like there\'ll be rain today';constnonMatchResponse='Sorry, we didn\'t recognize that';bot.dialog('/',[(session)=>{Prompts.text(session,choiceMessage);},(session,result)=>{if(result.response===weatherDialog){session.beginDialog(weatherDialog);}else{session.send(nonMatchResponse);}}]);bot.dialog(weatherDialog,(session: Session)=>{session.endDialog(weatherResponse);});constweatherMatchTest=newBotTester(bot).sendMessageToBot('hi there!',choiceMessage).sendMessageToBot(weatherDialog,weatherResponse);constnonMatchTest=newBotTester(bot).sendMessageToBot('hi there!',choiceMessage).sendMessageToBot('this will not match',nonMatchResponse);returnweatherMatchTest.runTest().then(()=>nonMatchTest.runTest());
Hello,
Is it possible to change the root id of the dialogs? In the README examples, '/' is always used as the id
bot.dialog('/',...
I receive the below error if I don't initialize a dialog with '/'
Uncaught Error: Dialog[*:/] not found.
Thanks
The text was updated successfully, but these errors were encountered: