We've built a QnA bot in our organization for internal use, using BotFramework V4 and C# (.Net Core). We also want to use Bing spell check to fix typos in questions.
But the "correction" makes troubles in some multi-turn conversation: Bing spell check may replace abbervation and special terms, then QnA service may not catch the right question and answer.
We took the example from the tutorial, that use CardAction
to prompt related questions:
foreach (var prompt in result.Context.Prompts) {
buttonList.Add(
new CardAction()
{
Value = prompt.DisplayText,
Type = ActionTypes.ImBack,
Title = prompt.DisplayText,
});
}
Following an example (in French) when using the bot on Microsoft Teams:
My question is:
how can I determine if the message is from user click on suggest button (for example, get the object CardAction
and its property Type
) ?
I had look in turnContext
parameter provided in OnMessageActivityAsync
method. but nothing found.
I would like to apply Bing spell check for directly user input, but not for suggest actions.
Thank you. (p.s.) i found a similar question to botframework v3 without accepted answer, i'm using v4.