GoogleCloudDialogflowCxV3beta1EventHandlerArgs

data class GoogleCloudDialogflowCxV3beta1EventHandlerArgs(val event: Output<String>, val targetFlow: Output<String>? = null, val targetPage: Output<String>? = null, val triggerFulfillment: Output<GoogleCloudDialogflowCxV3beta1FulfillmentArgs>? = null) : ConvertibleToJava<GoogleCloudDialogflowCxV3beta1EventHandlerArgs>

An event handler specifies an event that can be handled during a session. When the specified event happens, the following actions are taken in order: * If there is a trigger_fulfillment associated with the event, it will be called. * If there is a target_page associated with the event, the session will transition into the specified page. * If there is a target_flow associated with the event, the session will transition into the specified flow.

Constructors

fun GoogleCloudDialogflowCxV3beta1EventHandlerArgs(event: Output<String>, targetFlow: Output<String>? = null, targetPage: Output<String>? = null, triggerFulfillment: Output<GoogleCloudDialogflowCxV3beta1FulfillmentArgs>? = null)

Functions

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

Properties

Link copied to clipboard
val event: Output<String>

The name of the event to handle.

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

The target flow to transition to. Format: projects//locations//agents//flows/.

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

The target page to transition to. Format: projects//locations//agents//flows//pages/.

Link copied to clipboard

The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.