FlowArgs

data class FlowArgs(val agentId: Output<String>? = null, val description: Output<String>? = null, val displayName: Output<String>? = null, val eventHandlers: Output<List<GoogleCloudDialogflowCxV3EventHandlerArgs>>? = null, val languageCode: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val nluSettings: Output<GoogleCloudDialogflowCxV3NluSettingsArgs>? = null, val project: Output<String>? = null, val transitionRouteGroups: Output<List<String>>? = null, val transitionRoutes: Output<List<GoogleCloudDialogflowCxV3TransitionRouteArgs>>? = null) : ConvertibleToJava<FlowArgs>

Creates a flow in the specified agent. Note: You should always train a flow prior to sending it queries. See the training documentation.

Constructors

Link copied to clipboard
fun FlowArgs(agentId: Output<String>? = null, description: Output<String>? = null, displayName: Output<String>? = null, eventHandlers: Output<List<GoogleCloudDialogflowCxV3EventHandlerArgs>>? = null, languageCode: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, nluSettings: Output<GoogleCloudDialogflowCxV3NluSettingsArgs>? = null, project: Output<String>? = null, transitionRouteGroups: Output<List<String>>? = null, transitionRoutes: Output<List<GoogleCloudDialogflowCxV3TransitionRouteArgs>>? = null)

Functions

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

Properties

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

The description of the flow. The maximum length is 500 characters. If exceeded, the request is rejected.

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

The human-readable name of the flow.

Link copied to clipboard

A flow's event handlers serve two purposes: * They are responsible for handling events (e.g. no match, webhook errors) in the flow. * They are inherited by every page's event handlers, which can be used to handle common events regardless of the current page. Event handlers defined in the page have higher priority than those defined in the flow. Unlike transition_routes, these handlers are evaluated on a first-match basis. The first one that matches the event get executed, with the rest being ignored.

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

The language of the following fields in flow: * Flow.event_handlers.trigger_fulfillment.messages * Flow.event_handlers.trigger_fulfillment.conditional_cases * Flow.transition_routes.trigger_fulfillment.messages * Flow.transition_routes.trigger_fulfillment.conditional_cases If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.

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

The unique identifier of the flow. Format: projects//locations//agents//flows/.

Link copied to clipboard

NLU related settings of the flow.

Link copied to clipboard
val project: Output<String>? = null
Link copied to clipboard
val transitionRouteGroups: Output<List<String>>? = null

A flow's transition route group serve two purposes: * They are responsible for matching the user's first utterances in the flow. * They are inherited by every page's transition route groups. Transition route groups defined in the page have higher priority than those defined in the flow. Format:projects//locations//agents//flows//transitionRouteGroups/.

Link copied to clipboard

A flow's transition routes serve two purposes: * They are responsible for matching the user's first utterances in the flow. * They are inherited by every page's transition routes and can support use cases such as the user saying "help" or "can I talk to a human?", which can be handled in a common way regardless of the current page. Transition routes defined in the page have higher priority than those defined in the flow. TransitionRoutes are evalauted in the following order: * TransitionRoutes with intent specified. * TransitionRoutes with only condition specified. TransitionRoutes with intent specified are inherited by pages in the flow.