question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Invalid agent zip. Missing required json file agent.json" error when running nlpanalytics on dialogflow

See original GitHub issue

Describe the bug I am trying to run intent analysis for my dialogflow project as described in https://medium.com/@floriantreml/tutorial-benchmark-your-chatbot-on-watson-dialogflow-wit-ai-and-more-92885b4fbd48

I was able to successfully import utterances, but when I’m running botium-cli nlpanalytics I am getting the following error:

  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 +2ms
  botium-connector-dialogflow-nlp Dialogflow agent created: projects/newagent-cacrnf/BotiumTrainingCopy-hfDNC +0ms
  botium-connector-dialogflow-nlp Dialogflow agent restoring intents: projects/newagent-cacrnf/BotiumTrainingCopy-hfDNC +12ms
  botium-connector-dialogflow Clean called +6s
  botium-connector-BaseContainer _RunCustomHook onClean finished +6s
  botium-connector-BaseContainer Cleanup rimrafing temp dir /Users/vovan/intent_analysis/botiumwork/intent-test 20200702 193303 KOGwz +0ms
K-Fold training for fold 1 failed: {"code":3,"message":"com.google.apps.framework.request.BadRequestException: Invalid agent zip. Missing required json file agent.json","details":[]}

Expected behavior No errors, program exits with benchmark summary.

Botium Flavour Botium CLI

Botium Version bash-3.2$ botium-cli -V 0.0.69

Additional context Dialogflow API v2

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
codeforequity-atcommented, Jul 17, 2020

sure. you have to replace the botium-connector-dialogflow module from npm with the master branch from github.

1reaction
codeforequity-atcommented, Jul 15, 2020

Yes. The Dialogflow APIs have changed recently. I updated the Botium Connector for Dialogflow. It will be part of the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: agent.json is missing , when using “importAgent ...
I am using Dialogflow client on my Node.js server to import-agent using .zip file which ... Missing required json file agent.json at Object....
Read more >
Errors when using DialogFlow "restore agent" API
1) The agent.json file is now required in the zip file, ... did not cause any error, but now the agent winds up...
Read more >
Agent settings | Dialogflow ES | Google Cloud
This feature allows you to export/import an agent to/from a zip file for backing up ... While you can edit the JSON files...
Read more >
Integrating A Dialogflow Agent Into A React Application
We can test the agent using the Dialogflow emulator located in the right ... Select a JSON file format and click the Create...
Read more >
Dialogflow webhook format - Google Developers
To see more examples of JSON messages for Dialogflow webhooks, you can refer ... Note: For Dialogflow agents using V2 of the API...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found