Now after form is deactivated and all required slots are filled it does not execute action_display_leave_details instead it sometimes display restart_conversation or action listen.
Did you pass the utterance or display leave details in your action_display_leave_details?
I’d suggest please first check till here that you able to get the result or not and then provide the button payload for the affirm or deny and then for the new fresh process for the leave.
@NIkhilBhaskar Did you checked with rasa interactive what is happening? OR can you share some debugs or any error if you getting? It’s hard for me to comment.
You should start by reading the forms page. You shouldn’t be using requested_slot in this manner in a story - control the flow with the form required_slots and form validation.
Your story should look more like this:
- story: apply leave + affirm
steps:
- intent: apply_leave
- action: apply_leave_form
- active_loop: apply_leave_form
- active_loop: null
- action: action_apply_leave
- action: restart_conversation # why do this? you should reset slots in action_apply_leave
The debug output will give you the details on how the dialog prediction is being made. It’s most likely an issue with your stories. Can you share your bot repo?
i have changed some slot names but all in all it is same story(changing slot names is nothing to do with actual solution)
The work around I found was, after you have asked all the questions from user and gathered the required information in slots, you request for a dummy slot as given in story and in action_ask_dummySlot you do this
and in validate portion you simply return as you always do
then all my data goes to my frontend code via webhooks and when user clicks on apply leave button then /trigger_apply_leave_action is triggered with 100% confidence and then action_apply_leave executes.
I apologize for this rusty answer I don’t remember it all together how I did it as it has been 2 years and now I am different tech stack but whatever I could understand from the code i have explained it here