使用Botskills Connect将技能连接到虚拟助手时出错

时间:2020-07-10 14:59:27

标签: typescript azure botframework

尝试将示例技能连接到示例虚拟助手时遇到多个错误。两者都在打字稿中并且可以正常运行,但是当我运行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中生成的示例技能代码中没有此类文件夹-文件夹结构如下所示:

Skill Deployment Folder

这是我目前遇到的问题。可以手动创建调度文件夹吗?是否还有其他方法可以解决此参数?任何进一步的指导将不胜感激,谢谢。

1 个答案:

答案 0 :(得分:0)

跟进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命令,使其指向已部署的清单。

相关问题