Slack

Overview

Use the Webhook delivery step in Flow Studio to post a flow’s run result to a Slack channel. Put the Incoming Webhook address you create in Slack into the step’s Webhook URL, and fill in a Slack message body with Load Slack example. This guide creates the URL in Slack and connects it to the step.

You will need:

  • A Slack workspace you can install apps into. If your workspace requires app approval, a Workspace Owner or app manager has to approve the app.
  • The channel that will receive the messages, for example #cloudops-notifications. To use a private channel, you must be a member of it.

The setup follows this order:

  1. Create a Slack app
  2. Turn on Incoming Webhooks
  3. Add a webhook to a channel
  4. Copy the webhook URL
  5. Enter the URL in Flow Studio and load the Slack example
  6. (Optional) Design the message in Block Kit Builder
⚠️
The webhook URL is a secret. Anyone who has it can post to your channel. Do not paste it into public places such as public channels, tickets, or public repositories. Slack revokes webhook URLs that it finds leaked.
ℹ️
Create your own Slack app as described below. The Incoming WebHooks app in the Slack Marketplace is a legacy integration; Slack has marked it as outdated and may remove it in the future.

1. Create a Slack app

The app belongs to the workspace you already use. It is not published anywhere; it only exists in that workspace.

Open the Create new app dialog

Go to Slack API: Your Apps and sign in to your workspace. The Create new app dialog opens.

Choose Blank app

Under Or start your own way, select Blank app and click [Continue]. The templates (AI agent, Starter app) are not needed for a webhook.

Name the app and pick the workspace

In Create from scratch, enter an App name that tells your team where the messages come from, for example CloudOps Notifications, and select the Workspace that has the channel. The workspace cannot be changed later. Click [Continue].

Skip scopes and events, then create

The next two steps, What it can do in Slack? and What it can respond to in Slack?, need nothing for a webhook. Click [Continue] on both without adding scopes or events. On Review your app, click [Create].

ℹ️
This dialog has no webhook option. You turn the webhook on in the app settings after the app is created, as described in the next section.

2. Turn on Incoming Webhooks

Open Incoming Webhooks

When the app is created, its settings page opens. In the left menu, select Incoming Webhooks under Features.

Activate Incoming Webhooks

Switch Activate Incoming Webhooks to On. The Webhook URLs for Your Workspace section appears further down the page.

3. Add a webhook to a channel

Add a new webhook

Under Webhook URLs for Your Workspace, click [Add New Webhook]. A screen opens that asks you to allow the app to access Slack.

Pick the channel and allow

Under Channel for webhook, choose the channel that will receive the messages and click [Allow]. This also installs the app in the workspace.

ℹ️
If your workspace requires app approval, Slack asks you to request the installation instead. Send the request, and once a Workspace Owner or app manager approves it, come back to Incoming Webhooks and add the webhook again.

4. Copy the webhook URL

You return to the Incoming Webhooks page, and the new URL appears in the table under Webhook URLs for Your Workspace. Click [Copy] next to it.

⚠️
The Sample curl request to post to a channel box above the table shows the full URL. Hide it before you share a screenshot or your screen.

The URL looks like https://hooks.slack.com/services/T00000000/B00000000/....

  • Webhook delivery accepts any https address, so it does not check that the URL is a Slack one. Make sure nothing was cut off when you pasted it.
  • One URL posts to one channel. To post to another channel, add another webhook in step 3 and use its URL.

5. Load the Slack example in Flow Studio

Add a Webhook delivery step

In Flow Studio, open a flow and add a Webhook delivery step. It is listed under Tasks when you add the next step. Recommended flows that report failures or events already include this step with the Slack example filled in, so you only need to enter the URL.

Enter the URL and load the Slack example

Select the step and paste the URL into Webhook URL. Then click Load Slack example above Body. The body is filled with the Slack message below, and the preview on the right shows the JSON with values filled with examples.

  • First line: the flow name in bold
  • Second line: what happened before this step (Summary)
  • Third line: Additional message. Nothing is added when it is empty
  • Last line: a run link, “CloudOps Flow Studio에서 보기” (View in CloudOps Flow Studio)

When the flow starts from a CloudOps event, an event screen link (“CloudOps 에서 보기”) is added before the last line as well. The link texts are in Korean; you can edit them in the body.

You can edit the filled body freely. If you click Load Slack example again after editing, the body you wrote is replaced with the Slack example, so a confirmation dialog appears first.

⚠️
Do not leave the body empty when sending to Slack. An empty body sends the CloudOps default body, and Slack does not accept JSON without text or blocks, so the step fails. Fill it with Load Slack example or write a body Slack accepts.

Run and check the channel

Run a manual flow with [Run]. For a flow that starts on a schedule or from an event, [Publish] it and wait for the next run. When the run reaches the Webhook delivery step, the message is posted to the channel.

6. Design the message in Block Kit Builder

To change how the message looks, build it in Slack’s Block Kit Builder and paste its JSON into the body. Block Kit is the format that describes a Slack message’s layout (sections, dividers, link buttons, and so on) as JSON, and Block Kit Builder is a Slack tool that builds that JSON as you arrange blocks on screen. You need to sign in to a Slack workspace to use it.

Design the message in the Builder

Arrange blocks in Block Kit Builder to design the message. Where a flow value should go, type a placeholder you can recognize, such as FLOW_NAME.

Copy and paste the JSON

Copy the JSON on the right of the Builder. An incoming webhook accepts it as is, in the {"blocks": [...]} form. Paste it into Body of the Webhook delivery step in Flow Studio.

Insert values in place of the placeholders

Delete each placeholder and insert a value in its place from Values to insert on the left, such as Flow name, Summary, Run link, or Additional message, by dragging it or with Insert. Check the filled-in result in the preview on the right.

⚠️
Do not type {{name}} yourself. Always insert values from Values to insert. A {{name}} you type stays a slot with no value linked, and the flow cannot be published.

Good to know:

  • In incoming webhook messages, only link buttons that open a URL work. Buttons and menus that send a response to a server need a Slack app, so clicking them does nothing.
  • Inserted values are interpreted as Slack markup (mrkdwn). Mentions (such as <!channel>) or link markup in the Additional message or the flow name are processed by Slack as written.
  • For the rules a Slack message body must follow, see the Block Kit documentation . CloudOps checks only that the body is valid JSON, not the Block Kit rules. If the body breaks them, Slack rejects it and the step fails.

Troubleshooting

SymptomWhat to check
No message arrivesOpen the run on the flow’s Runs tab and check the result of the Webhook delivery step. In Slack, check that the webhook is still listed under Webhook URLs for Your Workspace and that the app is still installed
The step failsCheck that the URL starts with https://hooks.slack.com/services/ and was not cut off. Slack does not accept an empty body, so fill it with Load Slack example. If you edited the body, paste it into Block Kit Builder to check it against the Block Kit rules
The flow cannot be publishedLook for a {{name}} typed into the body and insert a value from Values to insert in its place

For more about incoming webhooks, see the Slack documentation .

v1.11.0