See {@link Profile#payload|conv.user.profile.payload} for all the payload properties.
The list of all digital goods that your user purchased from your published Android apps. To enable this feature, see the instructions in the documentation.
The user locale. String represents the regional language information of the user set in their Assistant settings. For example, 'en-US' represents US English.
User's permissioned name info. Properties will be undefined if not request with conv.ask(new Permission)
The data persistent across sessions in JSON format.
It exists in the same context as conv.user.id
Random string ID for Google user.
Random string ID for Google user.
Generated using TypeDoc
Gets the user profile email. Only retrievable with "Google Sign In" linking type set up for account linking in the console.
See {@link Profile#payload|conv.user.profile.payload} for all the payload properties.
// Dialogflow const app = dialogflow({ clientId: CLIENT_ID, }) app.intent('Default Welcome Intent', conv => { conv.ask(new SignIn('To get your account details')) }) // Create a Dialogflow intent with the `actions_intent_SIGN_IN` event app.intent('Get Signin', (conv, params, signin) => { if (signin.status === 'OK') { const email = conv.user.email conv.ask(`I got your email as ${email}. What do you want to do next?`) } else { conv.ask(`I won't be able to save your data, but what do you want to next?`) } }) // Actions SDK const app = actionssdk({ clientId: CLIENT_ID, }) app.intent('actions.intent.MAIN', conv => { conv.ask(new SignIn('To get your account details')) }) app.intent('actions.intent.SIGN_IN', (conv, input, signin) => { if (signin.status === 'OK') { const email = conv.user.email conv.ask(`I got your email as ${email}. What do you want to do next?`) } else { conv.ask(`I won't be able to save your data, but what do you want to next?`) } })