【问题标题】:Error Connecting Skill to Virtual Assistant Using Botskills Connect使用 Botskills Connect 将技能连接到虚拟助手时出错
【发布时间】:2020-07-17 02:04:24
【问题描述】:

我在尝试将示例技能连接到示例虚拟助手时遇到多个错误。两者都在打字稿中并且可以自行正确运行,但是当我运行botskills connect 时遇到以下错误:

我首先使用 --localManifest 参数 (-l) 运行 botskills 连接:

botskills connect -l "C:\VA\latest-skill\src\manifest\manifest-1.1.json" --ts 

这会返回一个错误,说明要包含 Luis 文件夹的路径:

Updating Dispatch
Adding skill to Dispatch
node.exe : There was an error while connecting the Skill to the Assistant:
At C:\npm\botskills.ps1:15 char:3
+   & "node$exe"  "$basedir/node_modules/botskills/lib/botskills.js" $a ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (There was an er... the Assistant::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
Error: An error ocurred while updating the Dispatch model:
Error: Path to the LUIS folder (C:\VA\latest-assistant\Deployment\Resources\Skills) leads to a nonexistent folder.
Remember to use the argument '--luisFolder' for your Skill's LUIS folder.

然后我尝试包含 --luisFolder 参数,但使用 --dispatchFolder 参数时出错:

Updating Dispatch
Adding skill to Dispatch
node.exe : There was an error while connecting the Skill to the Assistant:
At C:\npm\botskills.ps1:15 char:3
+   & "node$exe"  "$basedir/node_modules/botskills/lib/botskills.js" $a ...
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (There was an er... the Assistant::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError
 
Error: An error ocurred while updating the Dispatch model:
Error: Path to the Dispatch folder (C:\VA\latest-assistant\Deployment\Resources\Dispatch\en-us) leads to a nonexistent folder.
Remember to use the argument '--dispatchFolder' for your Assistant's Dispatch folder.

Typescript 生成的示例技能代码中没有这样的文件夹 - 这是文件夹结构的样子:

这是我目前卡住的地方。可以手动创建调度文件夹吗?这个参数还有其他方法吗?任何进一步的指导将不胜感激,谢谢。

【问题讨论】:

标签: typescript azure botframework


【解决方案1】:

跟进 Ram 的评论:您的命令指向“本地”清单:

botskills connect -l "C:\VA\latest-skill\src\manifest\manifest-1.1.json" --ts

什么时候应该是您部署的技能位置:

botskills connect --remoteManifest "https://<YOUR_SKILL_NAME>.azurewebsites.net/manifest/manifest-1.1.json" --ts

在尝试将其连接到您的 VA 之前,请确保您的技能已部署。部署后,运行 botskills connect 命令,并将其指向已部署的清单。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2020-01-25
    • 2019-12-11
    • 1970-01-01
    • 2021-07-16
    • 1970-01-01
    • 2017-06-23
    • 2015-06-02
    • 1970-01-01
    相关资源
    最近更新 更多