A transition route specifies a intent
that can be matched and/or a data condition that can be evaluated during a session. When a specified transition is matched, the following actions are taken in order:
- If there is a
associated with the transition, it will be called.triggerFulfillment - If there is a
associated with the transition, the session will transition into the specified page.targetPage - If there is a
associated with the transition, the session will transition into the specified flow.targetFlow
| JSON representation |
|---|
{ "name" : string , "description" : string , "intent" : string , "condition" : string , "triggerFulfillment" : { object ( |
name
string
Output only. The unique identifier of this transition route.
description
string
Optional. The description of the transition route. The maximum length is 500 characters.
intent
string
The unique identifier of an Intent
. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>
. Indicates that the transition can only happen when the given intent is matched. At least one of intent
or condition
must be specified. When both intent
and condition
are specified, the transition can only happen when both are fulfilled.
condition
string
The condition to evaluate against form parameters
or session parameters
.
See the conditions reference
. At least one of intent
or condition
must be specified. When both intent
and condition
are specified, the transition can only happen when both are fulfilled.
triggerFulfillment
object (
Fulfillment
)
The fulfillment to call when the condition is satisfied. At least one of triggerFulfillment
and target
must be specified. When both are defined, triggerFulfillment
is executed first.
target
. The target to transition to, either a page in the same host flow (the flow that owns this TransitionRoute
), or another flow in the same agent. target
can be only one of the following:targetPage
string
The target page to transition to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>
.
targetFlow
string
The target flow to transition to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>
.

