Page tree
Skip to end of metadata
Go to start of metadata

As soon as you have the Service Account certificates, you can run your first bot!

For simplicity, we are going to use the Symphony Java sample bots as it’s very easy to run and includes different examples on the different ways and use-cases to build a Symphony bot.

Prerequisites

  • A User Account used to login on foundation-dev.symphony.com (replace the user's email with your own, in the example is useraccount@acme.com)

  • A folder containing userbot.p12 and server.truststore (both provided by the Foundation, see above); in the example, we will refer to this folder as ./certs

  • JDK 1.8.x installed

    • java -version
  • Apache Maven 3.x installed

    • mvn -v

Running the HelloWorld bot

Checkout and build the project

git clone https://github.com/symphonyoss/symphony-java-sample-bots.git
cd symphony-java-sample-bots
mvn clean package

Edit the run-bot.sh variables locally (lines 9 to 14)

# RECEIVER_USER_EMAIL=receiver@mycompany.com
# BOT_USER_EMAIL=testbot@mycompany.com
# BOT_CERT_PATH=./certs/userbot.p12
# BOT_CERT_PASSWORD=changeit
# TRUSTSTORE_PATH=./certs/server.truststore
# TRUSTSTORE_PASSWORD=changeit

Run the script

./run-bot.sh org.symphonyoss.simplebot.HelloWorldBot

Validating the result

You can now log into foundation-dev.symphony.com with your User Account credentials and check if you have received an “Hello World!” message from the Service Account in use.

  • No labels