Configure Slack Bot

Once deployed, first step is to enable the events subscrption. Go to "Basic Information" and click on "Events Subscription" under "Add features and functionality" section.

Toggle the "Enable Events" switch and then paste the bot endpoint in the Request URL textbox in the following way:

Next, subscribe to the events relevant to your bot. In this case, I've subscribed to event that will send a callback to the bot for direct messages.

Go back to "Add Features" section and click on "Bots" to add a bot user.

Click "Add Bot".

At this point, we have successfully configured the slack bot. Next step is to activate distribution for the bot to be shared with teams or submit your app to the Slack App Directory.

Improve this article