# How to respond random utterences for an input

**URL:** <https://forum.rasa.com/t/how-to-respond-random-utterences-for-an-input/11143>\
**Category:** Rasa Open Source\
**Created:** [June 7, 2019, 12:17pm UTC](https://forum.rasa.com/t/how-to-respond-random-utterences-for-an-input/11143 "2019-06-07T12:17:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raghavendrav1210](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/raghavendrav1210/32/2235_2.png) [@raghavendrav1210](https://forum.rasa.com/u/raghavendrav1210)\
**Post date:** [June 7, 2019, 12:17pm UTC](https://forum.rasa.com/t/how-to-respond-random-utterences-for-an-input/11143/1 "2019-06-07T12:17:41Z")

</div>

Hi,

I want to show random utter’s to the users on a similar kind of input from the user. Like if user says hi, hello, help I have to respond with like

how can I help?

Hi, How may I help you?

Hi I am sara how can I help?

Do I need to write the stories for all the possible combinations to get the random response? Can anybody help me to solve this?

Regards

---

<div class="post-metadata">

**Author:** ![JiteshGaikwad](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@JiteshGaikwad](https://forum.rasa.com/u/JiteshGaikwad)\
**Post date:** [June 7, 2019, 12:58pm UTC](https://forum.rasa.com/t/how-to-respond-random-utterences-for-an-input/11143/2 "2019-06-07T12:58:50Z")

</div>

hey @raghavendrav1210 you can do so just refer this docs:

[Domains](https://rasa.com/docs/rasa/core/domains/#variations)

---

<div class="post-metadata">

**Author:** ![blacknight](https://avatars.discourse-cdn.com/v4/letter/b/c68b51/32.png) [@blacknight](https://forum.rasa.com/u/blacknight)\
**Post date:** [June 7, 2019, 1:01pm UTC](https://forum.rasa.com/t/how-to-respond-random-utterences-for-an-input/11143/3 "2019-06-07T13:01:47Z")

</div>

Hi @raghavendrav1210,

If i understand it right, you can do the following :

- In your training data (nlu\_data.md) you should add an intent `## intent:name_of_your_intent` that group the keywrods : “Hi”, “Hello”, “Help”, etc.

- In your domain file (domain.yml) you should add a template that regroup the answers you want the bot to give back to the user :

The fact that you define multiple text option in your template will make the bot choose randomly one of them.

- In your stories you should add a story that define this use case like so :

> ## name\_of\_your\_story

```
* name_of_your_intent
 - name_of_your_template

```

Hope it helped,

Regards
