An enum that represents the type of Chat app response.
Only available for Google Chat apps. Not available for Google Workspace add-ons.
To call an enum, you call its parent class, name, and property. For example,
CardService.Type.DIALOG.
Properties
Property
Type
Description
TYPE_UNSPECIFIED
Enum
Default type that's handled as NEW_MESSAGE.
NEW_MESSAGE
Enum
Post as a new message in the topic.
UPDATE_MESSAGE
Enum
Update the Chat app's message. This is only permitted on a CARD_CLICKED event where
the message sender type is BOT.
UPDATE_USER_MESSAGE_CARDS
Enum
Update the cards on a user's message. This is only permitted as a response to a MESSAGE event with a matched URL, or a CARD_CLICKED event where the message sender
type is HUMAN. Text is ignored.
REQUEST_CONFIG
Enum
Privately ask the user for additional authentication or configuration.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-30 UTC."],[[["`ResponseType` is an enum used to define the type of response a Google Chat app sends."],["It is exclusively for Google Chat apps and is not applicable to Google Workspace Add-ons."],["`ResponseType` properties specify actions like posting new messages, updating existing ones, requesting user configuration, and displaying dialogs."],["Updating cards on user messages or the Chat app's message depends on specific event triggers and sender types."],["To call an enum property, use its parent class, name, and the specific property (e.g., `CardService.Type.DIALOG`)."]]],["The `ResponseType` enum defines how a Google Chat app responds. Available responses include `NEW_MESSAGE` (post a new message), `UPDATE_MESSAGE` (update the app's message, only for bot-initiated events), and `UPDATE_USER_MESSAGE_CARDS` (update cards on a user's message for human or URL-matched events). Other options: `REQUEST_CONFIG` (ask for user config), `DIALOG` (present a dialog), `UPDATE_WIDGET` (widget autocomplete query), and the default `TYPE_UNSPECIFIED` which is handled as `NEW_MESSAGE`.\n"]]