Rate this page:

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

Copy URL
action: 

string

The action name from the matched intent.

allRequiredParamsPresent

Copy URL
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

Copy URL
diagnosticInfo: 

{[id: string]: any}

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

fulfillmentMessages

Copy URL
fulfillmentMessages: 

any[]

The collection of rich messages to present to the user.

fulfillmentText

Copy URL
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

Copy URL
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

Copy URL
intentDetectionConfidence: 

number

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

languageCode

Copy URL
languageCode: 

string

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

parameters

Copy URL
parameters: 

{[id: string]: any}

The collection of extracted parameters.

queryText

Copy URL
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.