# I want to create chat bot which should not repeat same answer if the same question is repeated

**URL:** <https://forum.rasa.com/t/i-want-to-create-chat-bot-which-should-not-repeat-same-answer-if-the-same-question-is-repeated/52219>\
**Category:** Rasa Open Source\
**Created:** [March 28, 2022, 1:26pm UTC](https://forum.rasa.com/t/i-want-to-create-chat-bot-which-should-not-repeat-same-answer-if-the-same-question-is-repeated/52219 "2022-03-28T13:26:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![ChrisRahme](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisrahme/32/15572_2.png) [@ChrisRahme](https://forum.rasa.com/u/ChrisRahme)\
**Post date:** [March 28, 2022, 6:03pm UTC](https://forum.rasa.com/t/i-want-to-create-chat-bot-which-should-not-repeat-same-answer-if-the-same-question-is-repeated/52219/2 "2022-03-28T18:03:27Z")

</div>

The same question was asked 2 weeks ago:

> [@Is it possible to execute utter\_X with a different message if it has already been said by the assistant?](http://forum.rasa.com/t/is-it-possible-to-execute-utter-x-with-a-different-message-if-it-has-already-been-said-by-the-assistant/51929/6):
>
> Something like that from random import randrange class ActionGoodbye(Action): def name(self): return 'action\_goodbye' def run(self, dispatcher, tracker, domain): goodbyes = ['bye!', # 0 'hope to see you soon.' # 1 'have a nice day.' # 2] already\_uttered = tracker.get\_slot('uttered\_goobye') # For example [0, 2] means the first and third sentences were already uttered if len(already\_uttered) \>= len(goodbyes…

Hope it helps 🙂

---

_[View the full topic](https://forum.rasa.com/t/i-want-to-create-chat-bot-which-should-not-repeat-same-answer-if-the-same-question-is-repeated/52219)._
