# Bot die when input is not a intent

**URL:** <https://forum.rasa.com/t/bot-die-when-input-is-not-a-intent/15252>\
**Category:** Rasa Open Source\
**Created:** [September 5, 2019, 4:09am UTC](https://forum.rasa.com/t/bot-die-when-input-is-not-a-intent/15252 "2019-09-05T04:09:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vunt39](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vunt39](https://forum.rasa.com/u/vunt39)\
**Post date:** [September 5, 2019, 4:09am UTC](https://forum.rasa.com/t/bot-die-when-input-is-not-a-intent/15252/1 "2019-09-05T04:09:09Z")

</div>

Hi everyone i have some issue with my bot when user chat some thing like: ‘asd;fkjhdsa;kfjhsadpkfhsaoifsa’

Bot die and this is my action server log:

 ![15676562914983195258487881680399](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/e/efdc58d666e055568ed1e744fefc8126ba93f27c.jpeg) r log:

 ![15676564065185498099388359970105](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/a/a0511b1e4c7d604d7c91be39d89c4a250c9afe9b.jpeg)

This is the server log:

 ![15676564768721555877959198928571](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/1/156a034083cf19b9f9f24a654dfa7efa2fbdfb6a.jpeg)

How can i fix that

---

<div class="post-metadata">

**Author:** ![Gehova](https://avatars.discourse-cdn.com/v4/letter/g/2acd7d/32.png) [@Gehova](https://forum.rasa.com/u/Gehova)\
**Post date:** [September 5, 2019, 1:48pm UTC](https://forum.rasa.com/t/bot-die-when-input-is-not-a-intent/15252/2 "2019-09-05T13:48:29Z")

</div>

You need a [fallback action](https://rasa.com/docs/rasa/core/fallback-actions/). For example, in the config.yml:

```
policies:
...
  - name: "FallbackPolicy"
    nlu_threshold: 0.4
    core_threshold: 0.3
    fallback_action_name: "action_default_fallback"

```

Add action\_default\_fallback to your list of actions in the domain.yml file and overwrite it in actions.py:

```
class ActionDefaultFallback(Action):
	def name(self):
		return 'action_default_fallback'
		
	def run(self, dispatcher, tracker, domain):
		dispatcher.utter_message("What?")
		return [UserUtteranceReverted()]
```

---

<div class="post-metadata">

**Author:** ![vunt39](https://avatars.discourse-cdn.com/v4/letter/v/4bbf92/32.png) [@vunt39](https://forum.rasa.com/u/vunt39)\
**Post date:** [September 5, 2019, 2:20pm UTC](https://forum.rasa.com/t/bot-die-when-input-is-not-a-intent/15252/3 "2019-09-05T14:20:59Z")

</div>

thank you so much. it’s very helpfull
