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 triggerFulfillment
- If there is a targetPage
- If there is a targetFlow
| JSON representation | 
|---|
| { "name": string, "event": string, "triggerFulfillment": { object ( | 
| Fields | |
|---|---|
| name | 
 Output only. The unique identifier of this event handler. | 
| event | 
 Required. The name of the event to handle. | 
| triggerFulfillment | 
 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. | 
| Union field target. The target to transition to, either a page in the same host flow (the flow that owns thisTransitionRoute), or another flow in the same agent.targetcan be only one of the following: | |
| targetPage | 
 The target page to transition to. Format:  | 
| targetFlow | 
 The target flow to transition to. Format:  | 
| targetPlaybook | 
 The target playbook to transition to. Format:  |