Learn more about Google Assistant specific features that can be used with the Jovo Framework.
- Introduction to Google Assistant Specific Features
- Push Notifications
- Daily Update
- Routine Suggestion
- Web Browser Interface
You can access the
googleAction object like this:
This section provides an overview of Google Assistant specific features for output. For the basic concept, take a look here: Basic Concepts > Output.
Google Assistant allows to add multiple reprompts that are spoken out in order if there is no response by the user. Here is the official reference by Google: Static Reprompts.
The reprompts can be added to the
ask method adding more parameters (Version < 2.2 was using an array https://www.jovo.tech/news/2019-04-04-jovo-v2-2-typescript#breaking-changes).
The first two messages are usually reprompt messages, the third one is used to say goodbye to the user.
In previous versions of Jovo, the
userId for Google Actions was taken from the request's user ID. In 2018, Google deprecated this element of the request JSON and recommended webhook generated user IDs as an alternative way to store user data.
2.0, a Google Action
userId is created in the following process:
- If there is a
userIddefined in the userStorage, take this
- If not, use the
userIdfrom the request (if there is one) and then save it in userStorage
- If there is no
userIdin the request, generate one using
uuidv4, and then save it to userStorage
Note: userStorage only works for Google Assistant users who have voice match enabled. Learn more in the official Google Docs.
You can ask your user to confirm something using the following method:
The question should be one which can be answered with yes or no.
The user's response will be mapped to the
ON_CONFIRMATION intent, where you can check wether they confirmed or not using
The web browser is a platform specific google action feature. Access it via: