Blog · Engineering

Why there is a person watching your workflow at 3am

Automations don’t fail at convenient times. APIs go down overnight, tokens expire on weekends and a vendor renames a field at 2:58am. The difference between a script and a production-grade automation is who notices, and how fast.

Key takeaways

  • Most automation failures are boring: expired credentials, changed APIs, bad input and rate limits. The dangerous ones are the silent ones.
  • Production-grade means four layers: logging, dashboards, alerting with escalation, and automatic recovery.
  • AI agents fail differently. They can return confident wrong answers, so they need output checks, spending limits and human approval at the edges.
  • Ask any vendor who gets alerted, how fast, and what happens to the items that failed.

Why automations fail at 3am

Automations run on a schedule or on events, which means they run when nobody is looking. Almost every failure falls into a short list of causes:

  • Expired credentials such as API tokens and OAuth sessions
  • Changed APIs or fields in a connected system
  • Rate limits and outages at a vendor
  • Bad input the workflow never saw in testing
  • Volume spikes that overwhelm a step
  • Model or provider errors in AI-powered steps

None of these are exotic. What turns them into incidents is the silent failure: the workflow stops, nothing alerts, and the team finds out days later when a customer asks where their order is.

The four layers of production-grade monitoring

  1. Logging and tracingEvery run records what came in, what each step did and what went out, so a failure can be traced to its cause instead of guessed at.
  2. DashboardsSuccess rate, volume, run time and queue depth in one place, so a trend such as rising errors is visible before it becomes an outage.
  3. Alerting and escalationThe right person is notified with context, and the alert escalates if nobody responds.
  4. Automatic recoveryRetries with back-off for temporary problems, a dead-letter queue for items that still fail, and the ability to replay them once the cause is fixed.

Together these are what engineers call observability: the difference between knowing that something broke and knowing why.

AI agents fail differently

A traditional script usually fails loudly: it throws an error and stops. An AI agent can fail quietly. It returns a fluent, plausible answer that happens to be wrong, calls the wrong tool or loops on a step. Monitoring agentic workflows needs a few extra habits:

  • Check outputs, not just whether the call succeeded, using schema checks, sanity rules and spot reviews
  • Trace every step and tool call so you can see where a multi-step run went off course
  • Set limits on spend, retries and loop counts so a runaway agent stops itself
  • Define what the agent may do and require human approval at the boundary, for example before money moves or customers are contacted
  • Re-test after changes to prompts or models, because behavior can shift

Human-in-the-loop is a feature

Making it fast and low-friction for a person to approve or correct an edge case is what allows the rest of the workflow to run unattended.

What a good alert looks like

Alert fatigue is real. If every blip pages someone, people stop reading alerts. A good alert is rare, specific and actionable:

  • Says what broke and in which workflow
  • States the impact: how many items are affected and since when
  • Notes what was already tried, such as automatic retries
  • Points to the next step or a runbook
  • Goes to a named person with an escalation path

What we set up for our clients

For automations we run for clients, the baseline is dashboards, error tracking and clear escalation paths, backed by on-call support so that when something breaks, we fix it fast. The goal is that your business keeps running while we handle the noise, and that your team hears about a problem only when it needs to. That is the difference between a script that works on the day it was written and a production-grade automation that keeps working.

If you own it outright, plan monitoring from the start. It is the part most often forgotten.

Questions to ask any automation vendor

  • Who gets alerted when it fails, and how quickly?
  • What is retried automatically, and what happens to items that still fail?
  • Can I see the logs and run history myself?
  • How do you catch wrong answers from AI steps, not just errors?
  • Who owns monitoring after handover?

If the answers are vague, you are buying a script, not a production system. Our workflow automation and AI agent projects are built with these answers in place from day one.

Frequently asked questions

What is observability in workflow automation?

It is the ability to see what an automation is doing and why: logs, traces, metrics and alerts that let you detect failures quickly and diagnose their cause, instead of finding out when a customer complains.

What does human-in-the-loop mean?

It means a person reviews or approves certain steps, typically low-confidence or high-impact ones, before the workflow continues. It lets you automate most of the work while keeping control of the risky parts.

How do I know if my automation silently failed?

You usually don’t, unless you have monitoring. Add alerts for failed runs and for missing runs, so a workflow that should have run but didn’t also triggers a notification.

Do I need monitoring if I use Zapier or Make?

Yes. These platforms provide run history and basic error notifications, which you should switch on, but business-critical workflows also need alerts routed to a named person and a plan for replaying failed items.

Free automation audit

Want someone watching your automations?

Tell us what you run today and where it hurts. We will show you what monitoring and recovery would look like for those workflows.

No obligation · No sales deck · We reply within one business day.

← Back to all field notes