jtple.blogg.se

Slack bots
Slack bots













slack bots

Put in whatever description and hint you want, it doesn't matter, and fill out the Request URL with this:

slack bots

Once on this page click “Create New Command” and enter “/helpme” as the command. The final thing we need to do will assist us later in the tutorial and involves going to the “Slash Commands” page. Once you have entered this URL be sure to save it. Pick any subdomain you want and jot it down for future use. For now, I will assume you are also using localtunnel so the URL you enter will look like this: As I will explain later I use localtunnel in this tutorial to expose the bot publicly, but really you can use anything to do this, you could even host the bot on a server if you want to. This URL will be used to redirect your app when you install it through your locally hosted instance later on. First off, scroll down to the “Redirect URLs” section of the “OAuth & Permissions” page and select “Add New Redirect URL”. We now have 2 more things to do on this website for our initial setup. Once you have completed the above go back to the “OAuth & Permissions” page and click “Install App to Workspace”, this will install the bot and you should now be able to interact with it on Slack (note, you’ll need to redo this every time you add new Permissions/Scopes to the bot). Next up, navigate to the “Bot Users” page and click “Add a Bot User”, name the user whatever you want and flick the “Always Show My Bot as Online” switch (optional). First off, go to the “OAuth & Permissions” page and add “bot” and “commands” Oath Scopes under “Scopes” by clicking “Add an Oath Scope”. Once on this page click on “Create New App”, enter whatever name you want for this app and select your Workspace.Īnd BOOM! the app has been created, this part of the tutorial is done! Kidding…Ī few simple things need to be modified in our new bots configuration.

slack bots

Navigate to the Slack API website ( ) and go to the “Your Apps” section. I'm assuming that you, the reader, have a Slack Workspace setup for this tutorial, if not please set one up now. To Begin, we shall start with some setup on the Slack side of things. Setting up the bot on Slack’s API website















Slack bots