Dismiss Slack message buttons with a command
BotsArtificial IntelligenceSales EnablementRecipe ToolsDeveloper ToolMarketing
What it does
When someone runs the dismiss command in Slack, this automation finds and removes the message buttons. The channel sees a confirmation message in its place.
Who it's for
Operations teams who need to remove Slack message buttons without manual deletion.
How teams use this
Remove completed task buttons
Run the dismiss command when a task is done so the message buttons disappear and the channel sees confirmation. The team stays in Slack without switching apps.
Let support close ticket buttons
Invite the bot to a support channel so agents can dismiss message buttons tied to resolved tickets. The same flow works for a different team.
Include a reason for dismissal
Add a text prompt so someone can enter a reason when they run the dismiss command. The buttons close with that context stored in Slack.
How it works
- Run the dismiss command. Type the dismiss command in a Slack channel or direct message to remove the message buttons from view.
- Extract the message ID. Execute JavaScript code to pull the block_id from the message so Slack knows which buttons to remove.
- Replace with confirmation. Update the message blocks in Slack to remove the buttons and post a confirmation so the channel knows the buttons are gone.