Dear Team,
Could you please help me creating FAQ while i trigger the intent as a payload button.
I have a button(Question related to Document Lake) with the payload, /faq.
I have created an intent with the name “faq”, this is just to achieve the flow when user clicks on the button.
Now i have to ask the user Please provide your queries…?
When user provide his/her query, i want to render the response from the utter_faq from my domain(designed all the utterance for FAQ’s in my domain.yml). This is very clear
But, how do i handle when the cases like above said, when ever user clicks on the button with /faq payload, first thing is that i want to ask the user to provide his/her queries…
If i use stories, then it should be like this…
###Story for faq happy path
- story: faq happy path
steps:
- intent: faq
- action: utter_ask_questions
- intent: faq
- action: utter_faq
- action: utter_did_that_help
- intent: affirm
- action: utter_anything_else
- intent: affirm
- action: action_user_world
###Story for faq happy path1
- story: faq happy path
steps:
- intent: faq
- action: utter_ask_questions
- intent: faq
- action: utter_faq
- action: utter_did_that_help
- intent: affirm
- action: utter_anything_else
- intent: deny
- action: utter_welcome
###Story for faq sad path1
- story: faq sad path
steps:
- intent: faq
- action: utter_ask_questions
- intent: faq
- action: utter_faq
- action: utter_did_that_help
- intent: deny
- action: utter_ask_extquery
- intent: affirm
- action: action_user_world
###Story for faq sad path2
- story: faq sad path
steps:
- intent: faq
- action: utter_ask_questions
- intent: faq
- action: utter_faq
- action: utter_did_that_help
- intent: deny
- action: utter_ask_extquery
- intent: deny
- action: utter_welcome
If i use rules, then it should be like this… unfortunately rules can’t work for my design, as i have many steps(utter_did_that_help and utter_anything_else) as soon as the bot respond back for particular faq with a response.
If user says No for the utterance “Utter_did_that_help” then i have to create a ticket along with the user message. I have achieved this as well.
- rule: respond to faq
steps:
- intent: faq
- action: utter_faq
crazy thing is that i can’t use both stories and rules together with the same intents and it will not compile for sure as it is going to contradict each other.
So, in this case i have to compromise my design and my manager will not agree for that
What should i do to achieve this flow exactly…Please help. Thanks a ton in advance
Best Regards, Ravi