functions/aog-webhook.js
/**
 * Sends a system request to the user requesting permission to send
 * notifications.
 * @param {Conversation} conv
 */
Sends a system request to the user requesting permission to send
notifications.
@param {Conversation} conv
Sends a system request to the user requesting permission to send notifications . @param { Conversation } conv
function askPermissionToNotify(conv) {
  conv.ask(new UpdatePermission({intent: 'Tell Latest Tip'}));
}
function askPermissionToNotify ( conv ) { conv . ask ( new UpdatePermission ( { intent : 'Tell Latest Tip' } ) ) ; }
Sends a system request to the user requesting permission to send
 notifications.
Sends a system request to the user requesting permission to send notifications .
// NOTE: User notification must be first enabled in the Actions Console. // Actions -> <Action> -> User updates and notifications.