botframework icon indicating copy to clipboard operation
botframework copied to clipboard

how can i catch the no match found

Open nmssalman opened this issue 6 years ago • 5 comments

i have a requirement to catch all the unanswered questions. please suggest me an idea to find unanswered questions. i have to store unanswered questions into a database.

nmssalman avatar Aug 26 '18 07:08 nmssalman

You can override the NoMatchHandler and log your unanswered questions in there. Check the readme out for an example. If you are still struggling let me know.

garypretty avatar Aug 29 '18 12:08 garypretty

im getting an error. no suitable method found to override.

nmssalman avatar Aug 30 '18 04:08 nmssalman

Hello, firstly I would like to say thank you Gary for this library, it is great and very useful to us.

Unfortunately, my override for the no match handler is not getting called and the default no match found message is being passed back form the QnA service. "No good match found in KB".

Do you have any ideas?

I did not ice that the way this is checked and called is the following in the QnAMakerDialog HandleMessage method:

if (response.Answers.Any() && response.Answers.First().QnaId == -1)

Could it be that the service now returns the default message as an answer?

uniper-scott avatar Sep 13 '18 07:09 uniper-scott

Hi. I think that there must have been a change, as you say, to the way the service indicates no answer has been found. I'll try and take a look today and get a fix in.

garypretty avatar Sep 13 '18 08:09 garypretty

my bot doesn't show icon...what can i do for this?

nmssalman avatar Sep 13 '18 08:09 nmssalman