Skip to content

Slack Message

  • Action
  • Web
  • Advanced mode

Posts a message to a Slack channel through an incoming webhook (in Slack: a Slack app with Incoming Webhooks on, Add New Webhook to Workspace, then copy its URL). Continues on Success when Slack accepts it, otherwise on Failed.

In the editor, press Space on the canvas to add a step, then open Actions > Web, or type its name. In Simple mode it's under Show all, and search finds it.

Settings

Webhook URL

A web address Required

The webhook's address (https://hooks.slack.com/services/...). Stored as a password: anyone who has it can post to the channel.

Starts as: empty Takes ${variables} and expressions Can come from another step's output Starts as a password

Message

Text

Slack's own formatting works: *bold*, _italic_, <https://example.com|links>. ${variables} are filled in.

Starts as: Message text Takes ${variables} and expressions Can come from another step's output

Sender name

Text

Shown instead of the app's name, where the workspace allows it.

Starts as: empty Takes ${variables} and expressions Can come from another step's output

Time limit (ms)

A duration More options

0 waits as long as it takes.

Starts as: 30000 Can come from another step's output

Where it continues

  • Success: Continues here when the answer has a 2xx status.
  • Failed: Continues here when it fails; the reason is in the run log.

Outputs

Values the step gives to the steps after it. In the Graph view, drag a wire from an output to another step's field.

Slack Message outputs
OutputGivesWhat it is
StatusCodeThe HTTP status Slack answered (200 when it worked); 0 when there was no answer.
ErrorTextWhy it failed; empty on success.

Good to know

  • Fields marked as passwords keep their value in the Windows password vault, never in the macro.

More in Web