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. |
live |
Hands off conversation to a live agent. |
end |
A signal that indicates the interaction with the Dialogflow agent has ended. |
mixed |
An audio response message composed of both the synthesized Dialogflow agent responses and the audios hosted in places known to the client. |
telephony |
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 response variants. If multiple variants are defined, only one text response variant is returned at runtime. |
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 | |
---|---|
allow |
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: |
|
phone |
Transfer the call to a phone number in E.164 format. |
sip |
Transfer the call to a SIP endpoint. |