Actions On Google does not persist data from conv.user.params

Asked

Viewed 22 times

-2

When creating an Action for Google Assistant, in Backend (Webhook Fulfillment) I am using conv.user.params (User Storage) to store user data (as it is in the documentation). A simple example of use is the creation of User Id conv.user.params.id = uuidv4();.

For most users this works normally, but an unexpected behavior happens in some other accounts, every time the user accesses again the Action, the conv.user.params is completely empty, as if he were accessing the first time.

This can become a problem when creating user retention reports

1 answer

0


It turns out that some users, in their Google account, in the "Web Activites" part comes disabled by default the "Include Chrome history and activity on websites" option, so Action will never save personal information from it to the cloud, so nothing put in conv.user.params will persist. https://developers.google.com/assistant/conversational/storage-user#expiration_of_user_storage_data

This usually happens in shared accounts or automatically created accounts for employees of company. It can only be resolved by asking the user to verify enable this option. Since Google itself does not report this, nor does it make a point of making this clear to the user, when some information is being recorded.

In your google account settings, click Privacy and Personalization Na configurações da conta google, clique em Privacidade e Personalização

Select Web and App Activity Selecione Atividade na Web e de Apps

Enable Include Chrome history and activity on websites, apps, and devices that use Google services Habilite Incluir o histórico do Chrome e a atividade em sites, apps e dispositivos que usam serviços do Google

At the end update the simulator page, and test again.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.