question

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

Loop through a question Microsoft

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.
The bot ask the user to give some details about the product and afterwards it looks for some keywords which trigger an answer from the QnA. But if the bot could not find any answer, I want it to ask the user again (at least 3 times) and if nothing after three times, it should just say 'sorry...'.

Could anyone please guide me how can I do the looping part. Should it be done in the code?

qna-feedbackazure-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

Hi, thanks for reaching out. You should be able to create create multi-turn dialogue using follow up prompts. 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. Also, feel free to check out QnA Maker samples in BotBuilder-Samples repo. Hope it helps!

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.