Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessage
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Response messages from an automated agent.
Instance Attribute Summary collapse
-
#end_interaction ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction
Indicates that interaction with the Dialogflow agent has ended.
-
#live_agent_handoff ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff
Indicates that the conversation should be handed off to a human agent.
-
#payload ⇒ Hash<String,Object>
Returns a response containing a custom, platform-specific payload.
-
#text ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessageText
The text response message.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ResponseMessage
constructor
A new instance of GoogleCloudDialogflowV2beta1ResponseMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1ResponseMessage
Returns a new instance of GoogleCloudDialogflowV2beta1ResponseMessage.
13226 13227 13228 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13226 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_interaction ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction
Indicates that interaction with the Dialogflow agent has ended.
Corresponds to the JSON property endInteraction
13203 13204 13205 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13203 def end_interaction @end_interaction end |
#live_agent_handoff ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff
Indicates that the conversation should be handed off to a human agent.
Dialogflow only uses this to determine which conversations were handed off to
a human agent for measurement purposes. What else to do with this signal is up
to you and your handoff procedures. You may set this, for example: * In the
entry fulfillment of a CX Page if entering the page indicates something went
extremely wrong in the conversation. * In a webhook response when you
determine that the customer issue can only be handled by a human.
Corresponds to the JSON property liveAgentHandoff
13214 13215 13216 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13214 def live_agent_handoff @live_agent_handoff end |
#payload ⇒ Hash<String,Object>
Returns a response containing a custom, platform-specific payload.
Corresponds to the JSON property payload
13219 13220 13221 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13219 def payload @payload end |
#text ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessageText
The text response message.
Corresponds to the JSON property text
13224 13225 13226 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13224 def text @text end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13231 13232 13233 13234 13235 13236 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 13231 def update!(**args) @end_interaction = args[:end_interaction] if args.key?(:end_interaction) @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff) @payload = args[:payload] if args.key?(:payload) @text = args[:text] if args.key?(:text) end |