<br />

Explore samples that show you how to build and deploy different
kinds of Google Chat apps.

## Get started with a quickstart

If you've never built a Chat app, you can get started
by completing a *quickstart*. Quickstarts explain how to set up and run a basic
sample. To get started with the Google Chat API, you can choose from two types of
quickstarts:

- [API quickstarts](https://developers.google.com/workspace/chat/samples#api-quickstarts): Set up your environment by building a Chat app that calls the Chat API to perform tasks on your behalf, such as send a message or return a list of spaces that you're a member of.
- [Interactive quickstarts](https://developers.google.com/workspace/chat/samples#interactive-quickstarts): Configure the Chat API and create a basic Chat app that you can add to spaces and message with.

### API quickstarts

API quickstarts use [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
to call the Chat API, which means they perform an action as an
authenticated Chat user. In this case, the quickstarts help you
call the Chat API as yourself. Unlike the interactive quickstarts,
you don't need to install or interact with the Chat app
in Chat spaces.

The API quickstarts are offered in the following languages:

- [Apps Script](https://developers.google.com/workspace/chat/api/guides/quickstart/apps-script)
- [Python](https://developers.google.com/workspace/chat/api/guides/quickstart/python)
- [Node.js](https://developers.google.com/workspace/chat/api/guides/quickstart/nodejs)
- [Java](https://developers.google.com/workspace/chat/api/guides/quickstart/java)

For all other programming languages, view and install our
[client libraries](https://developers.google.com/workspace/chat/libraries) to get started with
the Chat API.

### Interactive quickstarts

Choose from the following interactive quickstarts based on how you want to
build:

- [Google Apps Script](https://developers.google.com/workspace/chat/quickstart/apps-script-app), a cloud-based, low-code development platform based in JavaScript.
- [HTTP service](https://developers.google.com/workspace/chat/quickstart/gcf-app) with Google Cloud Functions.
- [Google Cloud Dialogflow CX](https://developers.google.com/workspace/chat/build-dialogflow-chat-app-natural-language), a natural language platform for automated conversations and dynamic responses.
- [Google Cloud Pub/Sub](https://developers.google.com/workspace/chat/quickstart/pub-sub), a real-time messaging service that lets you build behind a firewall.
- [AppSheet](https://support.google.com/appsheet/answer/12923581), a no-code development platform for building apps in Google Workspace organizations.

## Explore Chat app samples

View samples by featured Google products, language, and [type](https://developers.google.com/workspace/chat/samples#types):

Firestore Gemini Google Admin console Google Calendar Google Cloud Functions Google Cloud Run Google Docs Pub/Sub Vertex AI Apps Script Node.js Java Python Quickstart Tutorial Codelab GitHub

### About sample types

The following provides an explanation of each sample type:

- **[Quickstarts](https://developers.google.com/workspace/chat/samples#quickstart)** explain how to set up and run a basic Chat app.
- **Tutorials** provide step-by-step instructions from start to finish, and assume you have nothing set up beyond a Google Cloud project.
- **[Codelabs](https://codelabs.developers.google.com/?product=googleworkspace&text=chat)** are guided walkthroughs of one or more Google products and usually presented at an event and published later for you to try at home.
- **GitHub** code samples are published to the [Google Workspace add-ons GitHub repository](https://github.com/googleworkspace/add-ons-samples) with some basic instructions on how to use them. Often times, these samples are also used in documentation.

### Explore Chat app code samples on GitHub

You can also find Chat app samples on
[GitHub](https://github.com/googleworkspace/add-ons-samples).
You can fork these repositories and use the code as a reference for your own
projects.

## Explore Chat app videos

Explore content from the Google Workspace Developers YouTube channel:

## Next steps

- [Google Workspace add-ons repository on GitHub](https://github.com/googleworkspace/add-ons-samples)
- [Identify your users' needs](https://developers.google.com/workspace/chat/audience)
- [Define all user journeys](https://developers.google.com/workspace/chat/journeys)
- [Choose a Chat app architecture](https://developers.google.com/workspace/chat/structure)

## Chat apps that aren't add-ons: Google Chat app samples

The following documentation applies to Chat apps that aren't
Google Workspace add-ons. To migrate a Chat app that isn't an
add-on, see
[Convert a Chat app to a Google Workspace add-on](https://developers.google.com/workspace/chat/convert).

You can find code samples for Chat apps that aren't
add-ons in the
[Google Chat samples repository on GitHub](https://github.com/googleworkspace/google-chat-samples).