我正在尝试将Google智能助理操作连接到Botium Box或botium-cli。我按照Botium Connector for Google Assistant解释中的所有步骤进行了操作。
当我尝试将生成的botium.json添加到Botium Box时,我收到以下错误消息。
Chatbot connection failed - Loading Botium plugin failed
当我尝试在botium-cli中启动模拟器时,我收到此错误
Error: Loading Botium plugin failed
at Validate.Validate.then (C:\Users\user\AppData\Roaming\npm\node_modules\botium-cli\node_modules\botium-core\src\containers\PluginConnectorContainer.js:59:15)
botium.json看起来像这样
{
"botium": {
"Capabilities": {
"PROJECTNAME": "Botium Project Google Assistant",
"CONTAINERMODE": "google-assistant",
"GOOGLE_ASSISTANT_CLIENT_ID": "xxx",
"GOOGLE_ASSISTANT_CLIENT_SECRET": "xxx",
"GOOGLE_ASSISTANT_REFRESH_TOKEN": "xxx",
"GOOGLE_ASSISTANT_TYPE": "authorized_user",
"GOOGLE_ASSISTANT_START_UTTERANCE": "talk to xxx",
"GOOGLE_ASSISTANT_END_UTTERANCE": "Cancel"
}
}
}
该错误消息表明Botium无法加载谷歌助理连接器模块。
自1.1版以来,谷歌助手连接器是Botium Box的一部分,请参阅release notes。它是Botium CLI 0.0.46的一部分。
请确认您至少安装了这些版本。如果版本没问题,那么请以详细模式运行botium-cli(--verbose)并附加日志输出。