Join the Dialogflow CX competition! Get trained in Dialogflow CX, work on open-source conversational components, get a free Dialogflow t-shirt and win cool prizes! Learn more.

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,
  "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.

intent

string

The unique identifier of an Intent. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/intents/<Intent ID>. 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/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>.

targetFlow

string

The target flow to transition to. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>.