# How to display wait message to user while bot doing costume action calculations

**URL:** https://forum.rasa.com/t/how-to-display-wait-message-to-user-while-bot-doing-costume-action-calculations/22227
**Category:** Getting Started with Rasa
**Created:** [December 9, 2019, 6:50am UTC](https://forum.rasa.com/t/how-to-display-wait-message-to-user-while-bot-doing-costume-action-calculations/22227 "2019-12-09T06:50:53Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![rtogari7](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rtogari7/32/7523_2.png) [@rtogari7](https://forum.rasa.com/u/rtogari7)
#### Post date: [December 9, 2019, 6:50am UTC](https://forum.rasa.com/t/how-to-display-wait-message-to-user-while-bot-doing-costume-action-calculations/22227/1 "2019-12-09T06:50:53Z")

</div>

Hi all,

I want to generate a massage to user when bot doing calculation so that user should know that Bot is doing some work and it will some time. how implement in my action file.

and a wait message should be like ("Please wait Bot is calculating ")

---

<div class="post-metadata">

### Author: ![gnapoles](https://avatars.discourse-cdn.com/v4/letter/g/67e7ee/32.png) [@gnapoles](https://forum.rasa.com/u/gnapoles)
#### Post date: [December 13, 2019, 5:52pm UTC](https://forum.rasa.com/t/how-to-display-wait-message-to-user-while-bot-doing-costume-action-calculations/22227/2 "2019-12-13T17:52:47Z")

</div>

Hello! Same problem here. I have tried several ways but without any success yet ☹

---

<div class="post-metadata">

### Author: ![rtogari7](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rtogari7/32/7523_2.png) [@rtogari7](https://forum.rasa.com/u/rtogari7)
#### Post date: [December 24, 2019, 2:02pm UTC](https://forum.rasa.com/t/how-to-display-wait-message-to-user-while-bot-doing-costume-action-calculations/22227/3 "2019-12-24T14:02:32Z")

</div>

Hi, I am thinking this can be achieved through UI design where we can show that Bot is typing, but it will be more appropriate if we can display the wait message through action … hoping soon or later will get answers.

---

<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: [December 25, 2019, 4:23am UTC](https://forum.rasa.com/t/how-to-display-wait-message-to-user-while-bot-doing-costume-action-calculations/22227/4 "2019-12-25T04:23:30Z")

</div>

Hello @rtogari7,

If you design your own UI, then yes you can simply put in some kind of loading animation to indicate the bot is typing or doing something. If you are using a prebuilt UI and can not edit the UI, then maybe just utter a message before the bot does any work ?

```
## example story
* example_intent
    - utter_wait
    - perform_action

utter_wait: "Please wait while i'm executing your order..."
```

---

<div class="post-metadata">

### Author: ![rtogari7](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rtogari7/32/7523_2.png) [@rtogari7](https://forum.rasa.com/u/rtogari7)
#### Post date: [December 25, 2019, 6:34am UTC](https://forum.rasa.com/t/how-to-display-wait-message-to-user-while-bot-doing-costume-action-calculations/22227/5 "2019-12-25T06:34:17Z")

</div>

thanks for the reply , the similar fashion i am thinking but challenge is hear how to call this ‘perform\_action’ inside another action so that user should know that bot is busy with some calculation

---

<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: [December 25, 2019, 6:38am UTC](https://forum.rasa.com/t/how-to-display-wait-message-to-user-while-bot-doing-costume-action-calculations/22227/6 "2019-12-25T06:38:58Z")

</div>

@rtogari7

I don’t think i understand you clearly. The ‘perform\_action’ is an example for any of your custom action which require some calculation, therefore you put ‘utter\_wait’ before it to inform the user that the bot is doing some work. What do you mean by calling ‘perform\_action’ inside another action ?

---

<div class="post-metadata">

### Author: ![rtogari7](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rtogari7/32/7523_2.png) [@rtogari7](https://forum.rasa.com/u/rtogari7)
#### Post date: [December 25, 2019, 7:06am UTC](https://forum.rasa.com/t/how-to-display-wait-message-to-user-while-bot-doing-costume-action-calculations/22227/7 "2019-12-25T07:06:10Z")

</div>

sorry my bad for the not being clear, what i mean is that when we have created the the class inside that will call some function do it’s calculation for which my bot is taking time and till finish it’s calculation the user should get wait message. for that i am using utter\_wait in any class of custom action which need sometime for calculation. But problem i am encountering is here that utter\_wait and calculated answers both are displaying same time . exploring on this

---

<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: [December 25, 2019, 7:11am UTC](https://forum.rasa.com/t/how-to-display-wait-message-to-user-while-bot-doing-costume-action-calculations/22227/8 "2019-12-25T07:11:52Z")

</div>

@rtogari7

> [@rtogari7](#):
>
> for that i am using utter\_wait in any class of custom action which need sometime for calculation. But problem i am encountering is here that utter\_wait and calculated answers both are displaying same time .

Yes if you are doing it like this then that will happen, since the utters are sent in the same custom action. You should use utter\_wait **outside** of your custom action, so the bot will send utter\_wait first, **then** proceed to execute the custom action, like i suggest above. In all your stories which include your custom actions, put the utter\_wait above them. You define utter\_wait in **domain.yml**.
