in the previous_intent_text parameter I am keeping user text getting from the user. However, It is not responding or triggering the intent I want it to run.
I am trying to trigger the second last intent by using UserUttered() function.
My situation is something like this.
Suppose, the user is asking to do something then the bot triggers the action based on the intent user asked for. However, if the user asks for something else in the middle of another task, then the bot asked if he/she wants to continue the current task or not? if the bot received an affirm then it will continue the current task, else it should be run the 2nd last input was given by the user. Note that the 2nd last, which was received by the bot before getting the affirm or deny.
Hence, I am trying to trigger the user intent using UserUttered() because the user might give many different intents in the middle of a task. Here is an example of my story
Here the action_continue_response action class will check whether the user wants to continue the task or not. if not then I want to run the action asked by the user (in this story: check_balance, weather, bKash_transfer, Card_Close). I am storing the intent and user text from the action_ask_continue action in the slots for further use.
if you need to know more I will provide you with more details, But somehow I have to solve this situation.