Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb
Overview
A Dialogflow CX conversation (session) can be described and visualized as a state machine. The states of a CX session are represented by pages. For each flow, you define many pages, where your combined pages can handle a complete conversation on the topics the flow is designed for. At any given moment, exactly one page is the current page, the current page is considered active, and the flow associated with that page is considered active. Every flow has a special start page. When a flow initially becomes active, the start page page becomes the current page. For each conversational turn, the current page will either stay the same or transition to another page. You configure each page to collect information from the end-user that is relevant for the conversational state represented by the page. For more information, see the Page guide.
Instance Attribute Summary collapse
-
#advanced_settings ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettings
Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
-
#description ⇒ String
The description of the page.
-
#display_name ⇒ String
Required.
-
#entry_fulfillment ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment
A fulfillment can do one or more of the following actions at the same time: * Generate rich message responses.
-
#event_handlers ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventHandler>
Handlers associated with the page to handle events such as webhook errors, no match or no input.
-
#form ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Form
A form is a data model that groups related parameters that can be collected from the user.
-
#knowledge_connector_settings ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3KnowledgeConnectorSettings
The Knowledge Connector settings for this page or flow.
-
#name ⇒ String
The unique identifier of the page.
-
#transition_route_groups ⇒ Array<String>
Ordered list of
TransitionRouteGroups
added to the page. -
#transition_routes ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute>
A list of transitions for the transition rules of this page.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3Page
constructor
A new instance of GoogleCloudDialogflowCxV3Page.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3Page
Returns a new instance of GoogleCloudDialogflowCxV3Page.
5621 5622 5623 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5621 def initialize(**args) update!(**args) end |
Instance Attribute Details
#advanced_settings ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettings
Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
Settings exposed at lower level overrides the settings exposed at higher level.
Overriding occurs at the sub-setting level. For example, the
playback_interruption_settings at fulfillment level only overrides the
playback_interruption_settings at the agent level, leaving other settings at
the agent level unchanged. DTMF settings does not override each other. DTMF
settings set at different levels define DTMF detections running in parallel.
Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
Corresponds to the JSON property advancedSettings
5540 5541 5542 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5540 def advanced_settings @advanced_settings end |
#description ⇒ String
The description of the page. The maximum length is 500 characters.
Corresponds to the JSON property description
5545 5546 5547 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5545 def description @description end |
#display_name ⇒ String
Required. The human-readable name of the page, unique within the flow.
Corresponds to the JSON property displayName
5550 5551 5552 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5550 def display_name @display_name end |
#entry_fulfillment ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Fulfillment
A fulfillment can do one or more of the following actions at the same time: *
Generate rich message responses. * Set parameter values. * Call the webhook.
Fulfillments can be called at various stages in the Page or Form lifecycle.
For example, when a DetectIntentRequest drives a session to enter a new page,
the page's entry fulfillment can add a static response to the QueryResult in
the returning DetectIntentResponse, call the webhook (for example, to load
user data from a database), or both.
Corresponds to the JSON property entryFulfillment
5561 5562 5563 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5561 def entry_fulfillment @entry_fulfillment end |
#event_handlers ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EventHandler>
Handlers associated with the page to handle events such as webhook errors, no
match or no input.
Corresponds to the JSON property eventHandlers
5567 5568 5569 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5567 def event_handlers @event_handlers end |
#form ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Form
A form is a data model that groups related parameters that can be collected
from the user. The process in which the agent prompts the user and collects
parameter values from the user is called form filling. A form can be added to
a page. When form filling is done, the filled parameters will be written to
the session.
Corresponds to the JSON property form
5576 5577 5578 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5576 def form @form end |
#knowledge_connector_settings ⇒ Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3KnowledgeConnectorSettings
The Knowledge Connector settings for this page or flow. This includes
information such as the attached Knowledge Bases, and the way to execute
fulfillment.
Corresponds to the JSON property knowledgeConnectorSettings
5583 5584 5585 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5583 def knowledge_connector_settings @knowledge_connector_settings end |
#name ⇒ String
The unique identifier of the page. Required for the Pages.UpdatePage method.
Pages.CreatePage populates the name automatically. Format: projects//
locations//agents//flows//pages/
.
Corresponds to the JSON property name
5590 5591 5592 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5590 def name @name end |
#transition_route_groups ⇒ Array<String>
Ordered list of TransitionRouteGroups
added to the page. Transition route
groups must be unique within a page. If the page links both flow-level
transition route groups and agent-level transition route groups, the flow-
level ones will have higher priority and will be put before the agent-level
ones. * If multiple transition routes within a page scope refer to the same
intent, then the precedence order is: page's transition route -> page's
transition route group -> flow's transition routes. * If multiple transition
route groups within a page contain the same intent, then the first group in
the ordered list takes precedence. Format:projects//locations//agents//flows//
transitionRouteGroups/
or projects//locations//agents//transitionRouteGroups/
for agent-level groups.
Corresponds to the JSON property transitionRouteGroups
5605 5606 5607 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5605 def transition_route_groups @transition_route_groups end |
#transition_routes ⇒ Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TransitionRoute>
A list of transitions for the transition rules of this page. They route the
conversation to another page in the same flow, or another flow. When we are in
a certain page, the TransitionRoutes are evalauted in the following order: *
TransitionRoutes defined in the page with intent specified. * TransitionRoutes
defined in the transition route groups with intent specified. *
TransitionRoutes defined in flow with intent specified. * TransitionRoutes
defined in the transition route groups with intent specified. *
TransitionRoutes defined in the page with only condition specified. *
TransitionRoutes defined in the transition route groups with only condition
specified.
Corresponds to the JSON property transitionRoutes
5619 5620 5621 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5619 def transition_routes @transition_routes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 5626 def update!(**args) @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @entry_fulfillment = args[:entry_fulfillment] if args.key?(:entry_fulfillment) @event_handlers = args[:event_handlers] if args.key?(:event_handlers) @form = args[:form] if args.key?(:form) @knowledge_connector_settings = args[:knowledge_connector_settings] if args.key?(:knowledge_connector_settings) @name = args[:name] if args.key?(:name) @transition_route_groups = args[:transition_route_groups] if args.key?(:transition_route_groups) @transition_routes = args[:transition_routes] if args.key?(:transition_routes) end |