# Where is this call of action\_default\_ask\_affirmation coming from?

**URL:** <https://forum.rasa.com/t/where-is-this-call-of-action-default-ask-affirmation-coming-from/20188>\
**Category:** Rasa Open Source\
**Created:** [October 22, 2019, 3:20pm UTC](https://forum.rasa.com/t/where-is-this-call-of-action-default-ask-affirmation-coming-from/20188 "2019-10-22T15:20:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerotrope](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zerotrope/32/4937_2.png) [@zerotrope](https://forum.rasa.com/u/zerotrope)\
**Post date:** [October 22, 2019, 3:20pm UTC](https://forum.rasa.com/t/where-is-this-call-of-action-default-ask-affirmation-coming-from/20188/1 "2019-10-22T15:20:53Z")

</div>

Hi,

I faced an inexplicable situation while trying to mimic the rasa-demo’s TwoStageFallbackPolicy, which articulates around “action\_default\_fallback” and “action\_default\_ask\_affirmation” classes as far as I understand:

![Capture](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/2/285f70b396c5c06f05bee64338652f78502642ec.png)

Even after renaming both classes (with no other modification in the code), the chatbot called the “action\_default\_ask\_affirmation” class at some point and dispatched a selection box in English (my chatbot is French), neither I, nor the rasa-demo itself referred to in the first place.

My questions:

- Where is this call coming from?
- What about its content? Where is it stored?
- Is it related to the fact the “action\_default\_ask\_affirmation” is part of the default actions stack?
- Could I access it?

Thank you for your help.

z.

Details:

- Windows Subsystem for Linux Ubuntu 18.04
- rasa version = 1.3.7
- rasa-sdk version = 1.3.3
- rasa-x version = 0.21.1
- Installed in a conda env
- Direct install

---

<div class="post-metadata">

**Author:** ![rookiebird](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rookiebird/32/7368_2.png) [@rookiebird](https://forum.rasa.com/u/rookiebird)\
**Post date:** [October 23, 2019, 1:33am UTC](https://forum.rasa.com/t/where-is-this-call-of-action-default-ask-affirmation-coming-from/20188/2 "2019-10-23T01:33:30Z")

</div>

what do you mean rename both class ? Have you overwrite them? if you use custom action\_default\_ask\_affirmation class ,you must denote it in you domain file as an action.

1.If you set the TwoStageFallBackPolicy, the action\_default\_ask\_affirmation will be called if your intent confidence is below the nlu threshold

2.in rasa/core/policies,you can find the implementation of TwoStageFallBackPolicy and rasa/core/actions/action.py ,you can find the implementation of action\_default\_ask\_affirmation

Hope my answer can help you . 🤣

---

<div class="post-metadata">

**Author:** ![zerotrope](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/zerotrope/32/4937_2.png) [@zerotrope](https://forum.rasa.com/u/zerotrope)\
**Post date:** [October 23, 2019, 9:39am UTC](https://forum.rasa.com/t/where-is-this-call-of-action-default-ask-affirmation-coming-from/20188/3 "2019-10-23T09:39:11Z")

</div>

Hi @rookiebird, thanks for answering me,

By renaming the class I meant change the .name attribute of the class, which I ended up updating in every file mentioning it eventually (i.e. actions.py and domain.yml). My code compiles, there is no naming problem. Also, your points 1. and 2. are checked.

It’s just that since I renamed the “action\_default\_ask\_affirmation” class, when called, I expected to see its new name shown in the core action description but no, “action\_default\_ask\_affirmation” still appears (see screenshot):

 ![Capture](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/4/48405a0143ac7028e118f6eaae67a852d5dd4c97.png)

Thus my actual question, is it possible to change default actions’ names in the first place ? As my changes don’t seem to be taken into account (I initially wanted to change class names to French for local readability purposes).

---

<div class="post-metadata">

**Author:** ![rookiebird](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/rookiebird/32/7368_2.png) [@rookiebird](https://forum.rasa.com/u/rookiebird)\
**Post date:** [October 24, 2019, 1:45am UTC](https://forum.rasa.com/t/where-is-this-call-of-action-default-ask-affirmation-coming-from/20188/4 "2019-10-24T01:45:53Z")

</div>

If you custom the action\_default\_ask\_affirmation and rename it just as ‘action\_default\_ask\_affirmation\_rewrite’,then you can modify the following

1.action denoted in domain.yml to be action\_default\_ask\_affirmation\_rewrite

2.ACTION\_DEFAULT\_ASK\_AFFIRMATION\_NAME = “action\_default\_ask\_affirmation\_rewrite” in rasa/core/actions/action.py
