private static async Task <DialogTurnResult> CommonQuestionsStepAsync(WaterfallStepContext stepContext, CancellationToken cancellationToken) { // Set the user's name to what they entered in response to the name prompt. var userProfile = (UserProfile)stepContext.Values[UserInfo]; var userType = stepContext.Context.Activity.Text?.Trim(); userProfile.IsMember = !string.IsNullOrWhiteSpace(userType) && userType.Equals("member", StringComparison.InvariantCultureIgnoreCase); // Take the input from the user and create the appropriate response. var commonQuestions = await SiteHelper.GetCommonQuestionsAsync(SiteUrl, userProfile.IsMember); if (!string.IsNullOrWhiteSpace(commonQuestions)) { // Respond to the user. await stepContext.Context.SendActivityAsync(commonQuestions, cancellationToken : cancellationToken); } return(await stepContext.NextAsync(null, cancellationToken)); }