node.js - 无法将 Google Assistant Action 添加到 Botium、Botium Box、botium-cli

标签 node.js testing chatbot google-assistant-sdk

我正在尝试将 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/

相关文章:

javascript - npm t 和 npm run test 的区别

java - 从应用程序更新 vcap env

javascript - Joi.js 表单验证 - 以 json 形式返回消息

php - 如何使用 PHPUnit 测试 mail()

safari - 在 Safari 中可编辑内容上按 Enter 键

node.js - 如何在 LoopBack 4 中进行数据库迁移

c++ - 用于 C++ GUI 桌面 Windows 应用程序的测试自动化工具/库/框架

django - 测试 Django Rest Framework 时创建超链接关系

python - 从 Tensorflow 转换 -> CoreML 3.0 用于插槽/意图检测

chatbot - 使用 sraix 标签将自定义 Web 服务添加到程序 AB?