SIGN UP
Navigation

DialogflowResult

Represents the result of an intent response.

Properties

string action

The action name from the matched intent.

Boolean allRequiredParamsPresent

This field is set to: - false if the matched intent has required parameters and not all of the required parameter values have been collected. - true if all required parameter values have been collected, or if the matched intent doesn't contain any required parameters.

Object diagnosticInfo

The free-form diagnostic info. For example, this field could contain webhook call latency.

Array fulfillmentMessages

The collection of rich messages to present to the user.

String fulfillmentText

This field is set to: - false if the matched intent has required parameters and not all of the required parameter values have been collected. - true if all required parameter values have been collected, or if the matched intent doesn't contain any required parameters.

Object intent

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.

Number intentDetectionConfidence

The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain).

String languageCode

The language that was triggered during intent detection. See Language Support for a list of the currently supported language codes.

Object parameters

The collection of extracted parameters.

string queryText

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.