Skip to content

Instantly share code, notes, and snippets.

@frogermcs
Created November 5, 2017 11:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frogermcs/f96a42dad921298c8708fd8e39b52f9f to your computer and use it in GitHub Desktop.
Save frogermcs/f96a42dad921298c8708fd8e39b52f9f to your computer and use it in GitHub Desktop.
class Conversation {
//...
//Intent update_settings
actionUpdateSettings() {
this._askForUserName();
}
_askForUserName() {
const permission = this.dialogflowApp.SupportedPermissions.NAME;
this.dialogflowApp.askForPermission(Str.PERMISSIONS_ASK_FOR_NAME, permission);
}
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment