7 Essential Slack Integrations Developers Should Know
Read on to learn how you can enhance your development workflow using integrations and bots through customizations in Slack.
Join the DZone community and get the full member experience.Join For Free
it certainly feels like slack is gradually becoming the standard for modern office communication. while you may argue that technically slack is no different than, say, irc, the polished experience is what makes it stand out in the crowd of messaging services. using less gentle words, slack is killing email for office communications and has built-in support for code snippets with syntax highlighting. boom.
in this post, we’re highlighting some of the most useful new workflows that slack is enabling. apart from the messaging features, it has a huge number of integrations available that let you customize it for the tools you’re working with. moreover, some more advanced triggers can also let you perform actions just like a terminal, and even automate them.
let’s see what’s it all about.
1. the essentials: github and bitbucket
“he who controls the source controls the universe,” or something like that . this one is a no-brainer. if you’re using github (or bitbucket) with your team, you want this integration in your slack. the way we’re using it in takipi is by having a #github channel with a stream of all the changes in our repositories so that anyone can get a quick overview of what’s going on.
github notifications in a slack channel.
the github integration posts messages about all commits, pull requests, comments, and issues. the messages include links to these events on github and also lets you see the images attached so that everyone can easily look at a new mockup. more active capabilities are available if you’d like to customize a bot to do more stuff, potentially just linking the slack to a terminal. an easier integration for opening github issues from slack is available through zapier .
bottom line: github notifications in a stream.
check it out! get started through the official integrations page .
2. sentry, airbrake, raygun, and error tracking
tools like sentry and airbrake report on exceptions and log errors that are happening in your application. after adding the appropriate code and build changes, these tools are able to get access to your errors, aggregate them, and report high-level stats.
bottom line: get notified when errors happen.
check it out!
3. replacing log files with a slack channel
traditionally, to identify and solve errors in production, companies had to rely on log files to know what’s causing them. this includes exceptions, logged errors, warnings, and http errors. this is a back-and-forth process that sometimes takes days, even weeks, to complete.
error analysis in takipi.
with takipi’s slack integration, you not only receive immediate alerts on errors in production, but each alert carries tons of actionable information without ever having to write it into the log. this includes the full stack trace and variable values at the moment of error. all of that is overlayed on the actual code:
takipi accessed from slack.
bottom line: instead of writing every error to your logs, get the variable values and exact state behind each error in production directly from takipi with slack.
4. codeship and other ci and cd tools
if you build it, they will come (and post notifications on your slack channel of choice). another area to look into is integrating your build process to send its notifications to slack.
codeship notifications in slack.
once configured, codeship sends messages on failed and successful builds to your slack channel. all of your team can easily get notified and stay informed of any change in your build.
bottom line: your build process can be viewed through slack.
check it out:
5. slack bots for fun and profit
starting off with the default slackbot, bot users in slack can become pretty complex and do literally anything that you’d like them to. when first joining slack, the friendly (yet pretty simple) slackbot will greet you and get you to complete the onboarding process. it can also set reminders for you and respond to custom-defined triggers. two of our personal favorites are triggers that we’ve set for the office wifi passwords and fetching the menu from one of our takeaway places for lunch.
in an interview with the wall street journal , slack ceo stewart butterfield compares the future of slackbot to the ai from the movie “her,” or siri for that matter. it would be awesome to see how this develops in the future.
hey slackbot, /remind me to [do something] in [some time from now].
but wait! slackbot is not the only bot in the neighborhood. there are actually tens of available bots, and you can also build one yourself. there’s even one that lets you run pokemon battles with your team and another one for playing poker over slack .
on a more serious note, the way this works behind the scenes is by spinning up a server that talks with slack’s real-time messaging api, which grants you read and write access to channels. the bot appears as a regular user on the user list and you can choose a custom name and set its photo. other than games, more practical use cases include things like stand-up meeting in slack, but the real magic hides in custom bots that you can hook automate your own processes.
bottom line: bots open up a world of options only limited by your own imagination. heaven ( or… time sink ) for productivity geeks.
check it out!
- the slack bots list
- github’s hubot and its slack adaptor , check out its extensive script list
- slack bots api docs
6. custom slash commands
these are quite similar to bots, just without the actual bot user so a bit simpler. custom slash commands let you define your own actions. one thing we pulled off is a slash command for ordering food straight from slack. yup. there’s a restaurant we like that doesn’t support online orders, so almost every day we’re sending them an email with everyone’s requests and it’s a bit of a hassle to collect all the orders. the new slash command lets you order the food you like, aggregates everyone’s requests to an email, and sends it out on a predefined deadline.
order food with a slash command.
in a nutshell, the way this works is by sending an http post or get request to a url of your choice. the request payload includes all the fields you need to execute your response:
slack slash command payload.
bottom line: automate all the things!
check it out! slash commands docs.
gipfect when you’re hungry.
well, if you’re into gifs like i am, this one is a charm. once you add the giphy integration, you get quick access to giphy’s “text-to-gif” feature. just type /giphy space cat and get…space cat! we just couldn’t build an essential integrations list without it.
the integration is built using giphy’s api , which is quite awesome on its own. pronouncing it jiff vs. gif still remains unresolved.
bottom line: let there be cats! beware of occasional nsfw content.
check it out! get giphy for slack through the official integrations page .
there are tons of integrations that we didn’t have a chance to mention. a great place to see a comprehensive list is on slackstack.io , which also has a section for developer-specific integrations . slack has entered our lives by storm and now we’re spending all of our hours in the office connected to it. the integrations we’re using are kicking it up a notch and making it even more useful, cutting down and centralizing all notifications and alerts. the next step of this evolution will probably include ai bots, and we’re super excited to see where it goes next!
Published at DZone with permission of Alex Zhitnitsky, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.