Request
Introduction
The request is the incoming data that the Alexa platform sends to your app's endpoint. It consists of information like:
- User ID,
- Intent, e.g.
MyNameIsIntent
- Input, e.g.
name
- Session data, e.g. a state
and other things that might be relevant to your app. You can access the incoming request with this.$request
.
Here's an example request:
In the Jovo Framework repository we keep sample requests for the most common types. You can find them here
$request Object
Besides the cross-platform getter and setter methods the Google Assistant $request
object supports the following general helper methods:
Name | Description | Return Value |
---|---|---|
getUserStorage() |
Returns the userStorage object where you can persist data across sessions |
object |
hasWebBrowserInterface() |
Returns true if the user's device is capable of using a web browser | boolean |