Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::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
trigger_fulfillment
associated with the transition, it will be called. - If there is a
target_page
associated with the transition, the session will transition into the specified page. - If there is a
target_flow
associated with the transition, the session will transition into the specified flow.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#condition
def condition() -> ::String
-
(::String) — The condition to evaluate against [form
parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
See the conditions reference. At least one of
intent
orcondition
must be specified. When bothintent
andcondition
are specified, the transition can only happen when both are fulfilled.
#condition=
def condition=(value) -> ::String
-
value (::String) — The condition to evaluate against [form
parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
See the conditions reference. At least one of
intent
orcondition
must be specified. When bothintent
andcondition
are specified, the transition can only happen when both are fulfilled.
-
(::String) — The condition to evaluate against [form
parameters][google.cloud.dialogflow.cx.v3.Form.parameters] or [session
parameters][google.cloud.dialogflow.cx.v3.SessionInfo.parameters].
See the conditions reference. At least one of
intent
orcondition
must be specified. When bothintent
andcondition
are specified, the transition can only happen when both are fulfilled.
#intent
def intent() -> ::String
-
(::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 ofintent
orcondition
must be specified. When bothintent
andcondition
are specified, the transition can only happen when both are fulfilled.
#intent=
def intent=(value) -> ::String
-
value (::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 ofintent
orcondition
must be specified. When bothintent
andcondition
are specified, the transition can only happen when both are fulfilled.
-
(::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 ofintent
orcondition
must be specified. When bothintent
andcondition
are specified, the transition can only happen when both are fulfilled.
#name
def name() -> ::String
- (::String) — Output only. The unique identifier of this transition route.
#target_flow
def target_flow() -> ::String
-
(::String) — The target flow to transition to.
Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>
.
#target_flow=
def target_flow=(value) -> ::String
-
value (::String) — The target flow to transition to.
Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>
.
-
(::String) — The target flow to transition to.
Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>
.
#target_page
def target_page() -> ::String
-
(::String) — The target page to transition to.
Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>
.
#target_page=
def target_page=(value) -> ::String
-
value (::String) — The target page to transition to.
Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>
.
-
(::String) — The target page to transition to.
Format:
projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow ID>/pages/<Page ID>
.
#trigger_fulfillment
def trigger_fulfillment() -> ::Google::Cloud::Dialogflow::CX::V3::Fulfillment
-
(::Google::Cloud::Dialogflow::CX::V3::Fulfillment) — The fulfillment to call when the condition is satisfied. At least one of
trigger_fulfillment
andtarget
must be specified. When both are defined,trigger_fulfillment
is executed first.
#trigger_fulfillment=
def trigger_fulfillment=(value) -> ::Google::Cloud::Dialogflow::CX::V3::Fulfillment
-
value (::Google::Cloud::Dialogflow::CX::V3::Fulfillment) — The fulfillment to call when the condition is satisfied. At least one of
trigger_fulfillment
andtarget
must be specified. When both are defined,trigger_fulfillment
is executed first.
-
(::Google::Cloud::Dialogflow::CX::V3::Fulfillment) — The fulfillment to call when the condition is satisfied. At least one of
trigger_fulfillment
andtarget
must be specified. When both are defined,trigger_fulfillment
is executed first.