我们将于 2024 年 7 月 31 日逐步淘汰 Google Business Messages。点击
此处了解详情。
事件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
事件是传达对话状态信息的场合。例如,当客服代表加入对话时,这便是事件。
事件可以由用户发起(例如,用户请求与实时客服人员交谈),也可以由客服人员发起(例如,实时客服人员代表加入对话)。此外,某些类型的事件可以由任一方发起,例如,输入事件,用于指示对话中的某人何时在输入。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eEvents within a conversation convey information about its current state, such as a representative joining.\u003c/p\u003e\n"],["\u003cp\u003eEvents can be triggered by users (e.g., requesting a live agent), agents (e.g., joining the conversation), or both (e.g., typing indicators).\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can learn more about implementing events by referring to the 'Send and receive events' guide.\u003c/p\u003e\n"]]],[],null,["# Event\n\nAn event is an occasion that conveys information about the state of the\nconversation. For example, when a representative joins the conversation, this\nis an event.\n\nEvents may be either user-initiated, such as when a user requests to speak with\na live agent, or agent-initiated, such as when the live agent representative\njoins the conversation. Additionally, some types of events may be initiated by\neither party, such as the typing event that indicates when someone in the\nconversation is typing.\n\nRelated guides\n--------------\n\n- [Send and receive\n events](/business-communications/business-messages/guides/how-to/message/events)"]]