Google Assistant Platform Integration
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:
The first two messages are usually reprompt messages, the third one is used to say goodbye to the user.
Session Entities work similar to Dynamic Entities in that you can enhance your existing static entities with dynamic ones to react to changes in user data or context. You can even choose whether to supplement or replace existing entities by providing an optional
Here is the official reference by Google: Session Entities.
Session Entities are stored for 20 minutes, although we recommend to clear every session entity as soon as the user session ends.
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
- If there is no
userIdin the request, generate one using
uuidv4, and then save it to
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: