"Invalid agent zip. Missing required json file agent.json" error when running nlpanalytics on dialogflow
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
sure. you have to replace the botium-connector-dialogflow module from npm with the master branch from github.
Yes. The Dialogflow APIs have changed recently. I updated the Botium Connector for Dialogflow. It will be part of the next release.