Learn more about different data types that can be used in a Jovo project.
The Jovo Framework uses different concepts of data:
Request data is written into the Jovo object (
this) and only stored for a specific request. This can be helpful if data is used across different methods (e.g. if Intent Redirects are used).
We recommend the following practice to store data in the Jovo object:
Session data (also called session attributes) stores data in the JSON response back to the platform, which can then be accessed in the next request (as long as the session stays active).
You can store elements into the session data like this:
States are also stored as session data/attributes.
The data can be stored like this:
App data is a special data type that stores data into the
app object, which exists as long as the server is running:
For example, this can be used for non-user-specific information that needs an API call that is not necessary to be executed at every request. By saving data into the
app object, the API call only needs to be done once while the server is running or the function is warm.
To implement Account Linking in your voice application, you need two core methods.
The first allows you to prompt the user to link their account, by adding an
AccountLinkingCard to your response, which will be shown respective companion app:
The other method returns you the access token, which will be added to every request your skill gets, after the user linked their account:
On Google Action, after the user has responded to your account linking request, you will receive a request to notify you about the result, which will be mapped to the Jovo built-in
ON_SIGN_IN intent. Using the
getSignInStatus() method you can get the result:
For more information on Account Linking, check out our blogposts:
Any specific questions? Just drop them below. Alternatively, you can also fill out this feedback form. Thank you!