Zadbaj o dobrą organizację dzięki kolekcji Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Na tej stronie dowiesz się, jak skonfigurować i wdrożyć aplikację Google Chat jako dodatek do Google Workspace.
Aby wdrożyć i przetestować dodatek do Google Workspace, który rozszerza funkcje Google Chat, musisz włączyć i skonfigurować aplikację Google Chat za pomocą interfejsu Google Chat API. W ustawieniach konfiguracji interfejsu Chat API możesz określić wszystkie szczegóły aplikacji do obsługi czatu, w tym nazwę, awatar, wdrożenie i funkcje interaktywne, których chcesz używać.
Wybieranie nazwy wyświetlanej, awatara i opisu aplikacji Chat
Nazwa, awatar i opis aplikacji Google Chat są wyświetlane użytkownikom w interfejsie Google Chat. Aby wchodzić w interakcje z aplikacjami do czatowania, użytkownicy widzą lub wykorzystują te informacje w następujący sposób:
Użyj @wzmianki, aby dodać aplikację do pokoju lub wysłać do niej wiadomość.
Znajdź i rozpocznij czat z aplikacją Google Chat. W menu Aplikacje czaty wyświetlają nazwę i awatar aplikacji Google Chat.
Na pasku tworzenia wiadomości użytkownicy mogą przeglądać aplikacje do Google Chat i wyświetlać ich nazwy, awatary i opisy.
Zanim skonfigurujesz aplikację do obsługi czatu, musisz przygotować te informacje:
Pole
Opis
Format
Nazwa aplikacji
Wyświetlana nazwa aplikacji Google Chat.
Do 25 znaków alfanumerycznych
URL awatara
Obraz, który wyświetla się jako awatar aplikacji Chat.
Adres URL HTTPS prowadzący do kwadratowego obrazu (PNG lub JPEG). Zalecany rozmiar to co najmniej 256 x 256 pikseli.
Opis
Krótki opis przeznaczenia aplikacji Chat.
Maksymalnie 40 znaków alfanumerycznych
W następnej sekcji podasz te informacje w ustawieniach konfiguracji interfejsu Chat API.
Konfigurowanie aplikacji do obsługi czatu w konsoli Google Cloud
W konsoli Google Cloud możesz skonfigurować szczegóły aplikacji do obsługi czatu, które będą wyświetlane użytkownikom w Google Chat, w tym nazwę wyświetlaną, awatar i opis. Te informacje pojawiają się tylko w Google Chat. Aby opublikować aplikację Google Chat w Marketplace, musisz też podać szczegóły, które będą wyświetlane w informacjach o aplikacji w Marketplace.
Gdy będziesz mieć szczegółowe informacje o aplikacji Google Chat, otwórz projekt Cloud i skonfiguruj interfejs Chat API:
W konsoli Google Cloud otwórz stronę Chat API i kliknij stronę Konfiguracja:
W sekcji Informacje o aplikacji wypełnij pola Nazwa aplikacji, URL awatara i Opis.
W sekcji Funkcje interaktywne kliknij Włącz funkcje interaktywne, aby włączyć tę opcję, i wykonaj te czynności:
W sekcji Funkcje wybierz Dołączanie do pokoi i rozmów grupowych, aby aplikacja na czacie była dostępna do zainstalowania i używania.
Domyślnie użytkownicy mogą instalować aplikację Google Chat i wysyłać do niej wiadomości w przestrzeni przeznaczonej do komunikacji między użytkownikiem a aplikacją. Użytkownicy mogą też dodawać aplikację Google Chat do pokoi z wieloma osobami i korzystać z niej w tych pokojach.
W sekcji Ustawienia połączenia wybierz architekturę, której chcesz używać do odbierania obiektów zdarzeń z Chata:
Aby użyć usługi HTTP, kliknij Adres URL punktu końcowego HTTP i podaj adres URL.
Aby użyć projektu Google Apps Script, wybierz Apps Script i podaj identyfikator wdrożenia projektu.
Opcjonalnie: aby otrzymywać obiekty zdarzeń do więcej niż 1 punktu końcowego lub funkcji, kliknij Ustawienia połączenia>Triggery i podaj lub zaktualizuj funkcje wywołania zwrotnego dla tych triggerów czatu:
Dodano do pokoju: użytkownik dodaje aplikację Google Chat do rozmowy grupowej lub pokoju albo instaluje aplikację Google Chat do wiadomości 1:1.
Wiadomość: użytkownik wysyła wiadomość do aplikacji Chat. Na przykład wysyła wiadomość na czacie do aplikacji Chat lub @wzmiankuje aplikację Chat w pokoju z wieloma osobami.
Usunięto z pokoju: użytkownik odinstalowuje lub usuwa aplikację Chat z pokoju.
Polecenie aplikacji: użytkownik używa szybkiego polecenia lub polecenia po ukośniku w aplikacji Google Chat.
W sekcji Widoczność podaj swój adres e-mail, aby móc zainstalować i przetestować aplikację do obsługi czatu przed opublikowaniem jej w Google Workspace Marketplace. Możesz określić maksymalnie 5 osób lub co najmniej jedną grupę Google z Twojej organizacji Google Workspace.
Opcjonalnie: w sekcji Logi zaznacz pole wyboru Loguj błędy w Cloud Logging, aby korzystać z Google Cloud Logging. Więcej informacji znajdziesz w artykule Dzienniki błędów zapytań w aplikacjach Google Chat w dokumentacji interfejsu Chat API.
Kliknij Zapisz.
Po zapisaniu konfiguracji każda osoba, którą określisz w ustawieniu Widoczność interfejsu Chat API, będzie mogła zainstalować, przetestować lub używać aplikacji Google Chat. Aby rozpocząć testowanie i debugowanie aplikacji Google Chat, zapoznaj się z artykułem Testowanie funkcji interaktywnych aplikacji Google Chat w dokumentacji interfejsu Chat API.
Wskazówki dotyczące dotychczasowych dodatków do Google Workspace
Aplikacje Google Chat wymagają innej konfiguracji niż dodatki do Google Workspace, które rozszerzają inne aplikacje Google Workspace. Jeśli Twój dodatek rozszerza inne aplikacje Google Workspace, weź pod uwagę te wymagania dotyczące konfigurowania aplikacji Google Chat:
Zarówno użytkownicy indywidualni, jak i administratorzy Google Workspace muszą mieć możliwość zainstalowania Twojego dodatku z Marketplace. Te ustawienia instalacji konfiguruje się w pakiecie SDK Google Workspace Marketplace.
Aplikacje do obsługi czatu nie używają nazwy i logo skonfigurowanych dla innych aplikacji Google Workspace w obiekcie addons.commonmanifestu.
W przypadku dodatków opublikowanych w Google Workspace Marketplace nie możesz zapisać wersji roboczej żadnych zmian w ustawieniach konfiguracji interfejsu Google Chat API. Po zaktualizowaniu i zapisaniu ustawień konfiguracji interfejsu Chat API zaktualizowana aplikacja do obsługi czatu będzie dostępna dla wszystkich dotychczasowych użytkowników. Aby zaktualizować wizytówkę w Marketplace, możesz utworzyć wersję roboczą przed przesłaniem zmian.
Jeśli dodatek został utworzony przy użyciu Apps Script:
Musisz użyć tego samego identyfikatora wdrożenia Apps Script, którego używasz w przypadku pozostałej części konfiguracji dodatku.
Jeśli dodatek został utworzony przy użyciu usługi HTTP, pomiń w pliku manifestu i wdrożeniach utworzonych za pomocą interfejsu Google Workspace Add-ons API wszelkie szczegóły konfiguracji aplikacji Google Chat. Wdrożenia HTTP określone w pakiecie SDK Google Workspace Marketplace są używane tylko w innych aplikacjach Google Workspace.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-08-04 UTC."],[[["\u003cp\u003eThis guide explains how to set up a Google Chat app as a Google Workspace add-on using either Apps Script or an HTTP service.\u003c/p\u003e\n"],["\u003cp\u003eYou'll need a Google Workspace account, a Google Cloud project, and necessary API configurations to get started.\u003c/p\u003e\n"],["\u003cp\u003eThe setup involves choosing a display name, avatar, and description for your app, and configuring its interactive features in the Google Cloud console.\u003c/p\u003e\n"],["\u003cp\u003eFor existing Google Workspace add-ons, specific considerations apply when integrating Chat app functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThis feature is part of the Google Workspace Developer Preview Program, granting early access before public release.\u003c/p\u003e\n"]]],["To configure a Chat app, use the Google Cloud console to access the Chat API page. Input the app's name, avatar URL, and description. Enable interactive features, choosing to receive 1:1 messages or join group conversations. Select either an HTTP endpoint URL or an Apps Script deployment ID for connection settings. Optionally, set triggers, add quick/slash commands, and specify visibility. Save configurations; users listed in \"Visibility\" can then test the Chat app.\n"],null,["This page explains how to configure and deploy a Google Chat app\nas a Google Workspace add-on.\n\nTo deploy and test a Google Workspace add-on that extends Chat,\nyou must enable and configure a Chat app using the\nGoogle Chat API. The Chat API configuration settings are where you\nspecify all the details about the Chat app, including\nthe name, avatar, deployment, and interactive features that you want to use.\n| **Note:** This page explains how to configure a Chat app using Apps Script or an HTTP service. [Dialogflow](/workspace/chat/build-dialogflow-chat-app-natural-language) and [Pub/Sub](/workspace/chat/quickstart/pub-sub) are unavailable. For details, see [Limitations and known issues](/workspace/add-ons/chat#limitations-known-issues).\n\nPrerequisites\n\n- A Business or Enterprise [Google Workspace](https://support.google.com/a/answer/6043576) account with access to [Google Chat](https://workspace.google.com/products/chat/).\n- [Create a Google Cloud project](/workspace/guides/create-project).\n- [Configure the OAuth consent screen](/workspace/guides/configure-oauth-consent).\n- [Enable the Google Chat API](/workspace/guides/enable-apis).\n\nChoose a display name, avatar, and description for your Chat app\n\nThe Chat app's name, avatar, and description are\ndisplayed to users in the Chat UI. To interact with\nChat apps, users see or use this information in the following\nways:\n\n- @mention the Chat app to add it to a space or send it a message.\n- Find and start a direct message with the Chat app. In the **Apps** menu, direct messages display the Chat app's name and avatar.\n- From the compose bar, users can browse Chat apps and see their name, avatar, and description.\n\nBefore you configure a Chat app, you must prepare the\nfollowing information:\n\n| Field | Description | Format |\n|-------------|-----------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| App name | The display name for the Chat app. | Up to 25 alphanumeric characters |\n| Avatar URL | The image that displays as your Chat app's avatar. | An HTTPS URL pointing to a square graphics image (PNG or JPEG). Recommended size is 256 by 256 pixels or more. |\n| Description | A brief description of the purpose of the Chat app. | Up to 40 alphanumeric characters |\n\nIn the following section, you specify this information in the configurations\nsettings in the Chat API.\n\nConfigure your Chat app in the Google Cloud console\n\nIn the Google Cloud console, you configure the details about your\nChat app that appear to users in Chat,\nincluding a display name, avatar, and description. These details only appear\nin Chat. To publish your Chat app to the\nMarketplace, you must also specify the details that\nappear in your Chat app's\n[Marketplace listing](/workspace/marketplace/create-listing).\n\nWhen you have your Chat app details, open your\nCloud project and configure the Chat API:\n\n1. In the Google Cloud console, go to the Chat API page and click the\n **Configuration** page:\n\n [Go to the Chat API Configuration page](https://console.cloud.google.com/apis/api/chat.googleapis.com/hangouts-chat)\n2. Under **Application info** , fill out the **App name** , **Avatar URL** ,\n and **Description** fields.\n\n3. Under **Interactive features** , click the **Enable interactive features**\n to the on position and complete the following:\n\n 1. Under **Functionality** , select **Join spaces and group conversations**\n to make your Chat app available to install and use.\n\n By default, Users can install and message with the\n Chat app in a dedicated space between\n the user and Chat app. Users can also add and interact\n with the Chat app in spaces with multiple\n people.\n 2. Under **Connection settings** , select the architecture that you want to\n use to receive\n [event objects from Chat](/workspace/add-ons/chat/build#event-objects):\n\n - To use an HTTP service, select **HTTP endpoint URL** and provide a URL.\n - To use a Google Apps Script project, select **Apps Script** and provide a [deployment ID](/apps-script/concepts/deployments) for the project.\n\n | **Warning:** If an Apps Script deployment ID is already populated, the Cloud project is connected to an existing Google Workspace add-on. If you update the deployment ID in the Chat API, the deployment ID is updated for your add-on and could affect your listing in the Google Workspace Marketplace. To review your add-on configuration, see [Configure your app in the Google Workspace Marketplace SDK](/workspace/marketplace/enable-configure-sdk) in the Google Workspace Marketplace documentation.\n 3. Optional: To receive event objects to more than one endpoint or\n function, go to **Connection settings**\n \\\u003e **Triggers** and provide or\n update the callback functions for the following\n [Chat triggers](/workspace/add-ons/chat/build#triggers):\n\n | **Note:** For Apps Script, if you don't update the triggers, you must use the corresponding callback functions that are populated in this section (such as `onMessage`, `onAddedToSpace`, and `onRemovedFromSpace`).\n - **Added to space**: A user adds the Chat app to a group conversation or space, or installs the Chat app for 1:1 messages.\n - **Message**: A user sends a message to the Chat app. For example, sends a direct message to the Chat app or @mentions the Chat app in a space with multiple people.\n - **Removed from space**: A user uninstalls or removes the Chat app from a space.\n - **App command**: A user uses a quick command or slash command from the Chat app.\n 4. Optional: Add other interactive features such as\n [quick commands](/workspace/add-ons/chat/quick-commands),\n [slash commands](/workspace/add-ons/chat/slash-commands),\n or [link previews](/workspace/add-ons/chat/preview-links).\n\n 5. Under **Visibility** , specify your email so that you can\n [install and test the Chat app](/workspace/chat/test-interactive-features)\n before you publish to the Google Workspace Marketplace. You can specify\n up to five individuals, or one or more Google Groups from your\n Google Workspace organization.\n\n4. Optional: Under **Logs** , select the **Log errors to Logging** checkbox to\n use Google Cloud Logging. For more information, see\n [Query error logs for Chat apps](/workspace/chat/query-logs)\n in the Chat API documentation.\n\n5. Click **Save**.\n\nAfter you save the configuration, anyone that you specified in the\nChat API's **Visibility** setting can install, test, or use the\nChat app. To start testing and debugging your\nChat app, see\n[Test interactive features for Google Chat apps](/workspace/chat/test-interactive-features)\nin the Chat API documentation.\n\nConsiderations for existing Google Workspace add-ons\n\nChat apps require a different configuration compared to\nGoogle Workspace add-ons that extend other Google Workspace applications.\nIf your add-on extends other\nGoogle Workspace applications, consider the following requirements\nfor configuring the Chat app:\n\n- Both individuals and Google Workspace administrators must be able to install your add-on from the Marketplace. You configure these installation settings in the Google Workspace Marketplace SDK.\n- Chat apps don't use the name and logo that you configure for other Google Workspace applications in the `addons.common` object of the [manifest](/workspace/add-ons/concepts/workspace-manifests).\n- For add-ons that are published to the Google Workspace Marketplace, you can't save a draft of any changes to the [Google Chat API configuration settings](/workspace/add-ons/chat/configure). After you update and save the Chat API configuration settings, the updated Chat app is available to all existing users. To update your Marketplace listing, you can [create a draft](/workspace/marketplace/manage-app-listing#draft-app-listing) before submitting any changes.\n- If you built your add-on using\n Apps Script:\n\n - You must use the same Apps Script deployment ID that you use for the rest of your add-on configuration.\n - You can't use the Apps Script editor to install [test deployments](/workspace/add-ons/how-tos/testing-workspace-addons#install_an_unpublished) in Chat. Instead, you must [install them directly from the\n Chat UI](/workspace/chat/test-interactive-features).\n- If you built your add-on using an HTTP service,\n omit any Chat app configuration details in the\n manifest and deployments that you create using the Google Workspace add-ons API. The\n HTTP deployments that you specify in the Google Workspace Marketplace SDK are\n only used for other Google Workspace applications.\n\nRelated topics\n\n- To manage access to the Chat API, see [Configure the Google Chat API](/workspace/chat/configure-chat-api#grant-access) in the Google Chat API documentation.\n- [Test interactive features for Google Chat apps](/workspace/chat/test-interactive-features)"]]