Suggested replies shown to users when they enter a conversation with the agent for the first time.
JSON representation |
---|
{
"suggestion": {
object ( |
Fields | |
---|---|
suggestion |
Optional. Suggestion at the beginning of a conversation. |
Suggestion
A suggested reply.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field option . A suggested reply. option can be only one of the following: |
|
reply |
Users can tap a suggested reply to send the text back to the agent as a reply. |
action |
A suggested action that initiates a native action on the device. |
SuggestedReply
When tapped, sends the text reply back to the agent.
JSON representation |
---|
{ "text": string, "postbackData": string } |
Fields | |
---|---|
text |
Required. Text that is shown in the suggested reply and sent back to the agent when the user taps it. Maximum 35 characters. |
postbackData |
Optional. The string the agent receives when the user taps the suggested reply. |
SuggestedAction
When tapped, initiates the corresponding native action on the device.
JSON representation |
---|
{ "text": string, "postbackData": string, // Union field |
Fields | |
---|---|
text |
Text that is shown in the suggested action. Maximum 35 characters. |
postbackData |
The string that the agent receives when a user taps the suggested action. |
Union field action . The native action initiated on the device when the user taps the suggested action. action can be only one of the following: |
|
openUrlAction |
Opens the specified URL. |
OpenUrlAction
Opens the specified URL.
JSON representation |
---|
{ "url": string } |
Fields | |
---|---|
url |
URL |