Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tin nhắn mà người dùng gửi cho nhân viên hỗ trợ.
UserMessage xuất hiện trong trường "dữ liệu" của đối tượng "thông báo" mà tác nhân nhận được từ gói thuê bao Google Pub/Sub. Trường "dữ liệu" là một chuỗi được mã hoá base64 mà tác nhân phải giải mã để khớp với cấu trúc UserMessage.
Biểu diễn dưới dạng JSON
{"senderPhoneNumber": string,"messageId": string,"sendTime": string,"agentId": string,// Union field content can be only one of the following:"text": string,"userFile": {object (UserFile)},"location": {object (LatLng)},"suggestionResponse": {object (SuggestionResponse)}// End of list of possible types for union field content.}
Trường
senderPhoneNumber
string
Số điện thoại (ở định dạng E.164) của người dùng đã gửi tin nhắn.
messageId
string
Mã nhận dạng tin nhắn duy nhất, do ứng dụng RCS của người dùng gửi.
Sử dụng RFC 3339, trong đó đầu ra được tạo ra sẽ luôn được chuẩn hóa Z và sử dụng 0, 3, 6 hoặc 9 chữ số phân số. Các mức chênh lệch khác với "Z" cũng được chấp nhận. Ví dụ: "2014-10-02T15:01:23Z", "2014-10-02T15:01:23.045123456Z" hoặc "2014-10-02T15:01:23+05:30".
agentId
string
Giá trị nhận dạng riêng biệt của nhân viên hỗ trợ. Do RCS Business Messaging thiết lập.
Trường hợp hợp nhất content. Nội dung content chỉ có thể là một trong những nội dung sau:
text
string
Văn bản, cụ thể là chuỗi được tạo thông qua hoạt động nhập tự nhiên của người dùng chứ không phải là câu trả lời đề xuất.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-04-27 UTC."],[[["UserMessage data is received by the agent in a base64-encoded string within the \"data\" field of the \"message\" object, which must be decoded."],["The UserMessage includes fields such as `senderPhoneNumber`, `messageId`, `sendTime`, and `agentId`, providing details about the sender and message metadata."],["The `content` field of a UserMessage can represent various types of user input, including `text`, `userFile`, `location`, or `suggestionResponse`."],["`sendTime` follows RFC 3339 format, which supports fractional digits and time offsets, ensuring precise time information."],["The `senderPhoneNumber` is the user's number in E.164 format, and `messageId` is a unique identifier assigned to the message by the user's RCS client."]]],[]]