YamlValidationException: Failed to validate 'data/stories.yml'

I am a complete beginner to chatbot development and also all kinds of development, I took a few Python courses and can read the code, but it’s about it.

I am taking the course on Udemy and I have noticed that there are some differences. I think the version of the course is 1.0, in the course they use markdown files and the Rasa version I installed contains YAML files.

I followed the course and Section 2: Training Data and after saving and executing the command “rasa train” I got the following error below. I made sure that I used the YAML structure when following the course (btw. I used TAB and not Space to indent). Here is a screenshot of the stories.yml file Screen Shot 2021-05-07 at 17.41.09.png - Droplr

(venv) max@Maxs-MBP rasa-for-beginners % rasa train The configuration for pipeline and policies was chosen automatically. It was written into the config file at ‘config.yml’. YamlValidationException: Failed to validate ‘data/stories.yml’. Please make sure the file is correct and all mandatory parameters are specified. Here are the errors found during validation: in data/stories.yml:34: Key ‘intend’ was not defined. Path: ‘/stories/3/steps/0’ in data/stories.yml:39: Key ‘intend’ was not defined. Path: ‘/stories/4/steps/0’ in data/stories.yml:44: Key ‘intend’ was not defined. Path: ‘/stories/5/steps/0’

Can anyone please help me? It’s much appreciated.

Hello @maxgro I have been there my self :smiley: you can check this link GitHub - RasaHQ/wellness-check-bot at update-2.4 it is the same bot in the beginners course the wellness bot don’t forget to checkout to the new branch once you clone the project

I hope this helps

Hello @AminaDerouiche thanks so much, I will have a look at it :slight_smile:

1 Like

I tried the GitHub project, it will run, but I see that the structure of the stories.yml is completely (I mean ground up) different to the stories.md file in the course. So I don’t understand how it is even possible to keep following the course. T

the course is using rasa 1.0 , what you can learn from it the idea behind the assistant but structure wise you should consider the new version.

ah there is a new course, where is it?