2

在设置 Botium 并将其连接到我的 DialogFlow 代理(使用 Google Cloud Platform 上的 DialogFlow 管理服务帐户)后,我尝试使用命令自动从 DialogFlow 中提取数据(意图和话语)botium-cli nlpextract。这是我得到的错误:

user@ubuntu20:~/workspace$ export GOOGLE_APPLICATION_CREDENTIALS="/path/to/google_key.json"
user@ubuntu20:~/workspace$ botium-cli nlpextract --config botium.json --convos dataset_botium --verbose
  botium-cli Using Botium configuration file botium.json +0ms
  botium-cli-nlp command options: { _: [ 'nlpextract' ],
  botium-cli-nlp   config: 'botium.json',
  botium-cli-nlp   c: 'botium.json',
  botium-cli-nlp   convos: [ 'dataset_botium' ],
  botium-cli-nlp   C: [ 'dataset_botium' ],
  botium-cli-nlp   verbose: true,
  botium-cli-nlp   v: true,
  botium-cli-nlp   '$0': '/usr/local/bin/botium-cli' } +0ms

 (...)

  botium-connector-PluginConnectorContainer-helper Botium plugin loaded from /usr/local/lib/node_modules/botium-cli/node_modules/botium-connector-dialogflow/index.js +0ms
  botium-connector-dialogflow Validate called +0ms
  botium-connector-BaseContainer _RunCustomHook onBuild finished +0ms
  botium-connector-dialogflow Build called +1ms
  botium-connector-dialogflow-nlp Dialogflow agent: {
  botium-connector-dialogflow-nlp   "parent": ####,
  botium-connector-dialogflow-nlp   "displayName": ####,
  botium-connector-dialogflow-nlp   "defaultLanguageCode": "it",
  botium-connector-dialogflow-nlp   "timeZone": "Europe/Kaliningrad",
  botium-connector-dialogflow-nlp   "enableLogging": true,
  botium-connector-dialogflow-nlp   "matchMode": "MATCH_MODE_HYBRID",
  botium-connector-dialogflow-nlp   "classificationThreshold": 0.30000001192092896,
  botium-connector-dialogflow-nlp   "apiVersion": "API_VERSION_V2",
  botium-connector-dialogflow-nlp   "tier": "TIER_STANDARD"
  botium-connector-dialogflow-nlp } +0ms
  botium-connector-dialogflow-nlp Utterances files not found for Default Fallback Intent, checking for utterances in intents/Default Fallback Intent_usersays_en-us.json and intents/Default Fallback Intent_usersays_it.json. Ignoring intent. +20ms
  botium-connector-dialogflow Clean called +2s
  botium-connector-BaseContainer _RunCustomHook onClean finished +2s
  botium-connector-BaseContainer Cleanup rimrafing temp dir /home/user/workspace/botiumwork/agent-name 20200722 124913 wTImF +0ms
Failed to extract utterances: Cannot read property 'intents' of undefined

我在网上找不到任何关于此的内容。如果我下载 zip 文件中的代理,我插入的所有 21 个意图都可用,每个意图都有 85 个训练话语。

(我在 Entroware Apollo 笔记本电脑上使用 Ubuntu20)

4

1 回答 1

1

Botium Dialogflow 连接器中存在错误。它现在已修复,并将包含在下一个版本中。

同时,您可以使用 Github 存储库中的最新更改替换最新版本的连接器:

npm install codeforequity-at/botium-connector-dialogflow#master
于 2020-07-23T10:20:37.057 回答