treethought / flask-assistant

Framework for Building Virtual Assistants with Dialogflow and python
Apache License 2.0
379 stars 101 forks source link

yaml formatting #76

Closed chew-z closed 6 years ago

chew-z commented 6 years ago

This isn't issue per se with flask-assistant but friendly warning to fellow chatbot builders. flask-assistant and underlying libraries will quietly skip entire parts due to some odd space and wrong indent in yaml files.

In my case entire parts of user says had been empty and suddenly your chatbot will get dumb and unable to recognize phraes that had been working just minutes before. Very frustrating and you could waste hours.

So when in doubt check intents and entities in Dialogflow console or inspect json files in schema folder. And get proper yaml formatter for your editor.

On a positive note perhaps a little more verbose out from schema command will help.

treethought commented 6 years ago

Thanks for the warning @chew-z. Perhaps more verbosity from schema could be added.