The Slack API is made up of several different tools that enable you to build different kinds of Slack apps. In this guide, we'll cover the most common scenarios that products and services are building with Slack APIs. We'll also offer our best advice about how to save a bit of time and build the best possible Slack app for your needs.
Well, it depends! Our API tools let you extend Slack to play nicely with your team's workflow, external services, and other applications. But how do you figure out where to start, and which Slack APIs are best for you? You've come to the right place. Let us guide you through some examples that will help you pick the right tools for each job.
Maybe you run a newsletter service that sends notifications to publishers when a new person signs up for their mailing list.
Or you're an e-commerce service and want to let your users get summaries of sales from their online store, either automatically or on demand.
Whatever kind of service you run: You want people to know the things they need to know, as quickly, and as easily, as possible. And the Slack button wants to help you out with that.
Best way to do this: Use the Slack button. The new Slack button is the simplest way to offer your service to teams using Slack. A Slack button app gives you incoming webhooks and slash commands wrapped in OAuth. You write the commands and the webhook that your app needs, and configure the options for your users. Then your users can install it in just a few clicks. Over the next few months, we'll be expanding the capabilities of apps that can be added via the Slack button, so now is a great time to get started with them! Read more about how to implement the Slack button on your site.
Like most businesses today, you probably use multiple systems to keep things running, and they all have information you need throughout the day. Not all of those systems will have pre-built Slack integrations, and of the ones that do, they might not deliver the specific information that your team needs. In this case, you will need to create something for yourself.
Best way to do this as a custom feature for your team: With an incoming webhook. They're the simplest way to programmatically send messages into Slack. Simply send a JSON payload containing your message content to a pre-configured incoming webhook URL that your users set up for you, and Slack will turn it into a message for the right team, in the right channel. For more information and some examples, read our incoming webhook documentation.
Let's say you have a dictionary tool, or a bug tracker, or a task management app, and you'd like your users to interact with it from within Slack.
For example, you'd like a way for users to type
/todo list to get a list of tasks assigned to them, or
/todo add Finish writing API guide to create a new task for themselves. Throw in a username to assign the task to one of your teammates —
/todo for @mattMake some graphics for the API guide.
Best way to do this: Set up a slash command. This will let your users make queries or trigger external actions right from within Slack.
Lots of people are very excited about building bots these days. Bots allow you to create a conversational interface with any external service. It's not easy, but it's fun. To do this, create a bot user to connect to Slack and post messages, along with many other APIs.
These are just a few of the many different kinds of apps that you can build on top of Slack. For more ideas, follow @SlackAPI on Twitter or read our collection of Slack App-related articles on Flipboard.
To learn about future enhancements to our APIs, register as an API developer, tell us a bit about yourself and the things you'd like to build, and we'll make sure you're the first to know about all the exciting things happening in the future.
All of our official integrations go through a review process, whether they were developed in-house or by the third-party service. This process is currently a bit bottlenecked on our side, as we can only work on a handful of new integrations at a time. The good news is that we're making some changes to our integration platform that will give developers the ability to better manage and distribute their integrations in Slack, and to let our team review and approve them more quickly.
In the meantime, we recommend exploring our API tools to determine the type of integration you would like to build. Once you've got the hang of things and validated that the integration is useful for you and your users on Slack, tell us about your integration and we'll add you to our queue.
If you have questions not covered by this guide, or there's anything else you'd like to let us know about, you can contact us at email@example.com.