Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Google Chat app samples.

License

NotificationsYou must be signed in to change notification settings

googleworkspace/google-chat-samples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

This repository contains thecode samples forinteractive Google Chat appsnot built as Google Workspace add-ons. Most code samples are featured inguides andtutorials hosted in theDeveloper Website.

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

Important: The code samples forinteractive Google Chat appsbuilt as Google Workspace add-ons are located in the Git repository dedicated to Google Workspace add-ons (seeNode.js,Python,Java,Apps Script).

Note: Code samples for theGoogle Chat APIare located in the Git repositories dedicated to Google Workspace APIs (seeNode.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 GoogleChat and responds synchronously with text responses after verifying therequests. This sample demonstrates how to create an HTTP endpoint app usingGoogle App Engine.
  • Avatar app: This app receives messages from Google Chat and respondssynchronously withcard-formattedresponses. This sample demonstrates how to create an HTTP endpoint appusingGoogle Cloud Run Function.
  • Pub/Sub app: This app usesGoogle Cloud Pub/Sub to receive messagesfrom Google Chat. The app responds back to Google Chat asynchronously.
  • Vote app: This app demonstrates updating interactive cards by providinga 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 betext-only.
  • Contact form app: This app demonstrates how to handle input forms anddata using cards, dialogs, form inputs, and action parameters.
  • Preview link app: This app demonstrates how to use preview links toprovide more information for links in messages from Google Chat.
  • App home app: This app handles app home event notices from Google Chatand responds synchronously with cards. Both initialization and updates areimplemented.
  • Selection input app: This app demonstrates how to use external datasources to dynamically provide selection items in card widgets.
  • User Auth app: This app demonstrates how to obtain authorization to callChat API with user credentials and store the user tokens in a database to bereused later.
  • Webhook app: This app demonstrates how to send messages to Google Chatwith incoming webhooks.

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

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

Contributing changes

SeeCONTRIBUTING.md.

Licensing

This is not an official product.

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


[8]ページ先頭

©2009-2025 Movatter.jp