Comment on page
One of the most common use cases for LogicLoop is to have your rule post a message to a Slack channel.
Here's an example of Slack notification template:
And here is what it will look like when it triggers an actual Slack message:
Slack has a 3000 character message limit. We recommend adding a link to a dashboard or results to prompt further investigation.
The most common way of interacting with the Slack API is by creating a Slack App Integration. Begin by navigating to the this tutorial on How to quickly get and use a Slack API token. Scroll down to the Create a pre-configured app section and click Create app.
Next, select the workspace that you want to interact with (read from or write to), and click Next. To give the app a recognizable name and description, click Edit Configurations and change the values of
name(you will need this later) and
description. Finally, click Next, then Create.
Under Install your app, click Install to Workspace, and select Allow. At the top of the screen you should see a message telling you to head back to the tutorial. Click the link in the message.
If the Install to Workspace button is disabled, you may need to add permission scopes to your app. On the left menu, under Features, you should see OAuth & Permissions. Click that, scroll down to the Scopes section and add the Bot Scopes that fit your use case.
If you scroll down to the section Using your token, you can find the API token populating a black box (starting with
xoxb). Save that token somewhere safe, you will need it.
We now want to write notifications to Slack. We will send
POSTAPI requests by using the Webhook Builder Action Destination. To do this in LogicLoop, select Destinations from the left side menu, click the New Action Destination button on the top right, and choose Webhook Builder from the menu.
Through Slack's interface, you will be able to choose a channel you want your webhook to post to.
Once you select a channel and click Add Incoming WebHooks integration, you can copy the Slack Webhook URL that is returned.
Once the Slack Action Destination is set up you can go to your rule's action page and add the Slack destination so that every time you rule runs, it will generate a Slack alert if the criteria is fulfilled.