ConversationStarters

建議回覆會在使用者首次與服務專員開啟對話時顯示。

JSON 表示法
{
  "suggestion": {
    object (Suggestion)
  }
}
欄位
suggestion

object (Suggestion)

選用設定。在對話開始時提供建議。

建議

建議的回覆。

JSON 表示法
{

  // 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.
}
欄位
聯集欄位 option。建議的回覆。option 只能是下列其中一項:
reply

object (SuggestedReply)

使用者可以輕觸建議的回覆,將文字以回覆方式傳回給服務專員。

action

object (SuggestedAction)

此為建議動作,會在裝置上啟動原生動作。

SuggestedReply

輕觸後,將文字回覆傳送給服務專員。

JSON 表示法
{
  "text": string,
  "postbackData": string
}
欄位
text

string

必要欄位。建議回覆中顯示的文字,在使用者輕觸該文字時就會傳回給服務專員。長度上限為 35 個半形字元。

postbackData

string

選用設定。使用者輕觸建議回覆時,服務專員會收到的字串。

SuggestedAction

使用者輕觸後,會在裝置上啟動相應的原生動作。

JSON 表示法
{
  "text": string,
  "postbackData": string,

  // Union field action can be only one of the following:
  "openUrlAction": {
    object (OpenUrlAction)
  }
  // End of list of possible types for union field action.
}
欄位
text

string

建議動作中顯示的文字。長度上限為 35 個半形字元。

postbackData

string

使用者輕觸建議動作時,代理程式會收到的字串。

聯集欄位 action。使用者輕觸建議操作時,在裝置上啟動的原生動作。action 只能是下列其中一項:
openUrlAction

object (OpenUrlAction)

開啟指定網址。

OpenUrlAction

開啟指定網址。

JSON 表示法
{
  "url": string
}
欄位
url

string

網址