3.2.0 (latest) 3.1.0 3.0.0 2.25.0 2.24.0 2.23.0 2.22.0 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.13.0 1.12.0 1.11.0 1.10.0 1.9.0 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class ResponseMessage : IMessage<ResponseMessage>, IEquatable<ResponseMessage>, IDeepCloneable<ResponseMessage>, IBufferMessage, IMessage

Reference documentation and code samples for the Dialogflow v3 API class 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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ResponseMessage

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[ResponseMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ResponseMessage.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ResponseMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ResponseMessage.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[ResponseMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.ResponseMessage.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Dialogflow.Cx.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.md.txt)

## Assembly

Google.Cloud.Dialogflow.Cx.V3.dll

## Constructors

### ResponseMessage()

    public ResponseMessage()

### ResponseMessage(ResponseMessage)

    public ResponseMessage(ResponseMessage other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `ResponseMessage` |

## Properties

### Channel

    public string Channel { get; set; }

The channel which the response is associated with. Clients can specify the
channel via
\[QueryParameters.channel\]\[google.cloud.dialogflow.cx.v3.QueryParameters.channel\],
and only associated channel response will be returned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ConversationSuccess

    public ResponseMessage.Types.ConversationSuccess ConversationSuccess { get; set; }

Indicates that the conversation succeeded.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageTypesConversationSuccess` |   |

### EndInteraction

    public ResponseMessage.Types.EndInteraction EndInteraction { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageTypesEndInteraction` |   |

### KnowledgeInfoCard

    public ResponseMessage.Types.KnowledgeInfoCard KnowledgeInfoCard { get; set; }

Represents info card for knowledge answers, to be better rendered in
Dialogflow Messenger.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageTypesKnowledgeInfoCard` |   |

### LiveAgentHandoff

    public ResponseMessage.Types.LiveAgentHandoff LiveAgentHandoff { get; set; }

Hands off conversation to a human agent.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageTypesLiveAgentHandoff` |   |

### MessageCase

    public ResponseMessage.MessageOneofCase MessageCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageMessageOneofCase` |   |

### MixedAudio

    public ResponseMessage.Types.MixedAudio MixedAudio { get; set; }

Output only. An audio response message composed of both the synthesized
Dialogflow agent responses and responses defined via
\[play_audio\]\[google.cloud.dialogflow.cx.v3.ResponseMessage.play_audio\].
This message is generated by Dialogflow only and not supposed to be
defined by the user.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageTypesMixedAudio` |   |

### OutputAudioText

    public ResponseMessage.Types.OutputAudioText OutputAudioText { get; set; }

A text or ssml response that is preferentially used for TTS output audio
synthesis, as described in the comment on the ResponseMessage message.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageTypesOutputAudioText` |   |

### Payload

    public Struct Payload { get; set; }

Returns a response containing a custom, platform-specific payload.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `Struct` |   |

### PlayAudio

    public ResponseMessage.Types.PlayAudio PlayAudio { get; set; }

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.v3.ResponseMessage.mixed_audio\].
However, Dialogflow itself does not try to read or process the URI in any
way.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageTypesPlayAudio` |   |

### ResponseType

    public ResponseMessage.Types.ResponseType ResponseType { get; set; }

Response type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageTypesResponseType` |   |

### TelephonyTransferCall

    public ResponseMessage.Types.TelephonyTransferCall TelephonyTransferCall { get; set; }

A signal that the client should transfer the phone call connected to
this agent to a third-party endpoint.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageTypesTelephonyTransferCall` |   |

### Text

    public ResponseMessage.Types.Text Text { get; set; }

Returns a text response.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ResponseMessageTypesText` |   |

### ToolCall

    public ToolCall ToolCall { get; set; }

Returns the definition of a tool call that should be executed by the
client.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `ToolCall` |   |