question

NShini-4293 avatar image
0 Votes"
NShini-4293 asked GiftA-MSFT commented

How to make bot ask a question right after generating an answer from QnA Maker?

Hello, I am new to Microsoft services. and already built my QnAMaker by feeding it an excel file which contains questions and answers. After publishing the QnA Maker, I downloaded the code and tested it on a Bot Framework Emulator. The file contains product names as the answer and the product description as question. When the user gives a description of the product and if it matches one of the description in the file, the product name will be generated as answer.
So, right after this step I want the bot to ask the user whether the suggested product is good or not. I want to ask this question as a response card. Could someone please guide me with this?

azure-qna-maker
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

GiftA-MSFT avatar image
0 Votes"
GiftA-MSFT answered GiftA-MSFT commented

Hi, thanks for reaching out. You should be able to create create multi-turn dialogue using follow up prompts. Here's the documentation, hope it help!


· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello, thanks for your response. If I use the follow up prompts i will have to do it manually for every product and if tomorrow more products will be added it will be a hassle. Is there any other way for example in the code to do this? Thanks in advance

0 Votes 0 ·

Hello, I was able to do it using multi-turn dialogue. I have tested and downloaded the chatbot code in C#.
Now, there is a question which is asked by the bot (Please give me details of the product) and the user is supposed to enter some details. Afterwards, the bot will look for an appropriate answer from the Excel file. If no answer is found, I want the bot to ask again (2 more times).

Could you please guide me how can I do this?

0 Votes 0 ·

Multi-turn structure can be inferred only from URLs, PDF files, or DOCX files, here is a sample multi-turn document. You can add new question and answer pairs as follow-up prompts as shown in this document. QnA maker is used for static information, hence, you'd need to have QnA pairs custom to your needs. You can enable active learning feature to help improve quality of your knowledge base (more details on active learning provided here). For more complex scenarios, you may want to consider LUIS integration to help understand intents and provide relevant information to users.



1 Vote 1 ·