Create a bot for your workspace

A bot is nifty way to run code and automate tasks. In Slack, a bot is controlled programmatically via a bot user token that can accesses one or more of Slack’s APIs. Read on to learn more about creating a bot for your workspace. 🤖

What can bots do?

  • Monitor and help process channel activity
  • Post messages in channels and react to members’ activity
  • Make channel messages interactive with buttons

Get to know bots

Bots can do a lot of the same things in Slack that regular members can:

Bots can only do what you program them to do in a specific channel. So, someone can’t “sign in” as the bot and do things that other members of your workspace can do in Slack. Bots also can't be set as Workspace Owners or Admins.

Create a bot

  1. From your desktop, visit the Bots page in the Slack App Directory.
  2. Click Add Configuration.
  3. Choose a username for your bot.
  4. Click Add bot integration.
  5. Add a custom icon for your bot if you’d like.
  6. You can also choose a real name for your bot: to do so, enter one under to First & Last name.
  7. Add a description that let’s your team know what this bot is used for.
  8. Click Save Integration.

Get the most out of a bot user

Let's dive deeper into the ways that bots can impact your workspace and help things run more efficiently.

👀  Monitor and process channel activity
A bot can help monitor and process activity in the public and private channels it’s been invited to, as well as messages sent to it via direct message.

📝  Post messages and react to members
In addition to receiving messages, a bot can also post messages in channels it’s a member of.

🎯  Make messages interactive with buttons 
When attached to a Slack app, bots can add interactive components (such as buttons) to messages that members can interact with. These interactive components trigger specific actions on your servers, so that you can perform certain tasks. Check out our blog to learn more.

Additional bot resources

To learn more about building bots, check out our Slack API documentation. We also have a number of other handy resources to help you along the way:

A beginner’s guide to your first bot
Bringing your bot into threaded messages
Slack Developer Kit for Hubot

Related Articles

Recently Viewed Articles