Slack
Overview
Connect Superblocks to Slack to send messages and events into a Slack channel.
Setting up Slack
1. Create a Slack app
Start by creating a new app within Slack's app page and chose From scratch
. Give your app a name, choose the workspace that you would like it to be placed, and click Create App
.
Add any Features and Functionality that you'd like for your app. Here we're focusing on using Incoming Webhooks.
info
Building an internal app locally or behind a firewall?
To receive your app’s payloads over a WebSockets connection, enable Socket Mode for your app.
Enable Slack Incoming Webhooks, add a new webhook to your workspace, and select which channel your webhook should post to.
Copy the resulting webhook url.
Further details on sending messages using Incoming Webhooks can be found within Slack's documentation.
2. Create REST API integration
Select REST API from the integrations page and fill out the form with the following configuration:
- Display Name - Name that will be displayed to users when selecting this integration in Superblocks
- Base URL - Webhook URL copied from above
- Authentication - Authentication method used (default: None)
- Headers - Any additional headers to send
- Params - Any additional parameters to send
3. Set environments
After creating the integration, you can optionally set different settings for your Production and Staging environments. This will allow you (for example) to use a separate channel or workspace for staging and production notifications.
success
Slack Connected You can now to send messages/events to Slack in any Application, Workflow, or Scheduled Job.
Creating Slack steps
Connect to your Slack integration from Superblocks by creating steps in Application APIs, Workflows and Scheduled Jobs. For example, alert a channel when certain events have occurred within an Application, or post a link to a daily report uploaded to S3 via a Scheduled Job.
Use cases
Scheduled Jobs
Send a report to Slack with an overview of the day's user based events daily.