Google Business Messages 功能將於 2024 年 7 月 31 日終止服務。請按
這裡瞭解詳情。
Representative
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"displayName": string,
"avatarImage": string,
// Union field representative can be only one of the following:
"representativeType": enum (RepresentativeType )
// End of list of possible types for union field representative .
} |
欄位 |
displayName |
string
選用設定。代表姓名。
|
avatarImage |
string
選用設定。代表人員的顯示圖片,格式為公開的網址。顯示為圓形。 顯示圖片不支援個人資訊,例如相片或插圖中的代表人。使用無法識別個人的圖片,例如圖示、標誌或虛構插圖。在訊息中使用頭像圖片後,即無法修改或刪除。 圖片必須是 1024x1024 像素,且檔案大小上限為 50 KB。
|
聯集欄位 representative 。按類型識別的代表。representative 只能是下列其中一項: |
representativeType |
enum (RepresentativeType )
必要欄位。代表的類型。
|
RepresentativeType
列舉 |
REPRESENTATIVE_TYPE_UNSPECIFIED |
未指定代表類型。 |
BOT |
機器人代表。 |
HUMAN |
真人代表。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[[["This document details the JSON structure for providing information about the representative (human or chatbot) sending a message."],["The structure includes fields for display name, avatar image, and representative type (bot or human)."],["The avatar image should be a publicly accessible URL, ideally an icon or logo, with specific size and format restrictions."],["The `representativeType` field is required and indicates whether the sender is a bot or a human."]]],[]]