This repository contains the code samples for Hangouts Chat bots. There are two folders of samples, one folder that contains samples in Java and the other that contains samples in Python.
In each folder, you can find a language-specific implementation of the following code samples:
- Basic bot: This bot receives event notices and messages from Hangouts Chat and responds synchronously with simple text responses. This sample demonstrates how to create an HTTP endpoint bot using Google App Engine.
- Basic async bot: This bot receives event notices and messages from Hangouts Chat and responds asynchronously with simple text responses. The responses will appear in the same thread that raised the original event or message. This sample is an HTTP endpoint bot built upon Google App Engine.
- Pub/Sub bot: This bot uses Google Cloud Pub/Sub to receive messages from Hangouts Chat. The bot responds back to Hangouts Chat asynchronously.
- Card bot: This bot receives event notices and messages from Hangouts Chat and responds synchronously with a card-formatted response. This sample is an HTTP endpoint bot built upon Google App Engine.
For additional details about how to set up and run each sample, consult the README file included with the sample.
See CONTRIBUTING.md.
This is not an official product.
This library is licensed under Apache 2.0.Full license text is available in LICENSE.