AI-generated Key Takeaways
-
CARD_CLICKEDandMESSAGEevents provide insights into user interactions with dialogs in Google Chat apps. -
These events utilize specific enums like
REQUEST_DIALOG,SUBMIT_DIALOG, andCANCEL_DIALOGto indicate user actions within the dialog. -
REQUEST_DIALOGsignifies opening a dialog,SUBMIT_DIALOGrepresents submitting information, andCANCEL_DIALOGdenotes closing without submission. -
The
CANCEL_DIALOGevent is only triggered when the user explicitly closes the dialog using the close icon, not through other methods like refreshing or clicking outside. -
For further information on Google Chat app interactions, refer to the provided documentation link: Receive and respond to interactions with your Google Chat app.
For CARD_CLICKED and MESSAGE interaction events, the types of interactions with dialogs.
To learn more about Google Chat app interaction events, see Receive and respond to interactions with your Google Chat app.
| Enums | |
|---|---|
TYPE_UNSPECIFIED |
Default value. Unspecified. |
REQUEST_DIALOG |
A user opens a dialog. |
SUBMIT_DIALOG |
A user clicks an interactive element of a dialog. For example, a user fills out information in a dialog and clicks a button to submit the information. |
CANCEL_DIALOG |
A user closes a dialog without submitting information. The Chat app only receives this interaction event when users click the close icon in the top right corner of the dialog. When the user closes the dialog by other means (such as refreshing the browser, clicking outside the dialog box, or pressing the escape key), no event is sent. |