View Source GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1EventHandler (google_api_dialogflow v0.88.3)
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.
Attributes
-
event
(type:String.t
, default:nil
) - Required. The name of the event to handle. -
name
(type:String.t
, default:nil
) - Output only. The unique identifier of this event handler. -
targetFlow
(type:String.t
, default:nil
) - The target flow to transition to. Format:projects//locations//agents//flows/
. -
targetPage
(type:String.t
, default:nil
) - The target page to transition to. Format:projects//locations//agents//flows//pages/
. -
targetPlaybook
(type:String.t
, default:nil
) - The target playbook to transition to. Format:projects//locations//agents//playbooks/
. -
triggerFulfillment
(type:GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1Fulfillment.t
, default:nil
) - 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.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1EventHandler{ event: String.t() | nil, name: String.t() | nil, targetFlow: String.t() | nil, targetPage: String.t() | nil, targetPlaybook: String.t() | nil, triggerFulfillment: GoogleApi.Dialogflow.V2.Model.GoogleCloudDialogflowCxV3beta1Fulfillment.t() | nil }