0
votes

I am in the process of creating a QnA bot for Microsoft Teams. I am using the QnA maker to create my knowledge base and coding the bot with Visual Studios 2019. I am curious as to whether it is possible to make the bot search a separate SharePoint database if an answer is not found in the QnA knowledge base. (I am not very well versed in coding in general, sorry!)

1

1 Answers

0
votes

Absolutely. If you can take a look at the sample here, you will notice that this line handles the case where no QnA answers were found. You could replace this line, with code to call SharePoint and return whatever you needed from it. Or probably best, make your call to SharePoint and if no results there, then then just return a friendly message ("No answers were found.")

Additionally, you can look at the score of the answer, and determine if you need to continue to SharePoint or not.