GoogleCloudDialogflowCxV3ResponseMessage class
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.
Constructors
-
GoogleCloudDialogflowCxV3ResponseMessage({Input<
String> ? channel, Input<GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess> ? conversationSuccess, Input<Map< ? knowledgeInfoCard, Input<String, dynamic> >GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff> ? liveAgentHandoff, Input<GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText> ? outputAudioText, Input<Map< ? payload, Input<String, String> >GoogleCloudDialogflowCxV3ResponseMessagePlayAudio> ? playAudio, Input<GoogleCloudDialogflowCxV3ResponseMessageResponseType> ? responseType, Input<GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall> ? telephonyTransferCall, Input<GoogleCloudDialogflowCxV3ResponseMessageText> ? text}) -
Creates a new GoogleCloudDialogflowCxV3ResponseMessage.
channelThe channel which the response is associated with. Clients can specify the channel via QueryParameters.channel, and only associated channel response will be returned.conversationSuccessIndicates that the conversation succeeded.knowledgeInfoCardRepresents info card for knowledge answers, to be better rendered in Dialogflow Messenger.liveAgentHandoffHands off conversation to a human agent.outputAudioTextA text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.payloadReturns a response containing a custom, platform-specific payload.playAudioSignal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.responseTypeResponse type.telephonyTransferCallA signal that the client should transfer the phone call connected to this agent to a third-party endpoint.textReturns a text response.const -
GoogleCloudDialogflowCxV3ResponseMessage.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
channel
→ Input<
String> ? -
The channel which the response is associated with. Clients can specify the channel via QueryParameters.channel, and only associated channel response will be returned.
final
-
conversationSuccess
→ Input<
GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess> ? -
Indicates that the conversation succeeded.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
knowledgeInfoCard
→ Input<
Map< ?String, dynamic> > -
Represents info card for knowledge answers, to be better rendered in Dialogflow Messenger.
final
-
liveAgentHandoff
→ Input<
GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff> ? -
Hands off conversation to a human agent.
final
-
outputAudioText
→ Input<
GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText> ? -
A text or ssml response that is preferentially used for TTS output audio synthesis, as described in the comment on the ResponseMessage message.
final
-
payload
→ Input<
Map< ?String, String> > -
Returns a response containing a custom, platform-specific payload.
final
-
playAudio
→ Input<
GoogleCloudDialogflowCxV3ResponseMessagePlayAudio> ? -
Signal that the client should play an audio clip hosted at a client-specific URI. Dialogflow uses this to construct mixed_audio. However, Dialogflow itself does not try to read or process the URI in any way.
final
-
responseType
→ Input<
GoogleCloudDialogflowCxV3ResponseMessageResponseType> ? -
Response type.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
telephonyTransferCall
→ Input<
GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall> ? -
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint.
final
-
text
→ Input<
GoogleCloudDialogflowCxV3ResponseMessageText> ? -
Returns a text response.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited