我正在尝试将 Google Assistant Action 连接到 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无法加载google assistant连接器模块。
自 1.1 版以来,google 助手连接器是 Botium Box 的一部分,请参阅 release notes .它是 Botium CLI 0.0.46 的一部分。
请确认您至少安装了这些版本。如果版本没问题,请以详细模式 (--verbose) 运行 botium-cli 并附上日志输出。
关于node.js - 无法将 Google Assistant Action 添加到 Botium、Botium Box、botium-cli,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55145534/