Skip to content

Latest commit

 

History

History
48 lines (26 loc) · 2.13 KB

README.md

File metadata and controls

48 lines (26 loc) · 2.13 KB

KoreAI Bridge

This is a Spring Boot App that acts as a middleman between a Symphony bot and a KoreAI bot, allowing you to expose your KoreAI bot as a bot on Symphony. Kore.AI is a low code/no code environment for building chat bots.

KoreAI Architecture

It is intended that you can deploy this bot as-is, either standalone or clustered (see configuration of Shared Stream), providing just configuration to get it to talk with Kore AI.

It is possible to include multiple KoreAI bot/symphony bot pairs in the configuration, allowing the bridge to wire up multiple bot-pairs.

Template Examples

The Kore.AI Bridge bot is capable of converting various different Kore AI responses into Symphony Message ML. In addition, you can add extra templates for new content types, if Kore AI decide to produce any more.

Carousel Quick Reply Mini Table

Steps To Set Up

  1. Create Your Kore AI Bot.
  2. Create a Kore AI webhook channel.
  3. Configure The KoreAI Bridge Bot (see below)
  4. Run it.

Configuration

JWT Token

Follow instructions here to generate a JWT token from your application secret.

Application.yml

You will need to add these details along with all the other bot connection details into your application.yml file. You can find a sample in application-example.yml.

Troubleshooting

1. JWTs

We had a lot of trouble getting a valid JWT for our Webhook. Make sure you create the channel with HS256 format, and use jwt.io to create the token. We had to add a subId (with some random number) like so:

JWT Creation

2. Missing Responses

When you set up your bot, you need to make sure that you tell it to publish the content to the Webhook channel - it's possible in KoreAI for the bot to respond with different messages on different channels.