Tomás González Tomás González

Custom Workflows: Automate Everything

Create any infrastructure task that runs on schedule or via API - automate your routine DevOps work
Custom Workflows: Automate Everything

Today we’re shipping custom workflows in Cased: build any infrastructure automation you can think of, trigger it on schedule or via API, and let the agent handle the rest.

“Run database cleanup”

“Detect and fix infrastructure drift”

“Monitor post-deployment health and send status update.”

Just describe what you want automated. The Cased agent figures out the infrastructure commands, sets up the triggers, and executes everything reliably.

Teams spend months building internal tools for routine tasks. Custom deployment scripts. Cron jobs that break silently. Runbooks that go stale. Manual processes that someone inevitably forgets during vacation.

Why This Matters

Infrastructure work follows patterns. You deploy the same way every time. You scale based on predictable events. You clean up resources on schedules. You respond to alerts with the same playbook.

But setting up automation is usually harder than doing the work manually. You need to:

So teams end up with inconsistent processes, manual bottlenecks, and that one person who knows how everything works.

How Custom Workflows Work

Custom workflows let you automate any infrastructure task with three components:

Triggers: Schedule for time-based automation, or API calls to trigger workflows on demand.

Logic: Natural language description of what should happen. The agent translates this into actual infrastructure commands.

Execution: Runs in secure agent sessions with full access to your infrastructure, complete logging, and failure notifications.

Example scheduled workflow: “Clean up unused EBS volumes older than 30 days, but skip any tagged ‘keep’.”

Example API-triggered workflow: “Check Datadog metrics and Sentry errors for 5 minutes, then post health summary to #deployments.”

The agent writes the infrastructure commands, handles edge cases, and provides detailed logging for each execution.

Real Use Cases

Post-deployment monitoring: “Monitor Datadog and Sentry for 10 minutes, then send status update to #dev-team.” (triggered via API)

Resource management: “Clean up unused EBS volumes older than 30 days, but skip any tagged ‘keep’.” (scheduled weekly)

Cost optimization: “Scale down non-production environments.” (scheduled weekday evenings) / “Scale up non-production environments.” (scheduled weekday mornings)

Security compliance: “Rotate RDS passwords and update all connected services.” (scheduled monthly)

Maintenance automation: “Restart application servers during maintenance window.” (scheduled weekly)

The Bigger Picture

Custom workflows turn infrastructure maintenance from reactive firefighting into proactive automation. Instead of remembering to run cleanup tasks, you schedule them. Instead of manually triggering deployments, you call an API.

Most importantly, workflows are self-documenting. Your automation describes exactly what it does in plain English, so anyone can understand and modify it.

This is how infrastructure should work: describe what you want, schedule it or trigger it via API, and let the system handle execution reliably.

Want to automate your infrastructure tasks? Try Cased workflows today.