The session data in JSON format. Stored using contexts.
Gets the unique conversation ID. It's a new ID for the initial query, and stays the same until the end of the conversation.
Get the current Dialogflow intent name.
Set reprompts when users don't provide input to this action (no-input errors). Each reprompt represents as the SimpleResponse, but raw strings also can be specified for convenience (they're passed to the constructor of SimpleResponse). Notice that this value is not kept over conversations. Thus, it is necessary to set the reprompts per each conversation response.
The Dialogflow parameters from the current intent. Values will only be a string, an Object, or undefined if not included.
Will also be sent via intent handler 3rd argument which is the encouraged method to retrieve.
Will also be sent via intent handler 3rd argument which is the encouraged method to retrieve.
The user's raw input query.
True if the app is being tested in sandbox mode. Enable sandbox mode in the Actions console to test transactions.
Sets speech biasing options.
Gets the User object. The user object contains information about the user, including a string identifier and personal information (requires requesting permissions, see conv.ask(new Permission)).
Asks to collect user's input. All user's queries need to be sent to the app. The guidelines when prompting the user for a response must be followed at all times.
A response fragment for the library to construct a single complete response
Have Assistant render the speech response and close the mic.
A response fragment for the library to construct a single complete response
Triggers an intent of your choosing by sending a followup event from the webhook. Final response can theoretically include responses but these will not be handled by Dialogflow. Dialogflow will not pass anything back to Google Assistant, therefore Google Assistant specific information, most notably conv.user.storage, is ignored.
Name of the event
Parameters to send with the event
The language of this query. See Language Support for a list of the currently supported language codes. Note that queries in the same session do not necessarily need to specify the same language. By default, it is the languageCode sent with Dialogflow's queryResult.languageCode
Generated using TypeDoc
Get the current Dialogflow action name.
app.intent('Default Welcome Intent', conv => { const action = conv.action })