Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this Article

...

In any enterprise ecosystem, receiving notifications is critical to carry out your daily tasks. Emails are no longer the preferred method of receiving notifications, especially when the notifications involve time-critical issues. To fasten the decision-making process and deliver results, you can configure an Event Listener in the Slack workspace to cut through the clutter and get notified on items that need immediate attention. This use case demonstrates how you can use the Slack Snap Pack to route important events into a custom channel created for this purpose.

...

Understanding the Slack Pipeline

Prerequisites

  • Create an app in your Slack Workspace that listens to the Slack instance.
  • Set the required scopes for the app. In this Use Case, we set the Bot and User Token scopes to perform the following actions:
    • Add read channels, read messages, and read users.
    • Add write messages and read channels.

...

  1. Navigate to the Slack Apps page.

  2. Click Create New App.



  3. Select From scratch.

  4. Specify the App Name and choose a workspace to develop your app.


  5. Click Event Subscriptions in the left navigation pane.


  6. Enable the toggle for Enable Events.

  7. Subscribe to the events you want to listen to:
    • Bot events: Whenever a bot adds a user to the channel, we want to receive an alert.
    • User events: Whenever a user posts a message to a public channel, private channel, individual user, multiple users, or group of users, we want to receive an alert.

  8. Integrate the app with the channel. Follow one of the following ways to integrate the app with the channel:
    • Click the channel name to open the get channel details dialog. Navigate to the Integrations tab. In the Apps section of the Integration tab, click Add an App. Click Add next to the required app from the Add apps to channel_name dialog to integrate that app with the channel.
    • Alternatively, type /app in the messaging text box to get the option to Add apps to the channel. Select Add apps to the channel to open the Add apps to dialog. Click Add next to the required app from the Add apps to channel_name dialog to integrate that app with the channel.

  9. Provide the URL of the triggered task of the Parent Pipeline in the Request URL field. Configure a Pipeline with a Mapper Snap and create a triggered task to provide the Request URL in the Slack app.

...

Once the Slack app receives the challenge from the Parent Pipeline, the URL is verified. After the URL is verified which usually takes three seconds, the request triggers the Parent Pipeline and it receives the challenge as response.
Image RemovedImage Added


Note

The Redirect URL should correspond to the same URL used for event subscription for the Slack app to function with the Slack Snap Pack.

...