<img height="1" width="1" src="https://www.facebook.com/tr?id=772492926248011&amp;ev=PageView &amp;noscript=1">
Enablo Radio (Spotify)
Mark Wyman on May 25, 2017 3:39:31 PM

So a few weeks ago at F8; Facebook announced that bots are now available in Workplace. Facebook Messenger bots aren't something new, but with Workplace you now have access to Group bots. These bots listen to what is happening in a Group within Workplace and can interact just like any user in the group. After the announcement, I needed to find an idea to test this out, and for the last few years with the people I have worked with, there has always been the desire to have a community for the music we love. So Workplace + Spotify + Bots = Enablo Radio, our music community!

First and foremost, for those of you who want to get their hands dirty or want their own Spotify radio we've open-sourced the code over on Github. https://github.com/Enablo/enablo-spotify

I won't be going into too much detail now, but for us, this was more about testing what an integration would look like, the effort involved, the moving parts and any watchpoints along the way. With little investment, we've been able to create something with the thanks of Workplace that is returning value straight away and gaining interest.

At a very high level, the main moving parts of the solution is the web service that receives the Facebook events. Then code that handles the incoming events from Facebook which looks either for the post of new Spotify links, by running a quick regex over the link and pulling out the Track ID, or the deletion of posts. Finally, the integration of the Spotify API to update our public playlist with our favourite songs. On the Workplace side, create a new integration, grab the application details which are used in the web service and configure the web hooks.

In the coming weeks, I will be going into much more detail in additional posts on how to bootstrap your first Workplace Group bot, so make sure you subscribe and start thinking about those innovative and disruptive solutions we can deliver thanks to Workplace group bots.

Subscribe to Email Updates