Retrospective Bot is a Slack bot that records 'Good', 'Bad' and 'Try' things for the retrospective of the current scrum sprint.
It is a simple web app designed to be used as a Slack integration. Specifically, it responds to POSTs created by the Slack Slash Commands integration and responds with messages to Slack's Incoming Webhooks integration.
Retrospective Bot is a Flask app built to run on Heroku. To deploy the bot using Heroku's automated setup, see below. To deploy or upgrade the bot from the command line, read DEPLOY. To install the bot locally for development and testing, read INSTALL.
Set up a Slash Command integration. There are three critical values that you need to set or save: Command is the command people on Slack will use to communicate with the bot. We use
/retro. URL is the public URL where the bot will live; LEAVE THIS PAGE OPEN so that you can fill this in after you've deployed the application to Heroku, as described below. Token is used to authenticate communication between Slack and the bot; save this value for when you're setting up the bot on Heroku.
Set up an Incoming Webhooks integration. The first important values here is Post to Channel, which is a default channel where public messages from the bot will appear. This default is always overridden by the bot, but you do need to have one – we created a new channel called #retrospective-bot for this purpose. Save the value of Webhook URL; this is the URL that the bot will POST public messages to, and you'll need it when setting up Retrospective Bot on Heroku.
Click the button above to get started. In the form that loads, add a name for your bot in the App Name field, or leave it blank to have Heroku generate a unique name. You won't see this name in Slack, it'll just be part of the URL that Slack uses to communicate with the bot behind the scenes.
Paste the Token from the Slash Command integration into the
SLACK_TOKEN field and the Webhook URL from the Incoming Webhooks integration into the
SLACK_WEBHOOK_URL field. Now click the Deploy for Free button to deploy the bot!
When it's done deploying, click the View button at the bottom of the form. A Method Not Allowed error page will load, but don't worry about that. All you're looking for is your bot's URL, which looks something like
https://my-retrospective-bot.herokuapp.com/. Copy that URL, paste it into the URL field of the Slash Command integration page on Slack, and save the integration there.
And now you're good to go! Open up Slack and type
/retro help to start.
If you installed Retrospective Bot on Heroku using the Deploy on Heroku button and you want to upgrade it with the latest changes, follow these instructions.