Route Slack commands to Dayforce with conditional logic

BotsArtificial IntelligenceSales EnablementRecipe ToolsDeveloper ToolAPI IntegrationData ParserMarketingUtilities

What it does

When someone runs an individual control command in Slack, this automation validates the Trigger ID and routes the request to Dayforce. If the ID is missing, it prompts someone to generate one; otherwise, it processes the command and posts the result in Slack.

Who it's for

Operations teams who manage Dayforce access through Slack and need to validate commands before execution.

How teams use this

Validate commands before Dayforce execution

Check that each Slack command includes a valid Trigger ID before routing to Dayforce. Someone who lacks the ID receives a prompt to generate one, preventing failed requests.

Route HR requests through Slack

Extend this automation to an HR channel so team members can submit Dayforce employee updates from Slack without leaving the conversation. The same validation and routing logic applies.

Add email domain validation to commands

Include a condition that checks whether the requester's email domain matches an approved list before processing the Dayforce command. Only users from allowed domains proceed to execution.

How it works

  1. Receive individual control command. Someone runs an individual control command in Slack with parameters for the Dayforce operation they want to perform.
  2. Check for Trigger ID presence. Query Rest to determine whether a Trigger ID exists in the command. If missing, Slack displays a button so someone can generate one.
  3. Parse command structure. Extract the command details and modal submission data from Json Parser to determine which Dayforce operation to execute next.
  4. Evaluate conditional routing. Assess whether modal submission is present and valid using Js Eval. Route to the appropriate Dayforce operation or return an error message to Slack.
  5. Post command outcome. Reply in Slack with the result of the Dayforce command so someone knows whether it succeeded, failed, or requires additional input.