public override async Task StartAsync(IDialogContext context) { DiagnosticsUtil.TraceInformation($"SurveyLUISDialog- StartAsync"); _context = new LUISDialogContext(context.Activity.From.Id); _context.Refresh(IntentType.StartDialog, null); _context.Questions = new List <Question>() { new Question() { Id = 0, Subject = "Años", Text = "¿Cuántos años tienes", EntityType = EntityType.Age }, new Question() { Id = 1, Subject = "Lugar de estudios", Text = "¿Dónde estudias", EntityType = EntityType.Location }, new Question() { Id = 2, Subject = "Opinion", Text = "¿Te ha gustado la charla?", EntityType = EntityType.Opinion }, }; Response response = GetNextResponse(); await SendResponse(context, response); }
public override Task StartAsync(IDialogContext context) { _context = new LUISDialogContext(context.Activity.From.Id); return(base.StartAsync(context)); }