Approve or Decline Timeoff Request in Slack
Recipe ToolsBots
What it does
When someone submits a timeoff request with status Submitted, this automation fetches the request details and timeoff types, then posts an approval message in Slack. Someone can approve or decline the request from the message without leaving the channel.
Who it's for
HR teams who need to review and approve timeoff requests from Slack without switching to another system.
How teams use this
Review timeoff requests in Slack
When someone submits a timeoff request, the approval message appears in Slack with all details and buttons to approve or decline. The reviewer decides from the message and the request status updates automatically.
Route requests to different approval channels
Post the approval message to different Slack channels based on the timeoff type or the employee's department. The approval flow stays the same and only the destination channel changes.
Add manager name to the approval message
Include a lookup step to fetch the employee's manager name and add it to the Slack message so the approver knows who submitted the request. The message now shows manager context alongside the timeoff details.
Escalate requests that exceed policy limits
Add a condition to check if the timeoff duration exceeds company policy limits and route those requests to a senior approver channel. Only requests within policy go to the standard approval channel.
How it works
- Listen for new timeoff requests. When a message arrives in the PTO Approval Events topic with status Submitted, this automation starts in real time.
- Fetch the timeoff request. Call the Search PTO Approval Requests recipe to retrieve the full details of the submitted request so the approval message has all the information needed.
- Get timeoff type details. Call the Lookup Timeoff Types recipe to include the type name and rules in the approval message so the reviewer understands the request context.
- Post approval message in Slack. Send the request details to Slack with approve and decline buttons so someone can make the decision without leaving the channel.