Git Product home page Git Product logo

google-business-communications / bm-java-kitchen-sink Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 3.0 33 KB

This sample demonstrates how to receive a message from the Business Messages platform and echo the same message back to the user using the Business Messages Java SDK. The bot also includes commands to generate all message types supported in Business Messages and receive all user generated message types.

License: Apache License 2.0

Java 100.00%

bm-java-kitchen-sink's Introduction

BUSINESS MESSAGES: Kitchen Sink Bot

This sample demonstrates how to receive a message from the Business Messages platform and echo the same message back to the user using the Business Messages Java client library. The bot also includes commands to generate all message types supported in Business Messages and receive all user generated message types.

Enter help to see a list of supported commands.

This sample runs on the Google App Engine.

See the Google App Engine (https://cloud.google.com/appengine/docs/java/) standard environment documentation for more detailed instructions.

Documentation

The documentation for the Business Messages API can be found here.

Prerequisite

You must have the following software installed on your machine:

Before you begin

  1. Register with Business Messages.
  2. Once registered, follow the instructions to enable the APIs for your project.
  3. Open the Create an agent guide and follow the instructions to create a Business Messages agent.

Deploy the sample

  1. In a terminal, navigate to this sample's root directory.

  2. Run the following commands:

    gcloud config set project PROJECT_ID

    Where PROJECT_ID is the project ID for the project you created when you registered for Business Messages.

    mvn appengine:deploy
  3. On your mobile device, use the test business URL associated with the Business Messages agent you created. Open a conversation with your agent and type in "Hello". Once delivered, you should receive "Hello" back from the agent. Type "help" to tap the Help suggestion to explore other functionality.

    See the Test an agent guide if you need help retrieving your test business URL.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.