Alert admins when task usage exceeds threshold

Recipe ToolsMarketingWorkato

What it does

Every 6 hours, this automation fetches account details to check if task usage has breached the threshold. When usage exceeds the limit, it sends an email alert and optionally stops all workflows in the workspace.

Who it's for

Operations teams who need to prevent unexpected overage charges from runaway workflows.

How teams use this

Prevent unexpected overage charges

Monitor task usage every 6 hours and alert admins before hitting limits so runaway workflows can be stopped before incurring extra costs.

Auto-stop workflows at usage threshold

Set the stop workflows flag to true so all workflows halt automatically when task usage breaches the threshold, preventing further consumption without manual intervention.

Notify multiple stakeholders on breach

Add additional email addresses to the alert so finance and engineering teams are notified when usage exceeds limits, keeping all stakeholders informed.

How it works

  1. Check every 6 hours. This automation runs on a schedule every 6 hours to monitor task usage and account status.
  2. Fetch account task usage. Get account details to retrieve the available task count and allotted task limit for comparison.
  3. Compare usage to threshold. Check if available tasks fall below zero or if usage percentage exceeds the threshold set in environment properties.
  4. Alert admins when breached. Send an email to the admin and provided email address when task usage exceeds the threshold limit.
  5. Stop workflows if requested. If the stop workflows flag is set to true in properties, stop all workflows in the workspace to prevent further task consumption.