Skip to content

Instantly share code, notes, and snippets.

@gonzaloruizdevilla
Created September 26, 2019 15:15
Show Gist options
  • Save gonzaloruizdevilla/6dc21d8b4ec5a288295ff95ecb94e3ad to your computer and use it in GitHub Desktop.
Save gonzaloruizdevilla/6dc21d8b4ec5a288295ff95ecb94e3ad to your computer and use it in GitHub Desktop.
[LuisIntent (“adauthentication”)]
public async Task ADAuthentication (IDialogContext context, LuisResult result) {
context.Call (CreateGetTokenDialog (), SuccessfulLogin);
}
[LuisIntent (“whoami”)]
public async Task WhoAmI (IDialogContext context, LuisResult result) {
context.Call (CreateGetTokenDialog (), ListMe);
}
[LuisIntent (“myrole”)]
public async Task MyRole (IDialogContext context, LuisResult result) {
context.Call (CreateGetTokenDialog (), ListMyGroups);
}
LuisIntent (“”)]
public async Task None (IDialogContext context, LuisResult result) {
await context.PostAsync (“I’ m sorry but i don’ t understand…”);
context.Wait (MessageReceived);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment