I'm creating a chatbot in .NET using Microsoft botbuilder and using the web app bot code as my template. I can't find the variable that contains the text of what is being posted from the bot to the user from the qna maker. I'm currently creating another dialog after each time the bot answers a user's question, but I don't want the bot to do this when the default message is being posted. When I'm debugging I can't seem to find where the answer from the qnamaker is stored.
If anyone know where the answer is being stored and how to access it that would be really helpful, or possibly check the most recent message in the dialog.
Currently my root dialog has this snippet:
await context.Forward(new BasicQnAMakerDialog(), AfterAnswerAsync, message, CancellationToken.None);
the forwarded method is to:
private async Task AfterAnswerAsync(IDialogContext context, IAwaitable<IMessageActivity> result)
{
context.Call(new PostAnswerDialog(), AfterPost);
}
I want to do check if the bot responds with the default message before the context.Call(new PostAnswerDialog(), AfterPost) and if it has then do something else.
check if the bot responds with the default message before the context.Call(new PostAnswerDialog(), AfterPost) and if it has then do something else
QnAMaker Dialog should be able to response to user input, could you clarify your actual scenario? What do you want to do in PostAnswerDialog? – Fei Han