Skip to content
API explorerProductOpen console

Runbooks and approvals

A runbook is a procedure with steps, written once and run many times. It is the difference between an agent that can answer a question about a refund and one that can process it.

Runbooks can pause and wait for a person. Use that for anything with a real consequence: refunds, cancellations, anything that writes to a system of record, anything a customer would be upset to have happen twice.

An approval costs a few seconds. Not having one costs an afternoon, and occasionally a customer.

The test is simple. If a step went wrong at three in the morning, could you undo it by lunchtime? If not, put a person in front of it.

Writing one that survives contact with reality

Section titled “Writing one that survives contact with reality”

Make steps small. A step that does four things fails in four ways and tells you about one of them.

Make failure informative. A step that stops with “error” leaves the person who picks it up doing forensics. A step that stops with “the payment provider returned insufficient funds” leaves them doing their job.

Assume it will be interrupted. Deploys happen, connections drop. A runbook that cannot be resumed will eventually be a runbook someone finishes by hand while reading logs.

A runbook runs on Omazy unless you choose otherwise. Under Safety → Where it runs you can move it to the Claude runtime: Claude, on a runner pool in your own infrastructure, paid by your own model account. Approvals, budgets and the audit log work the same either way. See Run runbooks on your own Claude for when that is worth it and how to set it up.

Every finished run records why it stopped: it delivered, ran out of steps, hit its budget, or skipped an action nobody was there to approve. The run view shows it next to the cost.

These get conflated, so plainly:

Is
Event Something happened
Automation When this event happens, do that
Task A piece of work tracked to done, often raised by an automation
Runbook A procedure with steps, run deliberately or by an automation

An automation is a reflex. A runbook is a plan. Reach for the reflex when the response is always the same, and the plan when it has steps a person might need to watch.

Webhooks call your systems when something happens here. Two things save pain later: return quickly and do the work asynchronously, and make your handler idempotent, because at-least-once delivery means the same event will arrive twice on the day you least want it to.

Omazy CX documentation. One voice. Every channel. Always on.

Founded by Mosthofa Imran · imran@omazy.ai