# Utter\_default triggered despite nlu intent recognition is really high

**URL:** <https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966>\
**Category:** Rasa Open Source\
**Created:** [September 24, 2021, 7:38am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966 "2021-09-24T07:38:01Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chrisprollsite](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisprollsite/32/16477_2.png) [@Chrisprollsite](https://forum.rasa.com/u/Chrisprollsite)\
**Post date:** [September 24, 2021, 7:38am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/1 "2021-09-24T07:38:01Z")

</div>

Hi rasa community,

After training my model I run a `rasa shell nlu` to check that my intent recognition and entities extraction go well, so far so good, all my intents are correctly recognized. However when running `rasa shell`, the intent is not recognized anymore and `utter_default` response is triggered.

Find below the result of `rasa shell nlu`:

> “intent\_ranking”: [ { “id”: -5679577555852856409, “name”: “getInfoProcess”, “confidence”: 0.999994158744812 }, { “id”: -5418671895374280530, “name”: “joke”, “confidence”: 2.2008860014466336e-06 }, { “id”: -8154774908068738538, “name”: “greet”, “confidence”: 1.3680216852662852e-06 }

Any idea how to modify this behavior so my intent is recognized?

Best,

ch.

---

<div class="post-metadata">

**Author:** ![j.mosig](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/j.mosig/32/3588_2.png) [@j.mosig](https://forum.rasa.com/u/j.mosig)\
**Post date:** [September 27, 2021, 6:55am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/2 "2021-09-27T06:55:02Z")

</div>

Hello @Chrisprollsite

What is the output of `rasa --version` for you? Do I understand you correctly: when you run `rasa shell nlu` and type `hello` you get intent `greet` with confidence `> 0.99`, but when you type the exact same `hello` in `rasa shell --debug`, you get a different intent or a different confidence?

The `utter_default` may just be triggered because Rasa doesn’t know what to do next, given the conversation history, even though the intent was classified correctly. In this case, you should add more stories to your training data, so Rasa can learn. You may also change settings of the fallback action: [Fallback and Human Handoff](https://rasa.com/docs/rasa/fallback-handoff#handling-low-action-confidence)

---

<div class="post-metadata">

**Author:** ![Chrisprollsite](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisprollsite/32/16477_2.png) [@Chrisprollsite](https://forum.rasa.com/u/Chrisprollsite)\
**Post date:** [September 27, 2021, 9:12am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/3 "2021-09-27T09:12:41Z")

</div>

Yes that is exactly, nlu intent is correct but it seems the next action isn’t triggered properly, maybe it also has something to do with TED policy:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/7/2/7230e0a48dce43650ee7a6d070df73c13f3041a2.png)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 27, 2021, 4:22pm UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/4 "2021-09-27T16:22:36Z")

</div>

Hi @Chrisprollsite can you please provide more training examples in nlu.yml file? Hopefully your action server is running and you mention the action name in domain.yml file?

@Chrisprollsite please do share the config.yml file

---

<div class="post-metadata">

**Author:** ![Chrisprollsite](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisprollsite/32/16477_2.png) [@Chrisprollsite](https://forum.rasa.com/u/Chrisprollsite)\
**Post date:** [September 28, 2021, 7:23am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/5 "2021-09-28T07:23:48Z")

</div>

Hi @nik202Yes, all actions are mentioned in my domain.yml. Please find attached my nlu.yml and config.yml file [config.yml](https://forum.rasa.com/uploads/short-url/bccrPCS8kQLcBzSBn5SSeQbp0Jz.yml) (1.7 KB) [nlu.yml](https://forum.rasa.com/uploads/short-url/ey4DaSgJqbbMgRu6TUIpsur6N0t.yml) (7.7 KB)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 28, 2021, 7:28am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/6 "2021-09-28T07:28:31Z")

</div>

@Chrisprollsite Can you please uncommented polices in config.yml file please

```auto
policies:
# No configuration for policies was provided. The following default policies were used to train your model.
# If you'd like to customize them, uncomment and adjust the policies.
# See https://rasa.com/docs/rasa/policies for more information.
  - name: MemoizationPolicy
  - name: RulePolicy
  - name: UnexpecTEDIntentPolicy
    max_history: 5
    epochs: 100
  - name: TEDPolicy
    max_history: 5
    epochs: 100
    constrain_similarities: true

```

Try train the model again. I hope this will solve you issue. Try delete all older models and re-train and run.

@Chrisprollsite please share the domain.yml file ?

---

<div class="post-metadata">

**Author:** ![Chrisprollsite](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisprollsite/32/16477_2.png) [@Chrisprollsite](https://forum.rasa.com/u/Chrisprollsite)\
**Post date:** [September 28, 2021, 7:32am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/7 "2021-09-28T07:32:24Z")

</div>

Will retrain the model with uncommented policies, meanwhile here is my domain file [domain.yml](https://forum.rasa.com/uploads/short-url/7apOUiCfj7SSif9ly0PHvgjNes9.yml) (2.7 KB)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 28, 2021, 7:52am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/8 "2021-09-28T07:52:12Z")

</div>

@Chrisprollsite please check this for use\_entities : [Domain](https://rasa.com/docs/rasa/domain/#entities)

---

<div class="post-metadata">

**Author:** ![Chrisprollsite](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisprollsite/32/16477_2.png) [@Chrisprollsite](https://forum.rasa.com/u/Chrisprollsite)\
**Post date:** [September 28, 2021, 8:06am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/9 "2021-09-28T08:06:40Z")

</div>

mmmh, weird behavior, I specifically ignored “areaName” for intent “getData” but it still extracts “areaName” when running the model:

![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/9/a/9adc3fcd911fec7159ab71c3abf9f4e63da1b69e.png)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/a/7/a71020a84e89f429b5f25f5435435deba456c24c.png)

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 28, 2021, 8:07am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/10 "2021-09-28T08:07:12Z")

</div>

@Chrisprollsite delete older model please.

---

<div class="post-metadata">

**Author:** ![Chrisprollsite](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisprollsite/32/16477_2.png) [@Chrisprollsite](https://forum.rasa.com/u/Chrisprollsite)\
**Post date:** [September 28, 2021, 8:23am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/11 "2021-09-28T08:23:03Z")

</div>

@nik202 I removed all other models and rasa loads properly the right model (the latest trained). And it still doesn’t work

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 28, 2021, 8:26am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/12 "2021-09-28T08:26:04Z")

</div>

@Chrisprollsite Is it working? I not get you.

---

<div class="post-metadata">

**Author:** ![Chrisprollsite](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisprollsite/32/16477_2.png) [@Chrisprollsite](https://forum.rasa.com/u/Chrisprollsite)\
**Post date:** [September 28, 2021, 8:32am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/13 "2021-09-28T08:32:15Z")

</div>

@nik202 , removing unexpecTEDpolicy from my config file did help to figure out the proper next action. As mentioned in the rasa doc, this feature is still under development

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 28, 2021, 8:33am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/14 "2021-09-28T08:33:17Z")

</div>

@Chrisprollsite Great! please close this thread as a solution for others.

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 28, 2021, 8:43am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/15 "2021-09-28T08:43:54Z")

</div>

@Chrisprollsite Nice, but I shared you the idea 😉[Utter\_default triggered despite nlu intent recognition is really high - #6 by nik202](http://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/6) Good Luck! Happy learning!.

---

<div class="post-metadata">

**Author:** ![Chrisprollsite](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/chrisprollsite/32/16477_2.png) [@Chrisprollsite](https://forum.rasa.com/u/Chrisprollsite)\
**Post date:** [September 28, 2021, 8:51am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/16 "2021-09-28T08:51:09Z")

</div>

If that makes you happy 😉

---

<div class="post-metadata">

**Author:** ![nik202](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/nik202/32/16098_2.png) [@nik202](https://forum.rasa.com/u/nik202)\
**Post date:** [September 28, 2021, 8:51am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/17 "2021-09-28T08:51:42Z")

</div>

@Chrisprollsite I am always happy, its good my suggestion helped you. Enjoy rasa!

---

<div class="post-metadata">

**Author:** ![Parthcu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/parthcu/32/23344_2.png) [@Parthcu](https://forum.rasa.com/u/Parthcu)\
**Post date:** [September 14, 2023, 9:30am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/18 "2023-09-14T09:30:47Z")

</div>

I am facing similar issues. I have correctly added intent in domain , nlu , stories but still some of my buttons doesn’t work , I have tried using the rasa interactive but still not much of help. I don’t know what is going on , the intent must be taken correctly as it is coming from the buttons itself . Please help

---

<div class="post-metadata">

**Author:** ![Parthcu](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/parthcu/32/23344_2.png) [@Parthcu](https://forum.rasa.com/u/Parthcu)\
**Post date:** [September 14, 2023, 9:31am UTC](https://forum.rasa.com/t/utter-default-triggered-despite-nlu-intent-recognition-is-really-high/47966/19 "2023-09-14T09:31:00Z")

</div>

It gives blank result
