# Can a custom action call dispatcher.utter\_message(template='utter\_something') twice?

**URL:** <https://forum.rasa.com/t/can-a-custom-action-call-dispatcher-utter-message-template-utter-something-twice/28400>\
**Category:** Rasa Open Source\
**Created:** [May 4, 2020, 1:17pm UTC](https://forum.rasa.com/t/can-a-custom-action-call-dispatcher-utter-message-template-utter-something-twice/28400 "2020-05-04T13:17:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![plurn](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@plurn](https://forum.rasa.com/u/plurn)\
**Post date:** [May 4, 2020, 1:17pm UTC](https://forum.rasa.com/t/can-a-custom-action-call-dispatcher-utter-message-template-utter-something-twice/28400/1 "2020-05-04T13:17:55Z")

</div>

I’m wondering if I can call utter\_message() twice in the same custom action?

Alternatively, could I have a story like this:

```
## My story
* user_intent
  - cusom_action_that_utters_a_message
  - utter_different_message

```

My stories that are written like the above example don’t seem to be uttering the second message (utter\_different\_message). Do I need my custom action to return a specific value or maybe some specific policy for this to work?

Thanks.

---

<div class="post-metadata">

**Author:** ![k1m](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/k1m/32/8518_2.png) [@k1m](https://forum.rasa.com/u/k1m)\
**Post date:** [May 4, 2020, 2:48pm UTC](https://forum.rasa.com/t/can-a-custom-action-call-dispatcher-utter-message-template-utter-something-twice/28400/2 "2020-05-04T14:48:01Z")

</div>

Yes, you can call it twice. If you have something like this in your custom action:

```
dispatcher.utter_message('text')
dispatcher.utter_message('text')

```

It should work just fine.

---

<div class="post-metadata">

**Author:** ![plurn](https://avatars.discourse-cdn.com/v4/letter/p/41988e/32.png) [@plurn](https://forum.rasa.com/u/plurn)\
**Post date:** [May 4, 2020, 3:26pm UTC](https://forum.rasa.com/t/can-a-custom-action-call-dispatcher-utter-message-template-utter-something-twice/28400/3 "2020-05-04T15:26:01Z")

</div>

Thanks. I just realized it’s a problem with my front end only processing the first message.

---

<div class="post-metadata">

**Author:** ![rejae](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rejae/32/10778_2.png) [@rejae](https://forum.rasa.com/u/rejae)\
**Post date:** [September 17, 2020, 8:33am UTC](https://forum.rasa.com/t/can-a-custom-action-call-dispatcher-utter-message-template-utter-something-twice/28400/4 "2020-09-17T08:33:02Z")

</div>

hi, I do this in custom action, rasa shell display well, but in rasa x， I only get the first dispatcher result, and the second was not displayed, how this happen?

---

<div class="post-metadata">

**Author:** ![praveenk459](https://avatars.discourse-cdn.com/v4/letter/p/e19b73/32.png) [@praveenk459](https://forum.rasa.com/u/praveenk459)\
**Post date:** [December 4, 2020, 11:12am UTC](https://forum.rasa.com/t/can-a-custom-action-call-dispatcher-utter-message-template-utter-something-twice/28400/6 "2020-12-04T11:12:32Z")

</div>

@k1m how to display multiple dispatcher in rasa x… it is displaying in rasa shell but not in rasa x
