How to get user logged in email in Jovo web hook handler?

account-linking
google-assistant

#1

I have implemented web hook using Jovo and configured web hook URL in dialog flow fulfillment section. initial flow(getting results from web hook through google assistant) working fine. Now I want to get user email id (which is logged in google assistant) in Jovo web hook handler.Please suggest how can we get the user email in Jovo web hook handler.

Thanks,
Satya


#2

Hi @satyajovo, welcome to the Jovo Community :wave:

To get the user email, you’d probably have to use account linking. You can find a tutorial here: https://www.jovo.tech/tutorials/google-action-account-linking-auth0

Note: This tutorial uses Auth0, an oAuth provider. For just the email address, you could use Google Sign-In. The code will stay pretty much the same. Take a look at this discussion: Google Sign-In in Jovo