我们将于 2024 年 7 月 31 日逐步淘汰 Google Business Messages。点击
此处了解详情。
消息
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
消息是指从一方发送给另一方的一系列内容(文本、媒体内容等)。借助 Business Messages,您可以接收用户发送的消息并发送回复消息。
消息可能包含不同类型的内容。例如,用户可能会向代理发送以下类型的消息:
同样,代理可能向用户发送以下类型的信息:
- 纯文本
- 富文本,支持有限的 Markdown 格式
- 建议的回复
- 建议操作
- 有关通过 OAuth 进行身份验证的建议
- 关于请求人工客服的建议
- 包含多条信息的复合信息卡,通常至少包含媒体内容和标题
- 将多张复合信息卡串联在一起的复合信息卡轮播界面
消息上下文
每条消息都包含有关消息来源的上下文信息。您可以使用上下文来做出路由决策,例如将消息转送到哪个位置。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eBusiness Messages allows two-way communication, enabling businesses to receive and respond to user messages containing various content types like text, images, and suggested actions.\u003c/p\u003e\n"],["\u003cp\u003eAgents can send diverse message formats including text, rich cards, carousels, and suggestions for actions like authentication or live agent requests.\u003c/p\u003e\n"],["\u003cp\u003eEach message includes contextual details, aiding in routing decisions based on factors like message origin.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can learn more by exploring related guides on receiving and sending messages within Business Messages.\u003c/p\u003e\n"]]],[],null,["# Message\n\nA message is a discrete set of content (text, media, etc.) sent from one party\nto another. With Business Messages, you can receive messages from users and send\nresponse messages.\n\nMessages may contain different types of content. For example, the user may send\nthe following types of messages to the agent:\n\n- Plain text\n- Images\n- Suggested action replies\n- Authentication requests\n\nLikewise, the agent may send the following types of information to the user:\n\n- Plain text\n- Rich text with limited Markdown formatting support\n- Suggested replies\n- Suggested actions\n- Suggestions to authenticate via OAuth\n- Suggestions to request a live agent\n- Rich cards containing multiple pieces of information, usually at least media and a title\n- Rich card carousels that string together multiple rich cards\n\nMessage context\n---------------\n\nEach message contains context information about where the message originated.\nYou can use the context to make routing decisions, such as which location to\nroute the message to.\n\nRelated guides\n--------------\n\n- [Receive messages](/business-communications/business-messages/guides/how-to/message/receive)\n- [Send messages](/business-communications/business-messages/guides/how-to/message/send)"]]