使用Botskills Connect将技能连接到虚拟助手时出错 [英] Error Connecting Skill to Virtual Assistant Using Botskills Connect

查看:121
本文介绍了使用Botskills Connect将技能连接到虚拟助手时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am running into multiple errors when trying to connect a sample skill to a sample virtual assistant. Both are in typescript and run correctly on their own, but when I run botskills connect I encounter the following errors:

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

I first run botskills connect with the --localManifest parameter (-l):

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

这将返回一条错误消息,提示其中包含Luis文件夹的路径:

This returns an error saying to include a path to the Luis Folder:

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参数时遇到错误:

Then I try including the --luisFolder argument, and get an error to use the --dispatchFolder argument:

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中生成的示例技能代码中没有此类文件夹-文件夹结构如下所示:

There is no such folder in the sample skill code generated in Typescript - this is what the folder structure looks like:

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

This is where I am stuck currently. Can a dispatch folder be manually created? Is there another way around this parameter? Any further guidance would be appreciated, thank you.

推荐答案

跟随Ram的评论:您的命令指向本地"清单:

To follow up on Ram's comment: Your command is pointing at a 'local' manifest:

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

何时应该是您部署的技能位置:

when it should be your deployed skill location:

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

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

Make sure your skill is deployed before attempting to connect it to your VA. Once it's deployed, run the botskills connect command with it pointed at your deployed manifest.

这篇关于使用Botskills Connect将技能连接到虚拟助手时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆