Hello Steemians! On this first part of the tutorial, I am going to show you how to set up your slack bot using Glitch free hosting and Howdy's BotKit.
1. Create a Slack account, if you already have one login to your workspace.
![1st.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmf45zsKCXfrfL2P1ZRzfFJwbXpUo8rKdGv7fS5tDFnjP8/1st.png)
2. Look on the red square, click where it says Apps, on the new window the upper left corner click on Manage apps and then click Build and then click Start Building.
![3rd.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmXvLV75pDzC56ZQZbuxmLpJgVSsV1kLp5CYLNfezRXtji/3rd.png)
![4th.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmaEFRLXJeQ4Vhx1AMeG3V75WbYs4p4rxPRerYVgofCJrs/4th.png)
4. In this tutorial, I am going to name it Steemit Bot, so choose the name for your app, choose your workspace and click create app.
![5th.png](https://images.hive.blog/768x0/https://steemitimages.com/DQmUVt4R6zwpK23eipBZkDCdm6XbjoKVXHwQKNrUTGsxomM/5th.png)
5. On the following window choose the option "bots" then add bot user.
![bots.PNG](https://images.hive.blog/768x0/https://steemitimages.com/DQmNVd8DWTUKuRFTghCvWTcGNPeoKrmnynAMRcZuqRkoxXQ/bots.PNG)
Name it and make sure "Always Show My Bot as Online" is enabled, then click on add bot user.
![usr.PNG](https://images.hive.blog/768x0/https://steemitimages.com/DQmauSLHGckvB4GcagxYkNR6SuPPHisi4DApkPW6HHDfYKX/usr.PNG)
6. On settings tab choose install app and click "Install app to workspace.
![install.PNG](https://images.hive.blog/768x0/https://steemitimages.com/DQmR7iCh9jXzRUtXNspgGnHxfXHie93FMtdcK8P9qjbLJMy/install.PNG)
you should see an authorization screen, click on authorize
![auth.PNG](https://images.hive.blog/768x0/https://steemitimages.com/DQmZEQQNnWE7W6KP98768hMrvZp65163ui95UsDCgigTUQY/auth.PNG)
7. Now go to the Botkit Studio and set up your user or connect with GitHub
![botkit.PNG](https://images.hive.blog/768x0/https://steemitimages.com/DQmcuyc79c821vb6k3mUcpgNoJPjXdbES3ymJxXF5NKo9B9/botkit.PNG)
after you logged in click on new bot, choose slack and then Deploy
![build.PNG](https://images.hive.blog/768x0/https://steemitimages.com/DQmeBUBghx4QM54875U3B7e7BKfHiUdRtuBp9iSz8AMh7yC/build.PNG)
Choose the Glitch hosting option and then click next.
![](https://images.hive.blog/768x0/https://steemitimages.com/DQmQ3PQyPsmQ3CtzfnG3kZBiVbnbqcJdDvqyt3pxgHyLSjo/image.png)
8. Is going to ask you for the app Keys.
![](https://images.hive.blog/768x0/https://steemitimages.com/DQmb2K9BwnJu72ATCxeLPVbuoMUcPBrHgs8vZfcPo6Wsszc/image.png)
They are stored on your Slack Apps Page that we were before, is located on Settings tab - Basic Information
![](https://images.hive.blog/768x0/https://steemitimages.com/DQmV6kYjFnUo44h3izSDcKFo5WrA8xm9NP7Lf5dMehwJt42/image.png)
Copy and paste your credentials and click continue and start Glitch Deploy
![](https://images.hive.blog/768x0/https://steemitimages.com/DQmaVwB7gS5SPhf86CdSqZxVUTgxvzitAV4gbhrGUvjqxGq/image.png)
9. Is going to open a new tab with the glitch server, let it load until it says "Show Live" on the upper left corner.
![live.PNG](https://images.hive.blog/768x0/https://steemitimages.com/DQmUZyLqPLR979ub7PrUtM4qXdQsM9wbYK3Cv4xwqipfnFL/live.PNG)
You should see the following page, but don't click on "add to slack" yet, we need to copy the URL for your app wich in my case is https://glory-cabinet.glitch.me/ but yours will be different
10. Go back to your slack app manager, go to Features Tab - OAuth & Permissions
![](https://images.hive.blog/768x0/https://steemitimages.com/DQmW45JwZ4RcGJgXKHMqXAyqiKy1B9AfYjSBPJBBdWSWCqy/image.png)
Go to Redirect URLs and paste your app URL followed by "oauth" and the end of the link, in my case mine will be https://glory-cabinet.glitch.me/oath, click add and save URLs.
![](https://images.hive.blog/768x0/https://steemitimages.com/DQmYbkyWRetsE4VtBc1GPNzYmFpPPMjg3hJpLEQcXbYcdNT/image.png)
11. Now go to Features - Interactive Messages.
![](https://images.hive.blog/768x0/https://steemitimages.com/DQmRxUPNzEuHZZiAKHqaf6Hugh4wBP7uwQRrrexFokyf9yW/image.png)
Click enable interactive messages, paste your server link in the Request URL field and add /slack/receive at the end, mine looks like this https://glory-cabinet.glitch.me/slack/receive, then click on enable.
![](https://images.hive.blog/768x0/https://steemitimages.com/DQmUunepwcdhmZNdDFjGKrXQGp9ksewCTGqx6BXxRhwT8B3/image.png)
12. Now go to Features - Event Subscriptions.
![](https://images.hive.blog/768x0/https://steemitimages.com/DQmaNnkAwV5pSYWjNSXu897w1fRG1k9zLrzBRu6xzJ5sQmh/image.png)
Enable the event subscriptions and paste the same link from previous step
![](https://images.hive.blog/768x0/https://steemitimages.com/DQmSiULVwWKt8xMJF2XQRfhCQRK5psEKhwizSQQvf4w9LS4/image.png)
13. Scroll down to Subscribe to Bot Events, and add the following four:
- message.channels
- message.im
- message.mpim
- message.groups
And save your changes.
14. Go to your app URL refresh the page and now you can click on "Add to Slack"
It is going to ask you for permission, just click authorize.
You should see the following message
Go back to your slack messenger and your Bot should be waiting for you!