PushMetrics comes with a Slack integration that makes it easy to send files and messages to any public or private Slack channel, as well as to individual users.
The Slack task has the following inputs:
You can send to any public or private channel of a Slack workspace, as well as individual users.
general
or random
) with or without #
.C05V6CVV893
)@
(e.g. @richard
) C05V6CVV893
), to be found on the user's profile./invite
and select "Add apps to this channel". Then, select the PushMetrics app from the list.my-private-channel
) or channel ID (e.g. C05V6CVV893
).You can attach files generated by other tasks (e.g. SQL queries or charts) and upload them to Slack using the .export()
function.
Once you send the attachment, your designated channel will receive a message containing the attachment.
The Text Editor allows you to create simple, formatted text messages.
It supports Jinja, allowing dynamic content with data from upstream tasks. You can incorporate variables and results from SQL queries to create personalized and data-driven messages.
The JSON editor allows you to create more advanced Slack messages using Slack Block Kit UI elements.
It also supports adding Jinja for dynamic messages.
Slack Block Kit is a UI framework for designing and building rich, interactive messages in Slack. The Block Kit consists of "blocks", which are essentially building blocks you can stack vertically to create complex layouts. These blocks can be used to present information, capture user input, and more.
There are several types of blocks available, such as
Slack provides an online tool called the Block Kit Builder. This tool allows you to design, preview, and prototype your Block Kit layouts. It's especially helpful for visualizing how your blocks will look and behave in Slack.
PushMetrics provides a link below the JSON input that opens your current message in the Block Kit Builder: