class Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessage

Response messages from an automated agent.

Attributes

end_interaction[RW]

Indicates that interaction with the Dialogflow agent has ended. Corresponds to the JSON property `endInteraction` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction]

live_agent_handoff[RW]

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` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff]

payload[RW]

Returns a response containing a custom, platform-specific payload. Corresponds to the JSON property `payload` @return [Hash<String,Object>]

text[RW]

The text response message. Corresponds to the JSON property `text` @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessageText]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 13291
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/dialogflow_v2beta1/classes.rb, line 13296
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