TED predicts wrong action

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.

and TED policy predicts the wrong action after that 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 This is the story that I have defined image I have already defined in domain.yml the intent , entity, slot and actions image image image image Please tell me why, Thanks a lot