what is required by me:
let say i have i have an intent which is asking for two things:
user: show me computers bot: please select a criteria from: high performance, low price, build quality
user: high performance bot: in high performance i have two brands, Apple and Asus, which one would you like to prefer?
user: Apple bot: how would you like to sort, by release date or rating?
user: rating bot: here are your computers sorted by rating: imac 2018 and macbook pro 2018
user: uywiuewrwrw bot: here are your computers: imac 2018 and macbook pro 2018
user: kljrtklet bot: here are your computers: imac 2018 and macbook pro 2018
what i need is when user say "uywiuewrwrw" i need it to fall in fallback
what i have code
I'm using using slot filling form webhook because i need to get some data from the db on behalf of first parameter and then, and the query for second parameter is also dependent on the first parameter,
i have three input in my intent according to my case but in fact i have total 5 action parameters in my intent and all are marked as required because if i dont mark it as required it just forget the value during the slot filling
why i have 5 parameters: i have the first entity that have three possibility(high performance, low price, build quality) and on selection of each i have further possibilities, if user select high performance i need to ask for Apple and Asus, this is mt second entity if user select low price, i need to ask "under 100 new" or "used pc", this is my second entity if user select build quality, i need to ask "industry class" or "militry class" and then i ask for the sort by "release date" or "rating", this is my 5th entity
since i make all of them required, it is not marking intent as completed after collecting just two params, but in fact i only need just two parameter filled out if that 4, i can not mark any of them optional because it forgets vlaue during slot filling(actually in this case it will not forget but in my actual case i have further more question after these params, like how would you like to sort etc)
use case:
Actually i have some further FAQS intent like "what this chatbot does" or "where does your company located" so user can ask these questions any time, after getting the computer recommendation complete if user ask any of FAQ it replies correctly because i'm expiring the context, but if the user command doesnt match with any of the FAQ intent it should goto the fallback where i give them question examples randomly like "hey i didnt get your question, you may ask for this, this, and this"
looking for the help