Slack has experienced a significant increase in its popularity and use since it first launched back in 2014. It has become the go-to collaboration tool for major enterprises of all sizes and industries. The ability to build your own slack apps and easily integrating with other systems makes it even more popular within the tech community. In this blog post, I explore the different features available within a slack app and how they can be leveraged with SAP Hybris Commerce using a quick and dirty prototype.
The yIntegration Slack App will be using the following features and functionality of the Slack API:
- Incoming Webhooks: A simple way to post messages to slack from external sources. In this case, I will be using incoming webhooks to post Hybris Cronjob status messages to slack.
- Slash Commands: This offers a convenient way to trigger actions for the yIntegration app directly from the slack message box. In this prototype, I have used slash commands to interact with the Hybris Stock Service and get stock updates for products.
- Bots & Events: We can create a bot user and bundle it with the slack app to interact in a more conversational manner. Event subscriptions are the primary way to interact with the bot events. I have this functionality to connect with the Hybris Stock Service in a more conversational manner.
integration app uses two slash commands to interact with Hybris Commerce which is explained below: