GoogleCloudDialogflowCxV3FulfillmentArgs

data class GoogleCloudDialogflowCxV3FulfillmentArgs(val conditionalCases: Output<List<GoogleCloudDialogflowCxV3FulfillmentConditionalCasesArgs>>? = null, val messages: Output<List<GoogleCloudDialogflowCxV3ResponseMessageArgs>>? = null, val returnPartialResponses: Output<Boolean>? = null, val setParameterActions: Output<List<GoogleCloudDialogflowCxV3FulfillmentSetParameterActionArgs>>? = null, val tag: Output<String>? = null, val webhook: Output<String>? = null) : ConvertibleToJava<GoogleCloudDialogflowCxV3FulfillmentArgs>

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

Link copied to clipboard
fun GoogleCloudDialogflowCxV3FulfillmentArgs(conditionalCases: Output<List<GoogleCloudDialogflowCxV3FulfillmentConditionalCasesArgs>>? = null, messages: Output<List<GoogleCloudDialogflowCxV3ResponseMessageArgs>>? = null, returnPartialResponses: Output<Boolean>? = null, setParameterActions: Output<List<GoogleCloudDialogflowCxV3FulfillmentSetParameterActionArgs>>? = null, tag: Output<String>? = null, webhook: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): GoogleCloudDialogflowCxV3FulfillmentArgs

Properties

Link copied to clipboard

Conditional cases for this fulfillment.

Link copied to clipboard

The list of rich message responses to present to the user.

Link copied to clipboard
val returnPartialResponses: Output<Boolean>? = null

Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.

Link copied to clipboard

Set parameter values before executing the webhook.

Link copied to clipboard
val tag: Output<String>? = null

The value of this field will be populated in the WebhookRequest fulfillmentInfo.tag field by Dialogflow when the associated webhook is called. The tag is typically used by the webhook service to identify which fulfillment is being called, but it could be used for other purposes. This field is required if webhook is specified.

Link copied to clipboard
val webhook: Output<String>? = null

The webhook to call. Format: projects//locations//agents//webhooks/.