Skip to content
프로젝트

소개

Google Chat 앱 샘플입니다.

생산성 및 자동화

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Google Chat apps code samples

This repository contains the code samples for interactive Google Chat apps not built as Google Workspace add-ons. Most code samples are featured in guides and tutorials hosted in the Developer Website.

⚠️ Make sure to clear Build this Chat app as a Workspace add-on and click DISABLE when you configure brand new Chat apps to run these code samples.

Important: The code samples for interactive Google Chat apps built as Google Workspace add-ons are located in the Git repository dedicated to Google Workspace add-ons (see Node.js, Python, Java, Apps Script).

Note: Code samples for the Google Chat API are located in the Git repositories dedicated to Google Workspace APIs (see Node.js, Python, Java, Apps Script).

In each folder, you can find language-specific implementations (Node.js, Python, Java, Apps Script) of the following code samples and more:

  • Basic app: This app receives event notices and messages from Google Chat and responds synchronously with text responses after verifying the requests. This sample demonstrates how to create an HTTP endpoint app using Google App Engine.
  • Avatar app: This app receives messages from Google Chat and responds synchronously with card-formatted responses. This sample demonstrates how to create an HTTP endpoint app using Google Cloud Run Function.
  • Pub/Sub app: This app uses Google Cloud Pub/Sub to receive messages from Google Chat. The app responds back to Google Chat asynchronously.
  • Vote app: This app demonstrates updating interactive cards by providing a platform whereby users can vote on topics, such as who can do lunch today, who wants to play ball at lunch, etc. Samples can feature images or be text-only.
  • Contact form app: This app demonstrates how to handle input forms and data using cards, dialogs, form inputs, and action parameters.
  • Preview link app: This app demonstrates how to use preview links to provide more information for links in messages from Google Chat.
  • App home app: This app handles app home event notices from Google Chat and responds synchronously with cards. Both initialization and updates are implemented.
  • Selection input app: This app demonstrates how to use external data sources to dynamically provide selection items in card widgets.
  • User Auth app: This app demonstrates how to obtain authorization to call Chat API with user credentials and store the user tokens in a database to be reused later.
  • Webhook app: This app demonstrates how to send messages to Google Chat with incoming webhooks.

For additional details about how to set up and run each sample, consult the README file included with the sample.

Note: The Google Chat application, and the developer platform, are only available to Google Workspace accounts. You will not be able to develop or test a app with an @gmail.com account.

Contributing changes

See CONTRIBUTING.md.

Licensing

This is not an official product.

This library is licensed under Apache 2.0. Full license text is available in LICENSE.

관련 프로젝트 살펴보기

불러오는 중…