GoogleCloudDialogflowCxV3Fulfillment class
A fulfillment can do one or more of the following actions at the same time:
-
Generate rich message responses.
-
Set parameter values. * Call the webhook. Fulfillments can be called at various stages in the Page or Form lifecycle. For example, when a DetectIntentRequest drives a session to enter a new page, the page's entry fulfillment can add a static response to the QueryResult in the returning DetectIntentResponse, call the webhook (for example, to load user data from a database), or both.
Constructors
-
GoogleCloudDialogflowCxV3Fulfillment({GoogleCloudDialogflowCxV3AdvancedSettings? advancedSettings, List<
GoogleCloudDialogflowCxV3FulfillmentConditionalCases> ? conditionalCases, bool? enableGenerativeFallback, List<GoogleCloudDialogflowCxV3ResponseMessage> ? messages, bool? returnPartialResponses, List<GoogleCloudDialogflowCxV3FulfillmentSetParameterAction> ? setParameterActions, String? tag, String? webhook}) - GoogleCloudDialogflowCxV3Fulfillment.fromJson(Map json_)
Properties
- advancedSettings ↔ GoogleCloudDialogflowCxV3AdvancedSettings?
-
Hierarchical advanced settings for this fulfillment.
getter/setter pair
-
conditionalCases
↔ List<
GoogleCloudDialogflowCxV3FulfillmentConditionalCases> ? -
Conditional cases for this fulfillment.
getter/setter pair
- enableGenerativeFallback ↔ bool?
-
If the flag is true, the agent will utilize LLM to generate a text
response.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
-
messages
↔ List<
GoogleCloudDialogflowCxV3ResponseMessage> ? -
The list of rich message responses to present to the user.
getter/setter pair
- returnPartialResponses ↔ bool?
-
Whether Dialogflow should return currently queued fulfillment response
messages in streaming APIs.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
setParameterActions
↔ List<
GoogleCloudDialogflowCxV3FulfillmentSetParameterAction> ? -
Set parameter values before executing the webhook.
getter/setter pair
- tag ↔ String?
-
The value of this field will be populated in the WebhookRequest
fulfillmentInfo.tag
field by Dialogflow when the associated webhook is called.getter/setter pair - webhook ↔ String?
-
The webhook to call.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited