Step-by-step guide to creating your first Slack Bot

Step 1: Create a new App

a. Go to Your Apps page and click on “Create New App” button.

b. Once the app is created, copy the “Client ID” and “Client Secret”.

c. Now head over to your Bots Admin Panel and in your bot’s page, click on “Add Platform” button.

d. Select “Slack” and enter the “Client ID” and “Client Secret” that you just copied.

e. Now copy the “Callback URL” and go back to the Slack app page.

f. Under “OAuth & Permissions”, in “Redirect URL(s)”, paste the link you just copied.

g. Then under “Bot Users”, click on “Add a Bot User” and then again “Add Bot User”

h. Then under “Event Subscriptions”, set “Enable Events” to “On” and paste the “Callback URL” in the “Request URL” text box.

i. Now scroll to the bottom of the page and click on “Add Bot User Event” and add “message.channels” and “message.groups” and hit the “Save Changes” button.

j. Now finally, go back to your Bots Admin Panel, and in your bot’s page, click on “Authorize Bot” link and follow the on-screen instructions to authorize the bot.

Step 2: Congratulations!

Your bot should now be live 🙂

  • Was this helpful?
  • Yes   No