# Should all utterances be listed in actions of domain.yml

**URL:** <https://forum.rasa.com/t/should-all-utterances-be-listed-in-actions-of-domain-yml/15502>\
**Category:** Rasa Open Source\
**Created:** [September 10, 2019, 10:59pm UTC](https://forum.rasa.com/t/should-all-utterances-be-listed-in-actions-of-domain-yml/15502 "2019-09-10T22:59:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [September 10, 2019, 10:59pm UTC](https://forum.rasa.com/t/should-all-utterances-be-listed-in-actions-of-domain-yml/15502/1 "2019-09-10T22:59:08Z")

</div>

In the `domain.yml` should all utterances in the `templates` section be listed in the `actions` section. In all of the examples I have seen, this seems to be the case. Including the recent rasa-demo example [domain.yml](https://github.com/RasaHQ/rasa-demo/blob/master/domain.yml) by @erohmensing.

In the Rasa [Domain](https://rasa.com/docs/rasa/core/domains/#an-example-of-a-domain) documentation example there are 6 utterances and all of them are listed in both the `templates` and `actions` section.

Should all utternances be listed in the `actions` section or only those used in a story?

---

<div class="post-metadata">

**Author:** ![fuih](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@fuih](https://forum.rasa.com/u/fuih)\
**Post date:** [September 11, 2019, 1:34am UTC](https://forum.rasa.com/t/should-all-utterances-be-listed-in-actions-of-domain-yml/15502/2 "2019-09-11T01:34:04Z")

</div>

In my experience working with Rasa, i’ve only listed the utters which are used in the stories and it seems to work fine.

---

<div class="post-metadata">

**Author:** ![IgNoRaNt23](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/ignorant23/32/8029_2.png) [@IgNoRaNt23](https://forum.rasa.com/u/IgNoRaNt23)\
**Post date:** [September 11, 2019, 5:19am UTC](https://forum.rasa.com/t/should-all-utterances-be-listed-in-actions-of-domain-yml/15502/3 "2019-09-11T05:19:39Z")

</div>

See Utterance actions

> **[Actions](https://rasa.com/docs/rasa/actions/)**

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 11, 2019, 9:02am UTC](https://forum.rasa.com/t/should-all-utterances-be-listed-in-actions-of-domain-yml/15502/4 "2019-09-11T09:02:37Z")

</div>

It’s good practice to list them all in the actions so that you can use them in the stories; however, you’re right, only those that are used directly as actions (rather than called from e.g. a from or `dispatcher.utter_template`) need to be listed in the `actions` list.

---

<div class="post-metadata">

**Author:** ![stephens](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/stephens/32/1632_2.png) [@stephens](https://forum.rasa.com/u/stephens)\
**Post date:** [September 11, 2019, 3:08pm UTC](https://forum.rasa.com/t/should-all-utterances-be-listed-in-actions-of-domain-yml/15502/5 "2019-09-11T15:08:18Z")

</div>

@erohmensing, I thought it was convention or good practice to list them all but this is not the case for Rasa X. Rasa X will give you warnings on the `Domain` page if you have templates that are listed in `actions` but not used in a story.

This is confirmed by @tmbo in his comment on issue [#4200](https://github.com/RasaHQ/rasa/issues/4200#issuecomment-519385904).

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [September 11, 2019, 3:59pm UTC](https://forum.rasa.com/t/should-all-utterances-be-listed-in-actions-of-domain-yml/15502/6 "2019-09-11T15:59:33Z")

</div>

Hm, that’s a good point. We’ll continue the discussion there.
