Triggers in domain.yml

Please let me know if using triggers(after each - intent_* statement) in domain.yml is optional. I found below statements in some online examples:

– intent_greet:

   triggers: utter_greet
   use_entities: true

– intent_next_statement: …

But some other examples are without trigger statements. Please let me know if triggers statements are required.

Hi @sathyanarayana-karnam and welcome to the forum!

It looks like you’re seeing examples from an older version of Rasa. Take a look at the new rasa docs for the latest version. Here is an example of a domain.yml file.

If you install the new version of rasa, you can use the command rasa init to create a complete working example which you can inspect and tweak as needed.

I hope this helps!