Testing Watson Conversations in Slack

Next week Ansgar Schmidt and I will give a session ‘How to write your own Slack Chatbots in Javascript‘ at codemotion. We will demonstrate how to connect Slack to Watson Conversation via the open source project botkit which leverages the Slack Real Time Messaging API.

This works well for production bots, but requires some configuration first. For testing purposes there is an easier way to create a Slack app with a bot user and to add this to a Slack team.

From the ‘Deploy’ page in the Watson Conversation tool you can choose to test your workspace(s) in Slack.

testing-slack3

Next you can choose your Slack team and authorize the connection via OAuth. This creates a Slack app and bot user.

testing-slack2

To interact with Watson you can invite the bot user.

testing-slack1

Note that there are currently some limitations and at this point this functionality is only for testing purposes.