Bot Framework Composer - "Replace this dialog" 导致错误 400

Bot Framewok Composer - "Replace this dialog" causes an error 400


我正在使用 bot Framework Composer 构建我的第一个聊天机器人,但我没有成功构建一个非常简单的场景。

我仔细查看了 Bot Framework Composer Documentation,但没有找到任何帮助。


我想实现的子场景:

See the Bot Composer Canvas here


我遇到的问题:

1. “重复此对话框”没有像我预期的那样工作。

See the "Repeat the dialog" options here

我是否必须在“重复对话框”操作的“选项”中添加一些内容? 比如循环必须从哪里开始?如果可以,该怎么做?


2。如何将“替换此对话框”用于已使用的场景?

由于我没有成功执行“重复对话”操作,因此我尝试将整个对话分成两个对话,从而将整个对话减半。每个对话都有一个目标:

See the "Ask for infos" dialog here

See the "Confirmation" dialog here

最初的目标是当用户想要编辑他之前输入的内容时,将用户“重定向”到“询问信息”对话框。

但是在这里,它会导致错误:POST400directline/conversations/<conversationId>/activities

“替换对话框”操作同样有一些“选项”,但我没有找到任何东西 in the documentation on this subject


非常感谢帮助新手,我很乐意尝试你给我的解决方案并提出反馈。

祝你有美好的一天,


PS : 你知道关于 Bot Framework Composer 的好教程吗(微软的除外?)

在使用重复对话操作之前,您必须清除存储用户答案的​​变量。它循环的原因是机器人已经在内存中有一个答案,所以它不会再次提示用户。

使用 'Set a property' 操作并将变量值设置为 null,然后再重复对话框