- JSON representation
- OutputAudio
- AutomatedAgentReply
- AutomatedAgentReplyType
- SuggestionResult
- GenerateCompanionSuggestionsResponse
- DtmfParameters
The response message for Participants.AnalyzeContent.
| JSON representation |
|---|
{ "replyText": string, "replyAudio": { object ( |
| Fields | |
|---|---|
replyText |
The output text content. This field is set if the automated agent responded with text to show to the user. |
replyAudio |
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 |
Only set if a Dialogflow automated agent has responded. Note that in [AutomatedAgentReply.DetectIntentResponse][], [Sessions.DetectIntentResponse.output_audio][] and [Sessions.DetectIntentResponse.output_audio_config][] are always empty, use |
message |
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 |
Instructs the speech synthesizer how to generate the speech audio. |
audio |
The natural language speech audio. A base64-encoded string. |
AutomatedAgentReply
Represents a response from an automated agent.
| JSON representation |
|---|
{ "detectIntentResponse": { object ( |
| Fields | |
|---|---|
detectIntentResponse |
Response of the Dialogflow |
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: |
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 |
|---|
{ // The following is a list of mutually exclusive fields. At most one of the // fields will be set in a response: "error": { object ( |
| Fields | |
|---|---|
| Different type of suggestion response. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
error |
Error status if the request failed. |
suggestArticlesResponse |
SuggestArticlesResponse if request is for ARTICLE_SUGGESTION. |
suggestKnowledgeAssistResponse |
SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST. |
suggestFaqAnswersResponse |
SuggestFaqAnswersResponse if request is for FAQ_ANSWER. |
suggestSmartRepliesResponse |
SuggestSmartRepliesResponse if request is for SMART_REPLY. |
generateSuggestionsResponse |
Suggestions generated using generators triggered by customer or agent messages. |
generateCompanionSuggestionsResponse |
Suggestions generated by companion agent. |
| End of mutually exclusive fields. | |
GenerateCompanionSuggestionsResponse
Represents the response message for GenerateCompanionSuggestions.
| JSON representation |
|---|
{
"companionSuggestion": {
object ( |
| Fields | |
|---|---|
companionSuggestion |
Contains the core suggestion generated by the Companion Agent. |
answerRecord |
Answer record that uniquely identifies the suggestion. Format: |
latestMessage |
The name of the latest conversation message used to compile suggestion for. Format: |
suggestionIndex |
Output only. The 1-based sequential index of the suggestion generated in this session. |
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. |