1
在QnA Maker API中,當找不到結果時,它會返回一些默認消息,或者我們可以更改該消息,但是我想運行一個函數/方法當沒有結果來源。以下是代碼。Azure Bot Framework,QnA Maker API,如何在QnA對話中獲取查詢文本
public QnaDialog(): base(
new QnAMakerService(new QnAMakerAttribute(ConfigurationManager.AppSettings["QnaSubscriptionKey"],
ConfigurationManager.AppSettings["QnaKnowledgebaseId"], "Hmm, I wasn't able to find any relevant content. Can you try asking in a different way? or try with typing help.", 0.5)))
{
//this is what i want to call, this is working but **i am not able to get query text here**
SendEmail email = new SendEmail();
email.SendEmailtoAdmin("Query_Text", "Email ID");
}