Gal-Doron / spring-bot

Spring Boot + Java Integration for Symphony/Teams Chat Platform Bots and Apps
https://springbot.finos.org
Apache License 2.0
0 stars 0 forks source link

FINOS - Incubating codecov License build javadoc CII Best Practices

Version Number Status
Spring Bot Maven Central build
Symphony Java Toolkit Maven Central build

Spring Bot Logo

Spring Bot

Spring Bot is a set of Spring Boot starters designed for building chat bots in Java & Kotlin.

What Is It?

Why Is This Important?

πŸ§‘πŸ½β€πŸ€β€πŸ§‘πŸ½ Multiple Platforms

Like it or not, most of us find ourselves working in environments with multiple chat platforms. As bot developers, we need to be able to reach users irrespective of which platform they are on.

β›… Work at a higher level

Developers of chat-bots are not well-supported with Open-Source tooling. Too much effort gets spent on low-level message-handling, which could easily be done by a library.

πŸ”’ Avoid Lock-In

Most bot development tools are commercial. If you build bots with them you are locked into paying license fees forever. For example, the Microsoft Bot Framework support multiple chat platforms at the expense of locking you into the Azure ecosystem.

How Does It Work?

This is best described at springbot.finos.org. This takes you through the process of building several example bots from scratch.

What Are The Benefits?

βœ”οΈ Build Bots that run on multiple platforms

By using Spring Bot's abstractions, you can target both Symphony and Microsoft Teams. Depending on demand (or contributions) further platforms may be supported in the future. In the tutorials we show how to build a claim processing bot which runs a workflow concurrently on Teams and Symphony.

βœ”οΈFocus On Business Logic

Spring Bot handles marshalling from/to the underlying message formats on your platform.

βœ”οΈ Advanced Templating

Templates are automatically generated for any Java objects (POJOs) that you want to send to the chat platform. This allows users to read/edit objects and send them back to your bot. Additionally, templates are fully customizable on a per-platform basis, currently using Freemarker and Thymeleaf.

βœ”οΈAnnotations Make It Super-Easy

As the tutorials show, you just drop a few annotations into your application to enable it to read and send chat messages.

βœ”οΈ A Mature Ecosystem

By building bots in a mature ecosystem like Java, you avoid all of the usual issues with no-code and low-code environments. Java is a mature language with every conceivable library, a wealth of Stack-Overflow QA's and a convincing DevOps/Deployment story (Java runs anywhere).

βœ”οΈ Avoid The Lock-In Trap

Most low-code / no-code platforms are a trap: they are looking to lock-in customers and revenue streams by persuading you to build your business with them as a dependency. Spring Bot is open-source so this is literally a non-issue.

Plenty Of Example Bots To Learn From

This project contains various example bots that were (originally) written at Deutsche Bank in response to real use-cases. However, we felt they were general enough to warrant Open-Sourcing and including as code to work from.

πŸ‘ All of these bots work on Microsoft Teams and Symphony, and are deployed into maven central as executable jars.

πŸ€– Poll Bot

A bot for running polls in a Symphony chat room. πŸ‘ Production Ready

πŸ€– News (RSS) Bot

A bot for feeding news into a Symphony chat room. πŸ‘ Production Ready

πŸ€– Reminder Bot

Reads the contents of a room and creates reminders based on future events mentioned therein. πŸ‘ Production Ready

Plenty of Tutorials / Demo Code

Inside the /demos directory you can see three example bots:

Tutorials for building these and the reference guide are found here: Spring Bot

License

Copyright 2022 FINOS

Distributed under the Apache License, Version 2.0.

SPDX-License-Identifier: Apache-2.0

Vulnerabilities

If you uncover vulnerabilities in this software, please contact help@finos.org privately

For Maintainers

Branches

There are two main branches:

Releasing This Project

In order to do a release:

  1. Changes.md
  1. On Releaser's machine:
# on spring-bot-master branch
mvn clean test -P symphony-ci
mvn versions:set -DnewVersion=<our breaking change no>.<minor version no>.<our-patch-version-no> -DartifactId=\*  -DgroupId=\*
mvn -DskipTests clean test source:jar javadoc:javadoc deploy -P symphony-release
mvn versions:set -DnewVersion=<our breaking change no>.<symphony-api-version>.<our-release-no+1>-SNAPSHOT -DartifactId=\*  -DgroupId=\*
# then push to git (spring-bot-develop branch)
  1. On oss.sonatype.org
  1. Perform release on github with same number