- Notifications
You must be signed in to change notification settings - Fork278
googleworkspace/google-chat-samples
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
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.
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.
SeeCONTRIBUTING.md.
This is not an official product.
This library is licensed under Apache 2.0. Full license text is available inLICENSE.
About
Google Chat app samples.
Topics
Resources
License
Contributing
Security policy
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.