- Resource: ChatAppConfig
- AppState
- InteractiveFeatureConfig
- ConnectionConfig
- HttpEndpointConfig
- HttpPerEventEndpointConfig
- AppsScriptEndpointConfig
- AppsScriptPerEventEndpointConfig
- CloudPubSubEndpointConfig
- DialogflowEndpointConfig
- DialogflowEdition
- AppCommand
- CommandType
- UrlPattern
- MarkupSyntax
- Methods
Resource: ChatAppConfig
Represents the configuration of a Google Chat app built as a Google Workspace add-on.
| JSON representation |
|---|
{ "name": string, "displayName": string, "description": string, "interactiveFeatureConfig": { object ( |
| Fields | |
|---|---|
name |
Required. Identifier. Resource name of the Chat app configuration. Format: |
displayName |
Required. The display name of the Chat app. Length should be between 3 and 25 characters. |
description |
Required. A short description of the Chat app. Should be between 1 and 40 characters. |
interactiveFeatureConfig |
Optional. The settings for interactive features of the app. If this is not provided, the app will be non-interactive, meaning that it can use the Chat API, but users can't interact with the app. |
avatarUri |
Optional. The URL for the app's avatar image. Must be an HTTPS URL that hosts a square (aspect ratio of 1:1) PNG image. Recommended minimum size: 256 by 256 pixels. A default app avatar will be used if not specified. |
state |
Optional. The state of the app. Defaults to |
errorLoggingEnabled |
Optional. Whether to log errors to Cloud Logging. Defaults to |
markupSyntax |
Optional. The default markup syntax for messages sent or read by this Chat app. Defaults to |
AppState
The current state of the Chat app.
| Enums | |
|---|---|
APP_STATE_UNSPECIFIED |
Default value. Unspecified. |
ACTIVE |
Maps to LIVE in the Chat API configuration page. The app is active, it can be found and used by people with visibility. |
DISABLED |
The app is disabled, it can no longer be found by anyone, and nobody can talk to the app any more. |
InteractiveFeatureConfig
Settings for the interactive features of the app.
| JSON representation |
|---|
{ "connectionConfig": { object ( |
| Fields | |
|---|---|
connectionConfig |
Required. How the app receives events from Google Chat. |
appCommands[] |
Optional. Configuration for app commands. |
urlPatterns[] |
Optional. Configuration for link previews. |
allowlistedTestingPrincipals[] |
Optional. The email addresses of users and groups in your Google Workspace domain who can find and use the app. |
supportsMultiuserSpaces |
Optional. Whether the app can be added to 1:1 human DMs, group chats and spaces. Defaults to |
ConnectionConfig
How the app receives events.
| JSON representation |
|---|
{ "httpEndpointConfig": { object ( |
| Fields | |
|---|---|
| The type of connection. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
httpEndpointConfig |
HTTP endpoint configuration. |
appsScriptEndpointConfig |
Apps Script deployment configuration. |
cloudPubSubEndpointConfig |
Pub/Sub topic configuration. |
dialogflowEndpointConfig |
Dialogflow configuration. |
| End of mutually exclusive fields. | |
HttpEndpointConfig
HTTP endpoint configuration.
| JSON representation |
|---|
{
"commonUrl": string,
"perEventEndpointConfig": {
object ( |
| Fields | |
|---|---|
| The HTTP endpoint URL configuration. The following is a list of mutually exclusive fields. At most one of the fields will be set in a response: | |
commonUrl |
Optional. The HTTPS URL to which Google Chat sends all interactive events. |
perEventEndpointConfig |
Optional. Separate HTTPS URLs to which Google Chat sends each type of interactive event. |
| End of mutually exclusive fields. | |
HttpPerEventEndpointConfig
HTTP endpoint configuration for specific event types.
| JSON representation |
|---|
{ "appCommandEndpoint": string, "addedToSpaceEndpoint": string, "messageEndpoint": string, "removedFromSpaceEndpoint": string } |
| Fields | |
|---|---|
appCommandEndpoint |
Required. HTTPS URL endpoint for app command events. |
addedToSpaceEndpoint |
Required. HTTPS URL endpoint for added to space events. |
messageEndpoint |
Required. HTTPS URL endpoint for message events. |
removedFromSpaceEndpoint |
Required. HTTPS URL endpoint for removed from space events. |
AppsScriptEndpointConfig
Apps Script endpoint configuration.
| JSON representation |
|---|
{
"deploymentId": string,
"perEventEndpointConfig": {
object ( |
| Fields | |
|---|---|
deploymentId |
Required. The Apps Script deployment ID. |
perEventEndpointConfig |
Optional. The names of the Apps Script functions that Google Chat calls for each type of interactive event. If not specified, Chat calls the default function for each event type. |
AppsScriptPerEventEndpointConfig
Apps Script endpoint configuration for specific event types.
| JSON representation |
|---|
{ "appCommandEndpoint": string, "addedToSpaceEndpoint": string, "messageEndpoint": string, "removedFromSpaceEndpoint": string } |
| Fields | |
|---|---|
appCommandEndpoint |
Optional. Function name for app command events. If not specified, the default |
addedToSpaceEndpoint |
Optional. Function name for added to space events. If not specified, the default |
messageEndpoint |
Optional. Function name for message events. If not specified, the default |
removedFromSpaceEndpoint |
Optional. Function name for removed from space events. If not specified, the default |
CloudPubSubEndpointConfig
Pub/Sub endpoint configuration.
| JSON representation |
|---|
{ "topic": string } |
| Fields | |
|---|---|
topic |
Required. The Pub/Sub topic to which Google Chat publishes all interactive events. The topic must be in the same Google Cloud project as the app, and Chat must have permission to publish messages to the topic. For details, see Build a Google Chat app with Pub/Sub. Format: |
DialogflowEndpointConfig
Dialogflow endpoint configuration.
| JSON representation |
|---|
{
"dialogflowEdition": enum ( |
| Fields | |
|---|---|
dialogflowEdition |
Required. The Dialogflow edition. |
agent |
Optional. The Dialogflow CX agent or environment name. Required for Dialogflow CX. Do not set for Dialogflow ES. Format: |
DialogflowEdition
Dialogflow edition type.
| Enums | |
|---|---|
DIALOGFLOW_EDITION_UNSPECIFIED |
Default value. Unspecified. |
ES |
Dialogflow ES edition. To use this edition, a Dialogflow ES agent must exist in the same Google Cloud project as the app. Google Chat sends all interactive events to that agent. |
CX |
Dialogflow CX edition. To use this edition, a Dialogflow CX agent must exist in the same Google Cloud project as the app and be specified in the agent field. Google Chat sends all interactive events to that agent. |
AppCommand
Configuration for an app command.
| JSON representation |
|---|
{
"commandType": enum ( |
| Fields | |
|---|---|
commandType |
Required. The type of this command. |
commandId |
Required. The ID of the command (1-1000). Must be unique within the app. |
command |
Optional. The name of the command. Required for SLASH_COMMAND, do not set for other command types. Must start with a "/", e.g., "/command". |
displayName |
Optional. The user-friendly display name of the command. Required for MESSAGE_ACTION and QUICK_COMMAND, do not set for SLASH_COMMAND. |
description |
Required. A short description of the command. |
dialogEnabled |
Optional. Whether this command should trigger a dialog. Defaults to |
loadingNotificationMessage |
Optional. A notification to be sent to the user when they trigger the message action. Only supported for MESSAGE_ACTION commands. |
CommandType
The type of the App Command.
| Enums | |
|---|---|
COMMAND_TYPE_UNSPECIFIED |
Default value. Unspecified. |
SLASH_COMMAND |
A command invoked by typing a '/' followed by the command name. It may accept additional arguments in the message text. |
QUICK_COMMAND |
A quick command invoked from the message compose context menu. Quick commands do not accept additional arguments. |
MESSAGE_ACTION |
A command invoked from a message context menu. |
UrlPattern
Configuration for a link preview.
| JSON representation |
|---|
{ "hostPattern": string, "pathPrefix": string } |
| Fields | |
|---|---|
hostPattern |
Required. The domain to match. Match a specific subdomain, like "subdomain.example.com", or an entire domain by including an asterisk (*) as a leading wildcard character. For example, "*.example.com" matches "https://subdomain.example.com" and "https://any.number.of.subdomains.example.com". |
pathPrefix |
Optional. Path prefix appended to the host pattern. If blank, matches all URLs in the host pattern. For example, when paired with the host pattern "subdomain.example.com", specify "path/" to match page URLs that begin with "https://subdomain.example.com/path/". |
MarkupSyntax
The markup syntax used to format message text for this Chat app.
| Enums | |
|---|---|
MARKUP_SYNTAX_UNSPECIFIED |
Default value. Unspecified. Existing Chat apps created before markup_syntax was introduced have this value and use MARKUP_SYNTAX_CHAT until explicitly updated. |
MARKUP_SYNTAX_CHAT |
Uses Google Chat's markup syntax. See https://developers.google.com/workspace/chat/format-messages#format-texts for more information. |
MARKUP_SYNTAX_MARKDOWN |
Uses Markdown syntax. This syntax is based on the CommonMark specification, with additional extensions. See https://developers.google.com/workspace/chat/format-messages#format-texts for more information. |
Methods |
|
|---|---|
|
Gets the Chat app configuration of a project. |
|
Updates the Chat app configuration of a project. |