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?