我有一个简单的Bot使用在Azure上运行的Microsoft Bot Framework创建,它在所有通道上运行良好 . 直到昨天,当用户选择一个特定的未经测试的选项时,它停止在Facebook Messenger上工作 .
这些是在选择流氓选项时执行的行:
string replyText = "I am not yet ready to answer this question. Please choose another option.";
switch (appointmentBookType){
case Option1:
//Call Option1 Dialog.
break;
case Option2:
//Call Option2 Dialog.
break;
我不断收到“抱歉,我的机器人代码有问题”作为我输入的任何内容的回复 .
这是我在Facebook messenger的Bot Framework开发人员门户中看到的错误:“将此消息发送到您的bot时出错:HTTP状态代码InternalServerError”
我只使用一些HeroCards的对话框 . 我不使用LUIS .
我通过处理以前未处理的条件修复了错误 . 修复bug后有没有办法重启对话?
1 回答
经过一些淘汰后,这终于奏效了:https://docs.botframework.com/en-us/technical-faq/#my-bot-is-stuck--how-can-i-reset-the-conversation