Utter faq module is not working as designed

Dear Team,

Issue Scenario - 1:

Could you please help, why my bot isn’t responding to the faq.

It’s working only for the first time, and when user chooses the same option again then bot isn’t responding. Thanks

By default i have 3 options giving to the user upon bot launch. Assume, user chooses option-1 for searching the documents… and this is completely working as designed. and now bot asked the user “anything else” and user clicked on yes.

Now bot has requested user to select any one option out of three again…

User clicks on option-2, which is question and answers.

Then bot asked the user to ask his/her questions…

User entered his/her question…

now bot isn’t responding…

Issue Scenario - 2:

Upon launching the bot, as i said above the bot asking the user to choose any one option.

Assume, user chooses option-2 and bot asking user to ask his/her question…

user entered his question…

bot responded with correct answers…

and also bot asked the user “Did that help?” with “Yes” or “No”.

User said Yes, and bot asked the user “is there anything else?”, and user said “Yes”.

Now bot given the user the default 3 options again…

Now, again the user clicks on option-2 which is question and answers…

bot asked the user to provide his/her question…

And this is where the bot isn’t responding…

Best Regards, Ravi

Hello Ravi,

Is there any error written in the logs (for both rasa run actions and rasa x or rasa shell)?

Hi @ChrisRahme No errors its showing.

Hey @ChrisRahme Good Morning :slight_smile:

Looks like i have been fixed it.

I have removed the rules and created stories for the forms with next utterances, as we can’t create more utterances after the successful form submission.

My actual intent is to execute next actions after the form submission. And what i did was, just created the rules and when i try to create stories for the next action with the same intents, it was contradicting during the compile it self.

So i have removed all form related rules and created corresponding stories with next bot utterances. Thanks

But My FAQ module still having glitches it seems.

Best Regards, Ravi

2 Likes

Glad to know!

Please mark your answer as solution :slight_smile:

Hi @ChrisRahme My issue still exist with FAQ handling.

Could you please guide me on how do i fix in this case. Thanks

Best Regards, Ravi

Hey @ChrisRahme

Here is my actual flow and detailed intention to build a bot.

> I have by default 3-options for the user...and all these are 3 Buttons with payloads..
> **1> Document Lookup**
> **2> How to questions(FAQ)**
> **3> Feedbacks**

**Flow-1>**
bot : Please choose options below...
User: Clicked on Document Lookup
bot : Please query your search
user: passed the search query
bot: please choose the category
user: chosen any one category
bot : response provide correctly
bot : is there anything else? Yes or No
user: Yes
bot : Please choose options below...
User: Clicked on Questions(FAQ)
bot : Please provide the deatils
user: passed the question
bot : Unable to respond..

Flow-2

bot : Please choose options below...
    User: Clicked on Questions(FAQ)
    bot : Please provide the details
    user: passed the question
    bot : bot responded correctly
    bot: did that help you? Yes or No
    user: Yes
    bot : is there anything else? Yes or No
    user: Yes
    bot : Please choose options below...
    User: Clicked on Questions(FAQ)
    bot : Please provide the details
    user: passed the question
    bot : Unable to respond..

stories.yml

version: “2.0” stories: ###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

###Story for feedbacks happy path

  • story: feedbacks happy path steps:
    • intent: feedbacks
    • action: action_initiate_feedback_buttons This is the detailed flow with issue. Thanks

Best Regards, Ravi

I have removed the rules for FAQ’s just to avoid the contradiction with stories for the intent faq.

What’s the problem with FAQs?

Your stories seem fine.

Hi @ChrisRahme

I have 3 Options like below…

image

Assume User chooses 1- option

The flow works fine…

At the end bot asks user is there anything else? with Yes or No…

Assume user clicks on Yes

Then bot shows the same 3-options…

Now assume user clicks on 2-option…

Now bot asks to provide his/her questions…

Then user provided his/her question…

Then bot isn’t responding…

Thanks

Best Regards, Ravi