public async Task Cumprimento(IDialogContext context, LuisResult result) { ConversationStarter.TextReference = string.Empty; await context.PostAsync($"Texto enviado: {result.Query}"); var qnaService = new QnAMakerService(new QnAMakerAttribute(qnaSubscriptionKey, qnaKnowledgebaseId, "Buguei aqui, pera! ¯\(º_o)/¯")); var qnaMaker = new QnAMakerDialog(qnaService); await qnaMaker.MessageReceivedAsync(context, Awaitable.FromItem(activity)); }
public async Task Apresentacao(IDialogContext context, LuisResult result) { var qnaService = new QnAMakerService(new QnAMakerAttribute(qnaSubscriptionKey, qnaKnowledgebaseId, "Buguei aqui, pera! ¯\(º_o)/¯")); var qnaMaker = new QnAMakerDialog(qnaService); await qnaMaker.MessageReceivedAsync(context, Awaitable.FromItem(ArgumentoStatic.Argument)); }
public async Task Cumprimento(IDialogContext context, LuisResult result) { var qnaService = new QnAMakerService(new QnAMakerAttribute(qnaSubscriptionKey, qnaKnowledgebaseId, "eh o que maluco ? ¯\(º_o)/¯")); var qnaMaker = new QnAMakerDialog(qnaService); await qnaMaker.MessageReceivedAsync(context, Awaitable.FromItem(messageActivity)); }