Initializes conversational application.
A set of options that apply to the application.
Represents a request sent to a developer's fulfillment by Google.
Contains context information when user makes query. Such context includes but not limited to info about active media session, state of canvas web app, etc.
Represents the device the user is using to make a request to the Action.
Describes the expectations for the next dialog turn.
Get the current handler information like handler name.
Represents the HomeGraph structure that the user's target device belongs to.
Represents the last matched intent.
Represents the prompts to be sent to the user, these prompts will be appended to previously added messages unless explicitly overwritten.
Info on the current and next scene when the function was called. Will be filled when the fulfillment call is made within the scope of a scene.
Represent a scene. Scenes can call fulfillment, add prompts, and collect slot values from the user. Scenes are triggered by events or intents and can trigger events and match intents to transition to other scenes.
Represents the current and next scene. If Scene.next
is set the runtime will
immediately transition to the specified scene.
Holds session data like the session id and session parameters.
Contains information on the current conversation session
Describes data for the current session, session parameters can be created, updated, or removed by the fulfillment.
Represents the user making a request to the Action.
Add prompt items to be sent back for fulfillment.
Prompt items are limited to 2 simple responses.
More than 2 will result in an error in fulfillment.
The first simple added in order will be set to firstSimple
.
The last simple added in order will be set to lastSimple
.
A response fragment for the library to construct a single complete response
Append speech responses to be sent back for fulfillment.
A speech string to be appended
Manually sets response JSON.
Returns generated JSON response.
Note this method sets the digested
field to true
and can only be
called once.
Returns manually set JSON response or generates a response.
If the response has to be generated, it sets the digested
field to
true
.
Generated using TypeDoc
Represents a turn of the conversation. This is provided as
conv
in an intent handler.