new_releases 更新:查看
版本資訊瞭解新功能和產品更新。
REST Resource: phones.agentEvents
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:AgentEvent
JSON 表示法 |
{
"name": string,
"eventType": enum (AgentEvent.EventType ),
"messageId": string,
"sendTime": string
} |
欄位 |
name |
string
這個欄位是由 RBM 平台所設定。建立代理程式事件時,請勿加入這項資訊。這個欄位會解析「phones/{E.164}/agentEvents/{eventId}」,其中 {E.164} 是 E.164 格式的使用者電話號碼,{eventId} 則是專員事件的專員指派 ID。
|
eventType |
enum (AgentEvent.EventType )
代理程式事件類型。
|
messageId |
string
與代理程式事件相關的使用者訊息 ID。這個欄位僅適用於 READ 類型的代理程式事件。
|
sendTime |
string (Timestamp format)
這個欄位是由 RBM 平台所設定。建立服務專員訊息時,請勿加入這類資訊。這個欄位會解析事件傳送給使用者的時間。 使用 RFC 3339,產生的輸出內容一律會經過 Z 標準化,並使用 0、3、6 或 9 個小數位數。系統也接受「Z」以外的偏移量。例如:"2014-10-02T15:01:23Z" 、"2014-10-02T15:01:23.045123456Z" 或 "2014-10-02T15:01:23+05:30" 。
|
AgentEvent.EventType
列舉 |
TYPE_UNSPECIFIED |
不指定。 |
IS_TYPING |
服務專員正在輸入訊息。 |
READ |
客服專員已讀取使用者傳送的訊息。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-22 (世界標準時間)。
[null,null,["上次更新時間:2025-08-22 (世界標準時間)。"],[[["\u003cp\u003e\u003ccode\u003eAgentEvent\u003c/code\u003e represents an event sent from an agent to a user, containing details about the event's type and status.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eeventType\u003c/code\u003e field defines the type of agent event, which can include \u003ccode\u003eIS_TYPING\u003c/code\u003e or \u003ccode\u003eREAD\u003c/code\u003e, while \u003ccode\u003eTYPE_UNSPECIFIED\u003c/code\u003e means it was not specified.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003emessageId\u003c/code\u003e field indicates which user message the agent event corresponds to, and is specifically used for \u003ccode\u003eREAD\u003c/code\u003e type events.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003esendTime\u003c/code\u003e field, formatted as a Timestamp, signifies when the event was dispatched to the user, accepting RFC 3339 formats.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ecreate\u003c/code\u003e method within \u003ccode\u003ephones.agentEvents\u003c/code\u003e allows for the sending of an event from the agent to the user.\u003c/p\u003e\n"]]],[],null,["# REST Resource: phones.agentEvents\n\nResource: AgentEvent\n--------------------\n\nAn event from the agent to the user.\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"eventType\": enum (/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentEvents#AgentEvent.EventType), \"messageId\": string, \"sendTime\": string } ``` |\n\n| Fields ||\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` This field is set by the RBM platform. Do not include it when creating an agent event. The field resolves \"phones/{E.164}/agentEvents/{eventId}\", where {E.164} is the user's phone number in E.164 format and {eventId} is the agent-assigned ID of the agent event. |\n| `eventType` | `enum (`[AgentEvent.EventType](/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentEvents#AgentEvent.EventType)`)` The type of the agent event. |\n| `messageId` | `string` The ID of the user message that the agent event pertains to. This field is only applicable for agent events of type READ. |\n| `sendTime` | `string (`[Timestamp](https://protobuf.dev/reference/protobuf/google.protobuf/#timestamp)` format)` This field is set by the RBM platform. Do not include it when creating an agent message. The field resolves the time when the event is sent to the user. Uses RFC 3339, where generated output will always be Z-normalized and use 0, 3, 6 or 9 fractional digits. Offsets other than \"Z\" are also accepted. Examples: `\"2014-10-02T15:01:23Z\"`, `\"2014-10-02T15:01:23.045123456Z\"` or `\"2014-10-02T15:01:23+05:30\"`. |\n\nAgentEvent.EventType\n--------------------\n\nType of an agent event.\n\n| Enums ||\n|--------------------|--------------------------------------------------------|\n| `TYPE_UNSPECIFIED` | Not specified. |\n| `IS_TYPING` | The agent is typing. |\n| `READ` | The message sent by a user has been read by the agent. |\n\n| Methods ------- ||\n|-----------------------------------------------------------------------------------------------------------|------------------------------------------|\n| ### [create](/business-communications/rcs-business-messaging/reference/rest/v1/phones.agentEvents/create) | Sends an event from the agent to a user. |"]]