EventType Stay organized with collections Save and categorize content based on your preferences.
Page Summary
Google Chat app interaction events are triggered by various user actions, such as sending messages, adding/removing the app, interacting with cards, and updating widgets.
These events provide context about the interaction, like the user, space, and specific action taken, allowing your app to respond appropriately.
ADDED_TO_SPACEandREMOVED_FROM_SPACEevents help manage the app's presence in spaces, whileCARD_CLICKEDenables handling user interactions with card elements.MESSAGEevents cover various scenarios, including direct messages, @mentions, slash commands, and link previews, enabling diverse app functionalities.APP_HOMEandSUBMIT_FORMevents allow for interactions specific to apps that utilize the app home feature for a more integrated experience within Google Chat.
Types ofGoogle Chat app interaction events.
To configure your Chat app to receive interaction events, seeReceive and respond to user interactions.
Note: This EventType is only used forChat interaction events. If your Chat app is built as aGoogle Workspace add-on, seeChat event objects in the add-ons documentation.
| Enums | |
|---|---|
UNSPECIFIED | Default value for the enum. DO NOT USE. |
MESSAGE | A user sends the Chat app a message, or invokes the Chat app in a space. Examples of message events include:
|
ADDED_TO_SPACE | A user adds the Chat app to a space, or a Google Workspace administrator installs the Chat app in direct message spaces for users in their organization. Chat apps typically respond to this interaction event by posting a welcome message in the space. When administrators install Chat apps, the |
REMOVED_FROM_SPACE | A user removes the Chat app from a space, or a Google Workspace administrator uninstalls the Chat app for a user in their organization. Chat apps can't respond with messages to this event, because they have already been removed. When administrators uninstall Chat apps, the |
CARD_CLICKED | A user clicks an interactive element of a card or dialog from a Chat app, such as a button. To receive an interaction event, the button must trigger another interaction with the Chat app. For example, a Chat app doesn't receive a
If a user clicks a button to open, submit, or cancel a dialog, the |
WIDGET_UPDATED | A user updates a widget in a card message or dialog. This event is triggered when a user interacts with a widget that has an associated action. |
APP_COMMAND | A user uses a Chat appcommand, including slash commands and quick commands. |
APP_HOME | A user opens a direct message from a Chat app that uses app home. Only the |
SUBMIT_FORM | A user submits information in an app home card. Only the |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-11 UTC.