Conversational setting for an agent or location.
Each locale has its own conversational settings. Locale is represented by a well-formed IETF BCP 47 language tag.
JSON representation |
---|
{ "welcomeMessage": { object ( |
Fields | |
---|---|
welcomeMessage |
Required. Details about the welcome message for an agent. |
offlineMessage |
Optional. Details about the offline message for an agent. |
privacyPolicy |
Required. Details about the agent's privacy policy. |
conversationStarters[] |
Optional. Details about the agent's conversation starters. Maximum 5. |
WelcomeMessage
The greeting shown to users when they enter a conversation with the agent for the first time.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field content . The content of the welcome message. content can be only one of the following: |
|
text |
Text message. Maximum length 1000 characters. |
OfflineMessage
The greeting shown to users when they enter a conversation with the agent outside the chat hours.
JSON representation |
---|
{ "text": string } |
Fields | |
---|---|
text |
The text of the offline message. Maximum length 1000 characters. |
PrivacyPolicy
Privacy policy details for an agent.
JSON representation |
---|
{ "url": string } |
Fields | |
---|---|
url |
Required. The URL for the privacy policy. |
ConversationStarters
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 |