public static async Task ReplyWithHelp(ITurnContext context) { IMessageActivity activity = context.Activity.CreateReply(); activity.Text = $"I can retrieve cognitive fields from Azure Search. To start a new search, respond \"search\""; activity.SuggestedActions = HeroCardUtility.InitialSuggestions(); await context.SendActivityAsync(activity); }
public static async Task ReplyWithConfused(ITurnContext context) { // Add a response for the user if Regex doesn't know // What the user is trying to communicate IMessageActivity activity = context.Activity.CreateReply(); activity.Text = $"I'm sorry, I don't understand."; activity.SuggestedActions = HeroCardUtility.InitialSuggestions(); await context.SendActivityAsync(activity); }