What to do in response to an interaction with a user, such as a user
clicking a button in a card message.
If unspecified, the app responds by executing an action—like opening a
link or running a function—as normal.
By specifying an interaction, the app can respond in special interactive
ways. For example, by setting interaction to OPEN_DIALOG, the app can
open a dialog.
When specified, a loading indicator isn't shown. If specified for
an add-on, the entire card is stripped and nothing is shown in the client.
Google Chat apps:
Protobuf type google.apps.card.v1.Action.Interaction
Namespace
Google \ Apps \ Card \ V1 \ Action
Methods
static::name
Parameter
Name
Description
value
mixed
static::value
Parameter
Name
Description
name
mixed
Constants
INTERACTION_UNSPECIFIED
Value: 0
Default value. The action executes as normal.
Generated from protobuf enum INTERACTION_UNSPECIFIED = 0;
OPEN_DIALOG
Value: 1
Opens a dialog, a
windowed, card-based interface that Chat apps use to interact with users.
Only supported by Chat apps in response to button-clicks on card
messages. If specified for
an add-on, the entire card is stripped and nothing is shown in the
client.
Google Chat apps:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class Interaction (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Card.V1.Action.Interaction)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Card.V1.Action.Interaction)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Card.V1.Action.Interaction)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Card.V1.Action.Interaction)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Card.V1.Action.Interaction)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Card.V1.Action.Interaction)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Card.V1.Action.Interaction)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Card.V1.Action.Interaction)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Card.V1.Action.Interaction)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Card.V1.Action.Interaction)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Card.V1.Action.Interaction)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Card.V1.Action.Interaction) \nReference documentation and code samples for the Google Apps Chat V1 Client class Interaction.\n\nOptional. Required when opening a\n[dialog](https://developers.google.com/workspace/chat/dialogs).\n\nWhat to do in response to an interaction with a user, such as a user\nclicking a button in a card message.\nIf unspecified, the app responds by executing an `action`---like opening a\nlink or running a function---as normal.\nBy specifying an `interaction`, the app can respond in special interactive\nways. For example, by setting `interaction` to `OPEN_DIALOG`, the app can\nopen a [dialog](https://developers.google.com/workspace/chat/dialogs).\nWhen specified, a loading indicator isn't shown. If specified for\nan add-on, the entire card is stripped and nothing is shown in the client.\n[Google Chat apps](https://developers.google.com/workspace/chat):\n\nProtobuf type `google.apps.card.v1.Action.Interaction`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Card \\\\ V1 \\\\ Action\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### INTERACTION_UNSPECIFIED\n\n Value: 0\n\nDefault value. The `action` executes as normal.\n\nGenerated from protobuf enum `INTERACTION_UNSPECIFIED = 0;`\n\n### OPEN_DIALOG\n\n Value: 1\n\nOpens a [dialog](https://developers.google.com/workspace/chat/dialogs), a\nwindowed, card-based interface that Chat apps use to interact with users.\n\nOnly supported by Chat apps in response to button-clicks on card\nmessages. If specified for\nan add-on, the entire card is stripped and nothing is shown in the\nclient.\n[Google Chat apps](https://developers.google.com/workspace/chat):\n\nGenerated from protobuf enum `OPEN_DIALOG = 1;`"]]