Send Slack message when someone runs a command

BotsCollaboration

What it does

When someone runs a command in Slack, this automation posts a message to a channel. The message confirms the command was received and processed.

Who it's for

Operations teams who need to acknowledge commands and keep channels informed of automation activity.

Apps used

How teams use this

Acknowledge commands in real time

Post a confirmation message when someone runs a command so the channel knows this automation received it. This keeps everyone informed without extra steps.

Route commands to a support channel

Send the message to a dedicated support or ops channel instead of the original one. This automation stays the same and only the target channel changes.

Include command details in the message

Add fields to the posted message so it shows the command name, who ran it, and when. This requires mapping those details from the command object.

How it works

  1. Someone runs a command. Type a command in Slack. This automation detects it in real time and starts running immediately.
  2. Post a message to the channel. Send a message in Slack so the channel sees the command was received and this automation is running.
  3. Set the channel topic. Update the channel topic in Slack Secondary to reflect the command status or outcome for visibility.