actions-on-google / actions-on-google-nodejs

Node.js client library for Actions on Google
https://actions-on-google.github.io/actions-on-google-nodejs
Apache License 2.0
900 stars 197 forks source link

conv.user.storage clears out with every post from the dialogflow #352

Open bruriah1999 opened 4 years ago

bruriah1999 commented 4 years ago

that is the conv.user details:

User { raw: { locale: 'en-US', lastSeen: '2019-09-09T08:23:31Z', userVerificationStatus: 'VERIFIED' }, storage: {}, _id: undefined, locale: 'en-US', verification: 'VERIFIED', permissions: [], last: Last { seen: 2019-09-09T08:23:31.000Z }, name: Name { display: undefined, family: undefined, given: undefined }, entitlements: [], access: Access { token: undefined }, profile: Profile { token: undefined } }

doe's anybody know how to help?

Fleker commented 4 years ago

Can you provide more detail on how you're setting user storage?

bruriah1999 commented 4 years ago

yes here is what i am trying to do : that is the post function and when the intent 'PersonalDetail' is on in the dialogflow it goes to a class image

image

Fleker commented 4 years ago

The issue you seem to be having is that you're using the dialogflow-fulfillment library, which doesn't support user storage. You will need to use the actions-on-google library as user storage is a feature only available to the Actions on Google platform