Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

GoogleCloudDialogflowCxV3beta1EventHandler

import type { GoogleCloudDialogflowCxV3beta1EventHandler } from "https://googleapis.deno.dev/v1/dialogflow:v3.ts";

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.

interface GoogleCloudDialogflowCxV3beta1EventHandler {
event?: string;
readonly name?: string;
targetFlow?: string;
targetPage?: string;
}

§Properties

§
event?: string
[src]

Required. The name of the event to handle.

§
readonly name?: string
[src]

Output only. The unique identifier of this event handler.

§
targetFlow?: string
[src]

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

§
targetPage?: string
[src]

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

§

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.