A guide to building a Slack bot in Node

A guide to building a Slack bot in Node


Hi Campers! I wanted to share a project and tutorial on how to build a real time messaging Slack bot in Node.js. This is a great project if you’re working on back-end projects and want to familiarize yourself with websocket connections and promise based server side API calls. There are some libraries out there for connecting to the Slack RTM API but in this project you build the integration from scratch.

The guide
The repo

The completed bot connects to the New York Times API for news, the Google financial API for stock quotes, the Google Directions & Geolocation APIs for travel times, and the Uber API to calculate rates and times for routes. It’s really amazing how many integrations you can make with a simple a messaging bot.

Hopefully you find this to be a fun and rewarding project. Let me know if you have any questions or feedback!