Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1Page

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dialogflow_v3/classes.rb,
generated/google/apis/dialogflow_v3/representations.rb,
generated/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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1Page

Returns a new instance of GoogleCloudDialogflowCxV3beta1Page.



5748
5749
5750
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 5748

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#display_nameString

Required. The human-readable name of the page, unique within the agent. Corresponds to the JSON property displayName

Returns:

  • (String)


5691
5692
5693
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 5691

def display_name
  @display_name
end

#entry_fulfillmentGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1Fulfillment

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



5702
5703
5704
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 5702

def entry_fulfillment
  @entry_fulfillment
end

#event_handlersArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1EventHandler>

Handlers associated with the page to handle events such as webhook errors, no match or no input. Corresponds to the JSON property eventHandlers



5708
5709
5710
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 5708

def event_handlers
  @event_handlers
end

#formGoogle::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1Form

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



5717
5718
5719
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 5717

def form
  @form
end

#nameString

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

Returns:

  • (String)


5724
5725
5726
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 5724

def name
  @name
end

#transition_route_groupsArray<String>

Ordered list of TransitionRouteGroups associated with the page. Transition route groups must be unique within a page. * 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/. Corresponds to the JSON property transitionRouteGroups

Returns:

  • (Array<String>)


5735
5736
5737
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 5735

def transition_route_groups
  @transition_route_groups
end

#transition_routesArray<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1TransitionRoute>

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. * TransitionRoutes defined in flow with intent specified. * TransitionRoutes defined in the page with only condition specified. Corresponds to the JSON property transitionRoutes



5746
5747
5748
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 5746

def transition_routes
  @transition_routes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5753
5754
5755
5756
5757
5758
5759
5760
5761
# File 'generated/google/apis/dialogflow_v3/classes.rb', line 5753

def update!(**args)
  @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)
  @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