Loop through a question Microsoft

NShini 51 Reputation points
2021-08-04T12:39:43.55+00:00

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?

Microsoft Q&A
Microsoft Q&A
Use this tag to share suggestions, feature requests, and bugs with the Microsoft Q&A team. The Microsoft Q&A team will evaluate your feedback on a regular basis and provide updates along the way.
821 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,902 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. GiftA-MSFT 11,171 Reputation points
    2021-08-04T21:50:47.797+00:00

    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!

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.