Notify Slack when a job fails

Recipe ToolsBotsArtificial IntelligenceSales Enablement

What it does

When a job fails in a specified automation, this sends real-time alerts to Slack. It filters out draft and test jobs so the team sees only production failures that need attention.

Who it's for

Engineering teams who monitor automations and need alerts when production jobs fail.

How teams use this

Alert the team to production failures

When a job fails in a live automation, Slack receives an alert with the automation details. The team sees only production issues, not draft or test runs.

Exclude specific project automations

Filter out automations tied to certain projects so alerts focus on the automations the team owns. Add a condition to check the parent project ID before sending the notification.

Route alerts to different channels

Send failures from different automation groups to separate Slack channels so each team gets only the alerts they need. Change the Slack channel based on the automation name or tag.

How it works

  1. Receive notification of job failure. Workato App sends a real-time notification when a job fails in one of the specified automations.
  2. Get automation details. Retrieve the full details of the automation where the job failed, including its name and properties.
  3. Filter draft and test jobs. Check if the automation is a draft or if the job is marked as a test. Skip notification for either case so only production failures alert the team.
  4. Send alert to Slack. Post a message to Slack with the automation name and job failure details so the team can investigate the issue.