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));
        }
Esempio n. 2
0
 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));
 }
Esempio n. 3
0
 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));
 }