# TED predicts wrong action

**URL:** <https://forum.rasa.com/t/ted-predicts-wrong-action/55076>\
**Category:** Rasa Open Source\
**Created:** [August 30, 2022, 3:02pm UTC](https://forum.rasa.com/t/ted-predicts-wrong-action/55076 "2022-08-30T15:02:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tuananh99](https://avatars.discourse-cdn.com/v4/letter/t/278dde/32.png) [@tuananh99](https://forum.rasa.com/u/tuananh99)\
**Post date:** [August 30, 2022, 3:02pm UTC](https://forum.rasa.com/t/ted-predicts-wrong-action/55076/1 "2022-08-30T15:02:01Z")

</div>

I have trained data and run rasa shell --debug I can see that the model can identify the intent and the entity , but it does not show the current slot that I have define in domain.yml.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/0/0/004fb3ae1722587d754ae24a87774be25ed58fba.png)and TED policy predicts the wrong action after that ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/2/f/2fe07c88fbca395800e4ca9caa09ce96d5d8bfaa.png)I do not know why , I want to make a call from custom action file to predict the right action. Is there any problem with my code ? This is the function in my custom action file that I want to call ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/e/1/e14c2850c436f6b1a334359a6bf915ecd3fa5b49.png)This is the story that I have defined ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/a/d/ad6577c6b0a4589528fccee170939673b21166d5.png)I have already defined in domain.yml the intent , entity, slot and actions ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/4/b/4b09ef6313d300989a7567b130cd5f53a66e298f.png) ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/e/4/e4367d98b4179d9bd30b2a50e333ffabf18ad3fc.png) ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/8/6/8658e6e77c66729749bd3747a1f4606e8acfb949.png) ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/3X/4/d/4da4869c73871f451d6dfdfbd3cd67381b27f94b.png)Please tell me why, Thanks a lot
