public async Task WhatAreBots(IDialogContext context, LuisResult result) { XDocument dialog = UIBuilder.CreateDialog(); UIBuilder.AppendAnimation(dialog, UIBuilder.Animation.thinking); UIBuilder.AppendLabel(dialog, "<prosody rate=\"fast\">As pessoas têm opiniões diferentes sobre <phoneme alphabet=\"x-microsoft-ups\" ph=\"B AO . T S\">bots</phoneme>:</prosody>"); IMessageActivity message = context.MakeMessage(); this.AddCustomCard(message, dialog); await context.PostAsync(message); dialog = UIBuilder.CreateDialog(); string[] items = new string[] { "<prosody rate=\"fast\">Algumas pessoas pensam que são programas de inteligência artificial.</prosody>", "<prosody rate=\"fast\">Outras dizem que são sistemas de linguagem natural.</prosody>", "<prosody rate=\"fast\">E muitos dizem que são programas focados em sistemas de mensagens</prosody>" }; UIBuilder.AppendBulletList(dialog, items); UIBuilder.AppendAnimation(dialog, UIBuilder.Animation.enter); message = context.MakeMessage(); this.AddCustomCard(message, dialog); await context.PostAsync(message); context.Wait(MessageReceived); }
public async Task WhatAreBots(IDialogContext context, LuisResult result) { XDocument dialog = UIBuilder.CreateDialog(); UIBuilder.AppendAnimation(dialog, UIBuilder.Animation.thinking); UIBuilder.AppendLabel(dialog, "Las personas tienen distintas opiniones sobre los <phoneme alphabet=\"x-microsoft-ups\" ph=\"B AO . T S\">bots</phoneme>:"); IMessageActivity message = context.MakeMessage(); this.AddCustomCard(message, dialog); await context.PostAsync(message); dialog = UIBuilder.CreateDialog(); string[] items = new string[] { "Algunas personas piensan que son programas de inteligencia artificial", "Otras dicen que son sistemas de lenguage natural.", "Y muchos dicen que son programas enfocados en mensajeria" }; UIBuilder.AppendBulletList(dialog, items); UIBuilder.AppendAnimation(dialog, UIBuilder.Animation.enter); message = context.MakeMessage(); this.AddCustomCard(message, dialog); await context.PostAsync(message); context.Wait(MessageReceived); }
public async Task WhatAreBots(IDialogContext context, LuisResult result) { bool isguggs = false; context.UserData.TryGetValue <bool>("isguggs", out isguggs); if (isguggs) { XDocument dialog = UIBuilder.CreateDialog(); var message = context.MakeMessage(); UIBuilder.AppendLabel(dialog, "Tell folks to come to the next presentation after this. I'll discuss about bots with the help of my assistant, Mat in the conference room 122."); UIBuilder.AppendLabel(dialog, "(don't tell him I said that)"); UIBuilder.AppendLabel(dialog, "But if you want to give people an overview of bots architecture, perhaps start here:"); UIBuilder.AppendLink(dialog, "https://aka.ms/botarchitecture"); this.AddCustomCard(message, dialog); await context.PostAsync(message); context.Wait(MessageReceived); } else { XDocument dialog = UIBuilder.CreateDialog(); UIBuilder.AppendAnimation(dialog, UIBuilder.Animation.thinking); UIBuilder.AppendLabel(dialog, "Different people have different views on bots:"); IMessageActivity message = context.MakeMessage(); this.AddCustomCard(message, dialog); await context.PostAsync(message); dialog = UIBuilder.CreateDialog(); string[] items = new string[] { "Some people think bots are all about <say-as type=\"letters\">AI</say-as>.", "Others say it's all about natural language.", "And some will say it's all about messaging" }; UIBuilder.AppendBulletList(dialog, items); UIBuilder.AppendAnimation(dialog, UIBuilder.Animation.enter); message = context.MakeMessage(); this.AddCustomCard(message, dialog); await context.PostAsync(message); context.Wait(MessageReceived); } }