This sample demonstrates how to use the Business Messages Java client library for performing operations with the Business Messages API.
This sample contains multiple example codebases. Each subfolder is a complete example bot and can be deployed to Google App Engine to support a Business Messages conversational experience.
This application assumes that you're signed up with Business Messages.
The documentation for the Business Messages API can be found here.
You must have the following software installed on your machine:
- Apache Maven 3.3.9 or greater
- Google Cloud SDK (aka gcloud)
- Java 8
- Google App Engine SDK for Java
- Register with Business Messages.
- Once registered, follow the instructions to enable the APIs for your project.
Each sample has a README.md
with instructions for running the sample.
Sample | Description |
---|---|
step1_base | Base code for supporting an echo bot on Business Messages. |
step2_rich_features | Extension of the base code that contains TODOs to create a rich messaging experience. |
full_sample | Complete solution for adding rich features. |
message_validation_sample | Demonstrates how to validate messages com from Google. |
To learn more about setting up Business Messages and supporting chat from Search and Maps, see the documentation.