Composer 2.0 机器人的自定义操作未执行
Custom Action for Composer 2.0 bot not executing
我正在尝试使用 Node Runtime 实现 MultiplyDialog 示例作为未来自定义操作的演示。
可以在这里找到与此问题相关的代码:https://github.com/alexstojda/adaptive-dialogs-custom-action
问题:对话框从不执行(从不调用MultiplyDialog.beginDialog(...))
我按照这些说明来设置自定义操作,在适用的情况下进行相关调整以在节点中使用,特别是:
- 使用
npm install ../multiply_dialog_package
从 empty_bot
安装 MultiplyDialog 包
- 正在更新
empty_bot/settings/appsettings.json
以包含组件:
"runtimeSettings": {
...
"components": [
{
"name": "multiply-dialog-package"
}
],
}
bot启动没有报错,调用了组件的configureServices
,但是调用Dialog时,有[=17=],下一步未定义dialog.result
行动的。
任何建议或帮助将不胜感激:)
@joshgummersall 通过 GitHub
提供的解决方案
Hey @alexstojda,
I tend to use yarn workspaces for development work. It's a more
reliable way of linking together local packages for development. In
this case, that was all I needed to do to get the multiply dialog
working locally using the Bot Framework Emulator. To test this out:
$ cd path/to/repo
$ git pull
$ npm install -g yarn
$ yarn
$ yarn dev I
Tested this inside a Vagrant VM to ensure I had a clean system.
我正在尝试使用 Node Runtime 实现 MultiplyDialog 示例作为未来自定义操作的演示。
可以在这里找到与此问题相关的代码:https://github.com/alexstojda/adaptive-dialogs-custom-action
问题:对话框从不执行(从不调用MultiplyDialog.beginDialog(...))
我按照这些说明来设置自定义操作,在适用的情况下进行相关调整以在节点中使用,特别是:
- 使用
npm install ../multiply_dialog_package
从empty_bot
安装 MultiplyDialog 包
- 正在更新
empty_bot/settings/appsettings.json
以包含组件:
"runtimeSettings": {
...
"components": [
{
"name": "multiply-dialog-package"
}
],
}
bot启动没有报错,调用了组件的configureServices
,但是调用Dialog时,有[=17=],下一步未定义dialog.result
行动的。
任何建议或帮助将不胜感激:)
@joshgummersall 通过 GitHub
提供的解决方案Hey @alexstojda,
I tend to use yarn workspaces for development work. It's a more reliable way of linking together local packages for development. In this case, that was all I needed to do to get the multiply dialog working locally using the Bot Framework Emulator. To test this out:
$ cd path/to/repo $ git pull $ npm install -g yarn $ yarn $ yarn dev I
Tested this inside a Vagrant VM to ensure I had a clean system.