Send annual leave modal from Slack to Success Factors

BotsArtificial IntelligenceSales EnablementRecipe ToolsEmployee Management

What it does

When someone clicks apply for leave in Slack, this automation opens a modal to collect the leave date. It retrieves planned absences from Success Factors and displays them so the person can see what time off is already scheduled.

Who it's for

HR teams who want to let employees request annual leave from Slack without opening Success Factors.

How teams use this

Request leave without opening Success Factors

Someone clicks apply for leave in Slack, sees their planned absences in a modal, and picks a date to request. The flow stays in Slack and Success Factors is queried in the background.

Route requests to manager approval

Add a step after the modal is submitted to send the request to the employee's manager for approval before it is logged in Success Factors. Only approved requests move forward.

Repurpose for Microsoft Teams

Adapt this automation to work in Microsoft Teams instead of Slack by swapping the Slack bot for a Teams bot. The Success Factors query and leave modal logic remain the same.

Check balance before submission

Include a condition that checks the employee's remaining leave balance from Success Factors and only allows the request if enough days are available. This prevents over-requesting leave.

How it works

  1. Click apply for leave button. Someone clicks the apply for leave button in the Slack HRBot app home view to start a new leave request.
  2. Open the leave request modal. A modal appears in Slack with a loading state while this automation retrieves the person's leave details from Success Factors.
  3. Fetch planned absences. Search Success Factors for the employee's time account and planned absences using an OData query to show what leave is already scheduled.
  4. Display leave options and history. Update the modal to show the leave date picker and the person's planned absences so they can choose a date that does not conflict.