@JiteshGaikwad Thank you so much for your time. But I will always need to appl to be specified. So, what am trying to do is, if the user specifies the appl, utterance is for that appl directly, else, the bot will ask for that appl, which is captured by the “enter_data” intent. The issue is that the slot(appl) is being captured correctly always, the intent is not correct,since it picks up the intent as “enter_data” which is being used in multiple stories, it randomly picks any intent after that. I have specified the max_history as 5, but still it picks up incorrect intents, since the last intent it picks up is “enter_data”.
So, say I have two actual intents: 1)New consumer 2)Email id
I have two actions as specified above, for each for these and they both use “appl” entity and slot. My stories are as below:
NewConsumer story1
- New_Consumer
- utter_ask_newconsumer_byapp
- enter_data{“appl”: B"}
- action_newconsumer_byapp
- action_reset_slot
- utter_did_that_help
NewConsumer story2
- New_Consumer{“appl”: “A”}
- action_newconsumer_byapp
- action_reset_slot
- utter_did_that_help
Email story1
- Email
- utter_ask_email_byapp
- enter_data{“appl”: B"}
- action_email_byapp
- action_reset_slot
- utter_did_that_help
Email story2
- Email{“appl”: “A”}
- action_email_byapp
- action_reset_slot
- utter_did_that_help
So, the first time I ask about new consumer, it asks me for what appl, I say appA, it gives me the correct answer.
The next time, I ask about email, it asks what appl, I say appl B, it gives me the utterance for Newconsumer for appl B. So, my guess is the slots are being reset correctly, just the intent being recognized it enter_data and it is not following the stories. I have multiple such intents that use the same slot.
Am I making sense? Sorry it is a little confusing.
Thanks!