To deploy a reply based bot to your Slack workspace you will first have to go to channels, select Slack and then click Connect.




Name your channel in a way that makes it easier for you and your team to remember what the channel is for and then select the option "Reply Based Bot"





At this point you will have to log into your Slack workspace and configure a Slack Application so that you can create the webhook that the bot will use to connect to your Slack Workspace.

To get started, go to https://api.slack.com/apps and click Create New App.



Give a name to your App, select the workspace where you would like the App (your bot) to be connected and click Create App.




Congratulations, your app has been created and is now time to configure it the way you want. Let's start by adding permissions scopes.

To configure the permission scopes, click on Incoming OAuth & Permissions.




Scroll down to scopes and add add at least the "app_mentions:read" and "chat:write" to the Bot Token Scope and "Identity" as User Token Scopes.




At this point you will be able to install the app on your Slack workplace. To do so, scroll at the top of the page and click "Install App to Workplace".



Before installing the App, Slack will ask you to authorize the application to access your Workplace. Click allow to continue.



Success, you have installed the application in your Slack workspace. Now you will be redirected back to the setting page where you can copy the access token that Slack has generated for your app. Click copy and go back to BotSupply.



Paste the Bot User Access token in the Slack token field in the channel configuration settings page and then click save.

Congratulations, your channel is now authorized.



Next, go to Event Subscriptions and enable them by toggling the switch.




Paste the URL in the "Request URL" field and wait for Slack to verify it.



Once the URL is verified, click on Subscribe to bot events, and configure the events that you would like your bot to subscribe to and then click Save.

Note: As a minimum, the bot should at least be subscribed to "app_mention".



Slack will save the configuration and it will ask you to reinstall the app in your workplace. Click re-install your app, you will be asked to chose a channel again. Select a channel and click Allow.




Depending on wether you configured a test or a live channel, click save or publish to make your bot available in the channel and congrats...you'r bot is now accessible from slack.

To use your bot, go over to slack and open any channel or DM and write a message to the bot by @mentioning the bot name and writing a message in the same line.



The bot will reply as expected:



NOTE: if your bot uses quick replies to navigate the user between blocks like in the example above, you will have to enable interactivity in the Slack settings before the QRs starts working.

To enable interactivity, go to interactivity and shortcuts and click the toggle to enable interactivity and past the callback URL that you can find in the Slack channel configuration page of BotSupply in the request URL field.




Now all your quick replies will work on Slack