- JSON representation
- OutputAudio
- AutomatedAgentReply
- ResponseMessage
- Text
- LiveAgentHandoff
- EndInteraction
- MixedAudio
- Segment
- TelephonyTransferCall
- AutomatedAgentReplyType
- SuggestionResult
- SuggestDialogflowAssistsResponse
- DtmfParameters
The response message for Participants.AnalyzeContent
.
JSON representation |
---|
{ "replyText": string, "replyAudio": { object ( |
Fields | |
---|---|
replyText |
Output only. The output text content. This field is set if the automated agent responded with text to show to the user. |
replyAudio |
Optional. The audio data bytes encoded as specified in the request. This field is set if:
In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content. |
automatedAgentReply |
Optional. Only set if a Dialogflow automated agent has responded. Note that: [AutomatedAgentReply.detect_intent_response.output_audio][] and [AutomatedAgentReply.detect_intent_response.output_audio_config][] are always empty, use |
message |
Output only. Message analyzed by CCAI. |
humanAgentSuggestionResults[] |
The suggestions for most recent human agent. The order is the same as Note that any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult. |
endUserSuggestionResults[] |
The suggestions for end user. The order is the same as Same as humanAgentSuggestionResults, any failure of Agent Assist features will not lead to the overall failure of an AnalyzeContent API call. Instead, the features will fail silently with the error field set in the corresponding SuggestionResult. |
dtmfParameters |
Indicates the parameters of DTMF. |
OutputAudio
Represents the natural language speech audio to be played to the end user.
JSON representation |
---|
{
"config": {
object ( |
Fields | |
---|---|
config |
Required. Instructs the speech synthesizer how to generate the speech audio. |
audio |
Required. The natural language speech audio. A base64-encoded string. |
AutomatedAgentReply
Represents a response from an automated agent.
JSON representation |
---|
{ "responseMessages": [ { object ( |
Fields | |
---|---|
responseMessages[] |
Response messages from the automated agent. |
matchConfidence |
The confidence of the match. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. |
parameters |
The collection of current parameters at the time of this response. |
cxSessionParameters |
The collection of current Dialogflow CX agent session parameters at the time of this response. Deprecated: Use |
automatedAgentReplyType |
AutomatedAgentReply type. |
allowCancellation |
Indicates whether the partial automated agent reply is interruptible when a later reply message arrives. e.g. if the agent specified some music as partial response, it can be cancelled. |
cxCurrentPage |
The unique identifier of the current Dialogflow CX conversation page. Format: |
Union field response . Required. response can be only one of the following: |
|
detectIntentResponse |
Response of the Dialogflow |
Union field match . Info on the query match for the automated agent response. match can be only one of the following: |
|
intent |
Name of the intent if an intent is matched for the query. For a V2 query, the value format is |
event |
Event name if an event is triggered for the query. |
ResponseMessage
Response messages from an automated agent.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field message . Required. The rich response message. message can be only one of the following: |
|
text |
Returns a text response. |
payload |
Returns a response containing a custom, platform-specific payload. |
liveAgentHandoff |
Hands off conversation to a live agent. |
endInteraction |
A signal that indicates the interaction with the Dialogflow agent has ended. |
mixedAudio |
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client. |
telephonyTransferCall |
A signal that the client should transfer the phone call connected to this agent to a third-party endpoint. |
Text
The text response message.
JSON representation |
---|
{ "text": [ string ] } |
Fields | |
---|---|
text[] |
A collection of text responses. |
LiveAgentHandoff
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.
JSON representation |
---|
{ "metadata": { object } } |
Fields | |
---|---|
metadata |
Custom metadata for your handoff procedure. Dialogflow doesn't impose any structure on this. |
EndInteraction
This type has no fields.
Indicates that interaction with the Dialogflow agent has ended.
MixedAudio
Represents an audio message that is composed of both segments synthesized from the Dialogflow agent prompts and ones hosted externally at the specified URIs.
JSON representation |
---|
{
"segments": [
{
object ( |
Fields | |
---|---|
segments[] |
Segments this audio response is composed of. |
Segment
Represents one segment of audio.
JSON representation |
---|
{ "allowPlaybackInterruption": boolean, // Union field |
Fields | |
---|---|
allowPlaybackInterruption |
Whether the playback of this segment can be interrupted by the end user's speech and the client should then start the next Dialogflow request. |
Union field content . Content of the segment. content can be only one of the following: |
|
audio |
Raw audio synthesized from the Dialogflow agent's response using the output config specified in the request. A base64-encoded string. |
uri |
Client-specific URI that points to an audio clip accessible to the client. |
TelephonyTransferCall
Represents the signal that telles the client to transfer the phone call connected to the agent to a third-party endpoint.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field endpoint . Endpoint to transfer the call to. endpoint can be only one of the following: |
|
phoneNumber |
Transfer the call to a phone number in E.164 format. |
sipUri |
Transfer the call to a SIP endpoint. |
AutomatedAgentReplyType
Represents different automated agent reply types.
Enums | |
---|---|
AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED |
Not specified. This should never happen. |
PARTIAL |
Partial reply. e.g. Aggregated responses in a Fulfillment that enables return_partial_response can be returned as partial reply. WARNING: partial reply is not eligible for barge-in. |
FINAL |
Final reply. |
SuggestionResult
One response of different type of suggestion response which is used in the response of Participants.AnalyzeContent
and Participants.AnalyzeContent
, as well as HumanAgentAssistantEvent
.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field suggestion_response . Different type of suggestion response. suggestion_response can be only one of the following: |
|
error |
Error status if the request failed. |
suggestArticlesResponse |
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION. |
suggestFaqAnswersResponse |
SuggestFaqAnswersResponse if request is for FAQ_ANSWER. |
suggestSmartRepliesResponse |
SuggestSmartRepliesResponse if request is for SMART_REPLY. |
suggestDialogflowAssistsResponse |
SuggestDialogflowAssistsResponse if request is for DIALOGFLOW_ASSIST. |
suggestEntityExtractionResponse |
SuggestDialogflowAssistsResponse if request is for ENTITY_EXTRACTION. |
SuggestDialogflowAssistsResponse
The response message for Participants.SuggestDialogflowAssists
.
JSON representation |
---|
{
"dialogflowAssistAnswers": [
{
object ( |
Fields | |
---|---|
dialogflowAssistAnswers[] |
Output only. Multiple reply options provided by Dialogflow assist service. The order is based on the rank of the model prediction. |
latestMessage |
The name of the latest conversation message used to suggest answer. Format: |
contextSize |
Number of messages prior to and including |
DtmfParameters
The message in the response that indicates the parameters of DTMF.
JSON representation |
---|
{ "acceptsDtmfInput": boolean } |
Fields | |
---|---|
acceptsDtmfInput |
Indicates whether DTMF input can be handled in the next request. |