DialogflowResult
Represents a result of an intent response.
Add the following line to your scenario code to use the interface:
require(Modules.AI);
Props
action
action: string
The action name from the matched intent.
allRequiredParamsPresent
allRequiredParamsPresent: boolean
Whether all the required parameters are present. This field is set to: - false if the matched intent has required parameters and not all the required parameter values have been collected. - true if all required parameter values have been collected, or if the matched intent does not contain any required parameters.
diagnosticInfo
diagnosticInfo: {[id: string]: any}
The free-form diagnostic info. For example, this field could contain webhook call latency.
fulfillmentMessages
fulfillmentMessages: any[]
The collection of rich messages to present to the user.
fulfillmentText
fulfillmentText: string
This field is set to: - false if the matched intent has required parameters and not all the required parameter values have been collected. - true if all required parameter values have been collected, or if the matched intent does not contain any required parameters.
intent
intent: {[id: string]: any}
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: name, display_name and webhook_state.
intentDetectionConfidence
intentDetectionConfidence: number
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).
languageCode
languageCode: string
The language that was triggered during intent detection. See Language support for a list of the currently supported language codes.
parameters
parameters: {[id: string]: any}
The collection of extracted parameters.
queryText
queryText: string
The original conversational query text: - If natural language text was provided as input, query_text contains a copy of the input. - If natural language speech audio was provided as input, query_text contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If an event was provided as input, query_text is not set.