Slack
Post an alert from a workflow into a Slack channel.
A workflow can post an alert into a channel in Slack. The alert carries your message as you wrote it, the first rows as a table, and a link that opens the workflow in Flitch. There is no charge for these alerts.
Connect a channel
Slack gives a channel an address, called an incoming webhook, that anything holding it can post to. You create it in Slack and paste it into Flitch. Connecting needs an admin of the space.
Create a Slack app
Go to api.slack.com/apps, choose Create New App, then From scratch. Name it and pick your workspace.
Switch on incoming webhooks
In the app, open Incoming Webhooks and switch it on.
Add a webhook for the channel
Choose Add New Webhook to Workspace, pick the channel to post into, and allow it. Copy the webhook address. It starts with https://hooks.slack.com/.
Paste it into Flitch
In app.flitch.io, open Settings, then Alert channels, and open the Slack row. Give the place a name, such as the channel's name, paste the address and choose Connect.
Use it in a workflow
In a workflow, add Send an alert, choose Slack, and choose Post here beside the place.
The address is a secret
Anyone who has the address can post into that channel. Flitch stores it encrypted and does not show it again after you connect, so keep your own copy if you need it elsewhere. It is never written into a workflow's run history.
Flitch only accepts an address on hooks.slack.com, so a place called a Slack channel cannot be pointed somewhere else.
What the alert looks like
- the workflow's name in bold, then your message
- the first rows as a table, up to 20, and a count of any more
- your space's name and an Open in Flitch link
That is the plain alert. A designed one shows its own blocks, with charts and tables drawn by Slack itself: see Design the message.
Disconnect
Under Alert channels, open the Slack row and remove the place. A workflow step that posted there stops with a message saying the place is no longer connected. To stop Slack accepting the address at all, remove the webhook from your Slack app.
Troubleshooting
"A Slack incoming webhook address starts with https://hooks.slack.com/" The address pasted is not an incoming webhook. Copy it again from Incoming Webhooks in your Slack app.
"Slack no longer accepts this address" The webhook was removed in Slack, or the app was uninstalled. Add a new webhook and connect it again.
The alert goes to the wrong channel A webhook posts to the one channel chosen when it was made. Add a webhook for the right channel and connect that.