NAME
Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage - Compiled Protocol Buffers messages for google/cloud/dialogflow/cx/v3beta1/response_message.proto
SYNOPSIS
use Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage;
my $msg = Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage->new({
text => $text,
payload => $payload,
conversation_success => $conversation_success,
output_audio_text => $output_audio_text,
});
# Read or update a field
my $val = $msg->text();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/dialogflow/cx/v3beta1/response_message.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage
Represents a response message that can be returned by a conversational agent.
Response messages are also used for output audio synthesis. The approach is as follows:
* If at least one OutputAudioText response is present, then all OutputAudioText responses are linearly concatenated, and the result is used for output audio synthesis. * If the OutputAudioText responses are a mixture of text and SSML, then the concatenated result is treated as SSML; otherwise, the result is treated as either text or SSML as appropriate. The agent designer should ideally use either text or SSML consistently throughout the bot design. * Otherwise, all Text responses are linearly concatenated, and the result is used for output audio synthesis.
This approach allows for more sophisticated user experience scenarios, where the text displayed to the user may differ from what is heard.
Inherits from Protobuf::Message.
Accessors
$msg->text()/$msg->text($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage::Text)Returns a text response.
$msg->payload()/$msg->payload($value)Type:
Message(Google::Protobuf::Struct::Struct)Returns a response containing a custom, platform-specific payload.
$msg->conversation_success()/$msg->conversation_success($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage::ConversationSuccess)Indicates that the conversation succeeded.
$msg->output_audio_text()/$msg->output_audio_text($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage::OutputAudioText)A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
$msg->live_agent_handoff()/$msg->live_agent_handoff($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage::LiveAgentHandoff)Hands off conversation to a human agent.
$msg->end_interaction()/$msg->end_interaction($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage::EndInteraction)Output only. A signal that indicates the interaction with the Dialogflow agent has ended. This message is generated by Dialogflow only when the conversation reaches `END_SESSION` page. It is not supposed to be defined by the user.
It's guaranteed that there is at most one such message in each response.
$msg->play_audio()/$msg->play_audio($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage::PlayAudio)Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct [mixed_audio][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.mixed_audio]. However, Dialogflow itself does not try to read or process the URI in any way.
$msg->mixed_audio()/$msg->mixed_audio($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage::MixedAudio)Output only. An audio response message composed of both the synthesized Dialogflow agent responses and responses defined via [play_audio][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.play_audio]. This message is generated by Dialogflow only and not supposed to be defined by the user.
$msg->telephony_transfer_call()/$msg->telephony_transfer_call($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage::TelephonyTransferCall)A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
$msg->knowledge_info_card()/$msg->knowledge_info_card($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::ResponseMessage::KnowledgeInfoCard)Represents info card for knowledge answers, to be better rendered in Dialogflow Messenger.
$msg->tool_call()/$msg->tool_call($value)Type:
Message(Google::Cloud::Dialogflow::Cx::V3beta1::ToolCall::ToolCall)Returns the definition of a tool call that should be executed by the client.
$msg->channel()/$msg->channel($value)Type:
StringThe channel which the response is associated with. Clients can specify the channel via [QueryParameters.channel][google.cloud.dialogflow.cx.v3beta1.QueryParameters.channel], and only associated channel response will be returned.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Dialogflow::Cx::V3beta1::ResponseMessage::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.