Notify Slack when a 20-hour response button is clicked

Collaboration

What it does

When someone clicks a response button in Slack, this automation checks which button was pressed. It posts a message in Slack to confirm whether the task is assigned or marked done.

Who it's for

Operations teams who track task status through Slack buttons and need instant confirmation of each response.

Apps used

How teams use this

Confirm task assignment from Slack

When someone clicks the assigned button, the channel sees an instant confirmation message. The team knows the status changed without checking another system.

Confirm task completion from Slack

When someone clicks the done button, a confirmation message appears in the thread. The team has a record of when the task was marked complete.

Route confirmations to a status channel

Send the confirmation messages to a dedicated status channel instead of the original thread. Only the operations lead sees all task updates in one place.

Add task details to confirmation messages

Include the task name and assignee in each confirmation message so the channel has full context. Set the message format to only show which button was pressed and who pressed it.

How it works

  1. Listen for a button click. A new button click event arrives in real-time from Slack when someone presses a response button in a message.
  2. Check if assigned button was pressed. If the button name equals 20h_assigned, Slack posts a confirmation message in the channel so everyone knows the task is now assigned.
  3. Check if done button was pressed. If the button name equals 20h_done, Slack posts a confirmation message in the channel so everyone knows the task is now marked done.