TransitionRoute

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 triggerFulfillment associated with the transition, it will be called.
  • If there is a targetPage associated with the transition, the session will transition into the specified page.
  • If there is a targetFlow associated with the transition, the session will transition into the specified flow.
JSON representation
{
  "name": string,
  "description": string,
  "intent": string,
  "condition": string,
  "triggerFulfillment": {
    object (Fulfillment)
  },

  // Union field target can be only one of the following:
  "targetPage": string,
  "targetFlow": string
  // End of list of possible types for union field target.
}
Fields
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.

Union field 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>.