What does it mean when an action is a root/parent element?

Hi all.

In RasaDemo rasa_core stories.md, there are quite a number of section that like this:

## newsletter + affirm feedback
* greet
    - action_greet_user
* signup_newsletter
    - utter_great
    - utter_ask_email
* enter_data{"email": "maxmeier@firma.de"} OR enter_data{"number":"1"}
    - action_store_email
    - slot{"email": "maxmeier@firma.de"}
- action_subscribe_newsletter
    - slot{"subscribed": true}
    - utter_awesome
    - utter_confirmationemail
    - utter_docu
    - utter_ask_feedback
* affirm
    - utter_thumbsup
    - utter_anything_else

As you can see, - action_subscribe_newsletter is at the root level of the stories, instead of a child of an intent.

What does it mean when a story is written like this? What I truly mean is: if an action is run after another action/utter, why it is not also a child of that parent, in this case it is enter_data?

Thank you.

it is a typo, the indentation should be the same:

...
* enter_data{"email": "maxmeier@firma.de"} OR enter_data{"number":"1"}
    - action_store_email
    - slot{"email": "maxmeier@firma.de"}
    - action_subscribe_newsletter
    - slot{"subscribed": true}
    - utter_awesome
    - utter_confirmationemail
...
1 Like