ConversationalSetting

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 (WelcomeMessage)
  },
  "offlineMessage": {
    object (OfflineMessage)
  },
  "privacyPolicy": {
    object (PrivacyPolicy)
  },
  "conversationStarters": [
    {
      object (ConversationStarters)
    }
  ]
}
Fields
welcomeMessage

object (WelcomeMessage)

Required. Details about the welcome message for an agent.

offlineMessage

object (OfflineMessage)

Optional. Details about the offline message for an agent.

privacyPolicy

object (PrivacyPolicy)

Required. Details about the agent's privacy policy.

conversationStarters[]

object (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
{
  "text": string
}
Fields
text

string

Required. The text of the welcome 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

string

The text of the offline message. Maximum length 1000 characters.

PrivacyPolicy

Privacy policy details for an agent.

JSON representation
{
  "url": string
}
Fields
url

string

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 (Suggestion)
  }
}
Fields
suggestion

object (Suggestion)

Optional. Suggestion at the beginning of a conversation.

Suggestion

A suggested reply.

JSON representation
{

  // Union field option can be only one of the following:
  "reply": {
    object (SuggestedReply)
  },
  "action": {
    object (SuggestedAction)
  }
  // End of list of possible types for union field option.
}
Fields
Union field option. A suggested reply. option can be only one of the following:
reply

object (SuggestedReply)

Users can tap a suggested reply to send the text back to the agent as a reply.

action

object (SuggestedAction)

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

string

Required. Text that is shown in the suggested reply and sent back to the agent when the user taps it. Maximum 35 characters.

postbackData

string

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,
  "openUrlAction": {
    object (OpenUrlAction)
  }
}
Fields
text

string

Text that is shown in the suggested action. Maximum 35 characters.

postbackData

string

The string that the agent receives when a user taps the suggested action.

openUrlAction

object (OpenUrlAction)

Opens the specified URL.

OpenUrlAction

Opens the specified URL.

JSON representation
{
  "url": string
}
Fields
url

string

URL