ValetinoBot

We are going to create a Slack bot, which will possibly be extended later to handle Twilio and Spark.

Setup

You need to be logged in your Slack web account(, you need permissions to create apps.)

Create a Slack app, set your app's name and select the workspace.

Next we need to select the features our bot will need:

  • Bot Users: Enable conversational interactions (Always Show My Bot as Online)
  • Slash Commands: Allow invocation of the commands we expose.
  • Interactive Components:

Get App credentials

Skills:

  • Are there any available at ?
  • Can I book a at for ?
  • How many of my are working from today?

Endpoints for slash commands:

  • POST https://3782770a.ngrok.io/slack/command/hello

Endpoints for Interactive Components:

  • POST https://3782770a.ngrok.io/slack/components
  • POST https://3782770a.ngrok.io/slack/components/options

Endpoints for Events:

  • POST https://3782770a.ngrok.io/slack/events

Now, install app to a workspace.

Slack Messages

You can preview how your messages would be formatted here

Resources

rasa

Integrating neo4j

docker run \
    -p 7474:7474 -p 7687:7687 \
    -v /usr/local/var/db/neo4j/bot/data:/data \
    neo4j

docker run --publish=7474:7474 --publish=7687:7687 --volume= /usr/local/var/db/neo4j/bot/data:/data neo4j