Slack Messages

Click here to create a Slack Integration. More instructions and information can be found on the Slack Integration page.

To incorporate Slack messages into your Notebooks, you can use the "Slack message" block. This enables direct communication with your Slack channels from your PushMetrics workspace.

2. Connecting to Slack:

To enable Slack messaging within PushMetrics, establish a connection between the two platforms through either the Slack App or Webhook integration.

A) Slack App:

  • Navigate to “connections” -> “add a new connection” -> click “Add to Slack”

B) Webhook:

  • Go to “connections” -> “add a new connection” -> “Webhook”
  • Click “To generate a Slack app with webhook URL, click here”
  • Choose a workspace, click “Next”,” Create”, and “Install to Workspace”
  • Select a channel (e.g., “#general”), click “Allow”
  • Go to “Incoming Webhooks” under “Features,” copy the webhook URL, and paste it into the “Slack Webhook URL” field.

3. Channel Name:

In the Slack block, specify the channel name ("#general"), channel ID (e.g., C01TVGG0H8C), or personal ID (e.g., #US14101US) to determine where the message will be executed in your Slack server.

To find a channel's ID:

  • Open Slack desktop app or visit your workspace via the web.
  • Navigate to the desired channel.
  • Right-click on the channel name in the top-left corner, then select "Copy Link."
  • The "CXXXXXX" portion at the end of the link is your Channel ID.

To find a member's ID:

  • Open Slack desktop app or visit your workspace via the web.
  • Go to the member's profile.
  • Click on the "More" button and select "Copy member ID."

4. Attachments

In Slack blocks, you can generate various types of files that serve as Slack "Attachments,”. Different blocks can produce different kinds of attachments for Slack. For instance, SQL blocks can create XLSX and CSV files, while Tableau exports generate PDF and PNG files.

Once you send the attachment, your designated channel will receive a message containing the attachment. The appearance of each attachment may vary, for example, it could be displayed as a CSV file or a Tableau export.

5. Text Editor

Edit text within the text editor menu, similar to any word editor.


Edit the JSON output of the Slack message using the JSON menu. You can use the Slack Block Kit Builder to customize Sections, Actions, Dividers, Images, Context, and Inputs.

7. Running Slack Request Vs. Previewing

Sending the Slack request will deliver the message to the designated channel, while previewing allows you to see how the Slack request would look without actually sending it.

8. Jinja in the Slack Text Editor:

PushMetrics supports Jinja in the Slack text editor, allowing dynamic content in messages. You can incorporate variables and results from SQL tables to create personalized and data-driven messages.