# Runbooks for AI Procedures: Preconditions, Rollback and Risk Before the AI Takes Action

> An AI that refunds orders or resets accounts needs more than steps. Add preconditions, the expected outcome, a real rollback and a risk level to each procedure, let the AI complete only low-risk runs where every check passed, and send risky ones to a person with the runbook attached. With an illustrative refund procedure, start to finish.

Source: https://www.ticketresolve.ai/blog/procedure-runbooks-ai-actions · Published 2026-11-13 · TicketResolve AI

**[Turning SOPs into AI procedures](https://www.ticketresolve.ai/blog/turn-sops-into-ai-support-procedures) lets AI take action: refund an order, resend an invite, change a plan. Steps alone aren't enough for actions that touch money or accounts. Operations teams have used runbooks for this for years.**

Here's what happens without one at a company that sells subscription meal kits:

- **The procedure** says: look up the order, issue a refund, tell the customer.
- **Tuesday:** a customer asks for a refund on a box delivered 45 days ago. The policy allows 30 days. The procedure has no check for that. The refund goes through.
- **Wednesday:** a customer who isn't the account owner (a flatmate) asks for a refund. The procedure doesn't check. It goes through.
- **Thursday:** a refund call to the payment provider times out. The procedure tells the customer "your refund is on its way". It isn't.
- **Friday:** finance finds three wrong refunds and no record of how to reverse them.

The steps were right. What was missing was everything around them: when it's safe to start, how to know it worked, how to undo it, and when a person should decide instead.

## First, the basics

- **A procedure** is a set of steps the AI can follow to do something, often calling tools such as Shopify or Stripe.
- **A runbook** adds the operational rules around those steps.
- **A precondition** is something that must be true before starting.
- **The expected outcome** describes how you know it worked.
- **A rollback** is how to undo the action if it didn't work or was wrong.
- **A risk level** (low, medium or high) says how much harm a mistake could do.
- **Requires review** means a person must approve every run.
- **A tool call** is one request to a connected system, such as "create refund".

**Why does this matter?** Actions are where AI support saves the most time and where mistakes cost real money. Runbooks let you automate the safe cases confidently and route the risky ones to people, with everything they need to decide quickly.

## The problem, in plain terms

1. **Procedures skip checks** that a careful person would make.
2. **Success is assumed**, not confirmed.
3. **There's no undo** when something goes wrong.
4. **Every action is treated the same**, whatever the risk.
5. **Failed tool calls look like success** to the customer.

## What a runbook adds to a procedure

- **Preconditions: what must be true before starting**, such as "order is within 30 days" or "customer is the account owner".
- **Expected outcome: how to know it worked**, such as "refund status is pending in Stripe".
- **Rollback: how to undo it if it didn't**, such as "cancel the refund within 24 h".
- **Risk level: low, medium or high.**
- **Requires review: whether a person must approve every run.**

## Using risk to decide who acts

- **Low risk, all checks passed, high confidence: the AI can complete it.**
- **Medium: complete it only when every tool call succeeded and confidence is high.**
- **High risk or marked for review: the AI prepares everything and a person approves.**

## Make rollback real

**A rollback written as "contact engineering" isn't one. Write the actual steps, and test them once. If an action can't be undone, mark it high risk.**

## In TR-AI

**Each procedure in TR-AI** (`/dashboard/procedures`) **has a runbook panel with preconditions, expected outcome, rollback, risk and "requires review". TR-AI only treats a run as confident when every tool call succeeded and review isn't required; otherwise the ticket goes to your review queue with the runbook attached.**

## A worked example, start to finish

Here's the meal-kit refund procedure with a runbook. The names, amounts and limits are illustrative.

**The runbook.** Farah, the support operations lead, opens the "Refund a box" procedure and fills in the runbook panel:

- **Preconditions:** the order was delivered within 30 days; the person writing is the account owner; the refund is under the per-ticket limit; no refund has already been issued for this box.
- **Expected outcome:** refund status is "pending" in Stripe and the order shows "refunded" in Shopify.
- **Rollback:** cancel the pending refund in Stripe within 24 hours, then re-mark the order as paid.
- **Risk:** medium.
- **Requires review:** no, for refunds under the limit; refunds above it use a separate high-risk procedure that requires review.

She tests the rollback once on a test order. It works.

**Tuesday 10:00. A normal request.** A customer writes from the account's email: a box arrived damaged yesterday. Preconditions pass. TR-AI issues the refund; Stripe returns "pending"; Shopify shows "refunded". Every tool call succeeded, confidence is high, review isn't required. **The AI completes it** and replies to the customer.

**Tuesday 11:30. Outside the window.** A customer asks to refund a box from 45 days ago. The 30-day precondition fails. TR-AI doesn't refund. **The ticket goes to the review queue** with the runbook attached and the failed check highlighted. An agent explains the policy and offers a credit instead.

**Wednesday 09:15. Not the owner.** Someone writes from a different email address about a flatmate's order. The account-owner precondition fails. **To the review queue**, where an agent asks the owner to get in touch.

**Thursday 14:00. A timeout.** A refund call to Stripe times out. Not every tool call succeeded, so the run isn't confident. **The ticket goes to review** instead of telling the customer it's done. Kai, an agent, checks Stripe: no refund was created. He retries, sees "pending", and confirms to the customer.

**Friday.** Finance finds no wrong refunds. One refund issued on Tuesday turns out to be a duplicate request from the same customer. Kai follows the rollback: cancels the pending refund within 24 hours and re-marks the order as paid.

**What changed:** the same procedure, the same tools, but no refund went out that a careful person wouldn't have issued, and the one mistake was undone in minutes.

## Five more real-world scenarios

### 1. A plan change

**Situation.** Customers ask to pause their subscription.

**How TR handles it.** Low risk, easy to undo: the AI can complete it when every check passes.

### 2. A large refund

**Situation.** A refund above the per-ticket limit.

**How TR handles it.** Use a high-risk procedure marked "requires review"; the AI prepares everything and a person approves.

### 3. An action that can't be undone

**Situation.** Deleting an account.

**How TR handles it.** Mark it high risk; a person always approves.

### 4. A missing expected outcome

**Situation.** A procedure has no way to check it worked.

**How TR handles it.** Add one, such as a status to read back, so success is confirmed instead of assumed.

### 5. A vague rollback

**Situation.** The rollback says "ask engineering".

**How TR handles it.** Write the actual steps and test them once, or mark the action high risk.

## Before and after

**Before.** Steps with no checks, refunds outside policy and to the wrong person, a "refund on its way" that wasn't, and no way to undo mistakes.

**After.** Preconditions checked first, the expected outcome read back, a tested rollback, risk deciding who acts, and failed tool calls sent to a person.

## How to tell it's working

- **No refunds outside policy.**
- **Failed tool calls** reach the review queue, not the customer.
- **Rollbacks are used** and work.
- **More low-risk actions** are completed by the AI with confidence.

## Who it's for

- **Support operations leads** who own procedures.
- **Finance and risk teams** who care about refunds and credits.
- **Agents** who review risky runs.

## How it fits with the rest of TicketResolve

Runbooks live on **procedures** and work with the **procedure builder**, **backend actions and approvals**, and **AI-drafted procedures**. Risky runs land in the **review queue**. **Decision traces** record what the AI checked and why it acted or waited.

## Why "every tool call succeeded" matters

Most action failures aren't dramatic. A request times out, a system returns an unexpected status, or a step half-completes. If the AI treats those as success, the customer is told something that isn't true. Requiring every tool call to succeed before a run counts as confident turns quiet failures into tickets a person looks at.

## Writing good preconditions

Start from the questions an experienced agent asks before acting: is this within policy? Is this the right person? Has this already been done? Is the amount within limits? Each becomes a precondition. Keep them concrete and checkable against data the procedure can read; "customer seems genuine" isn't a precondition, "email matches the account owner" is.

## Reviewing runbooks over time

Runbooks drift as policies and systems change. A refund window moves from 30 to 14 days, a payment provider renames a status, a new plan type appears. Look at each runbook when its policy changes, and once a quarter otherwise. The review queue is a good guide: if the same precondition sends many tickets to people, check whether the rule still matches the policy, or whether the procedure needs a clearer path for that case.

## Mistakes to avoid

- **Automating money and accounts** with steps alone.
- **Rollbacks nobody has tested.**
- **Marking irreversible actions** as low risk.
- **Telling customers it's done** before the outcome is confirmed.

## Do it in TicketResolve, step by step

**Where:** Procedures (`/dashboard/procedures`). **You'll need:** a procedure with the tools it calls connected. **Full guides:** [Runbooks: preconditions, outcome, risk and rollback for procedures](https://www.ticketresolve.ai/docs/guide/procedure-runbooks), [Procedures with live-data connectors](https://www.ticketresolve.ai/docs/guide/procedures) and [Custom API actions and approvals](https://www.ticketresolve.ai/docs/guide/backend-actions).

1. **Open the procedure** and its runbook panel.
2. **Add preconditions** an experienced agent would check.
3. **Describe the expected outcome** as something TR-AI can read back.
4. **Write a real rollback** and test it once.
5. **Set the risk level**: low, medium or high.
6. **Tick "requires review"** for anything a person must always approve.
7. **Watch the review queue** for runs that didn't qualify, and refine.

**How to check it worked:** runs that fail a precondition or a tool call go to the review queue with the runbook attached, and only confident, low-risk runs complete on their own.

## Frequently asked questions

**What is a runbook in customer support?**
A documented procedure with the conditions to check first, the expected result, how to undo it and its risk, so actions are repeatable and safe.

**Should AI be allowed to issue refunds?**
Within limits: low amounts, clear policy, preconditions checked, a rollback, and a person for anything above the limit.

**When can the AI complete a run on its own?**
When every tool call succeeded, confidence is high and review isn't required.

**What happens to high-risk runs?**
The AI prepares everything and a person approves.

**What if a tool call fails?**
The run isn't confident, and the ticket goes to the review queue.

**What makes a good rollback?**
Actual steps, tested once. If it can't be undone, mark it high risk.

**Where do I edit runbooks?**
In the runbook panel of each procedure.

**Do reviewers see the runbook?**
Yes, it's attached to the ticket in the review queue.

**Can a procedure require review every time?**
Yes, tick "requires review".
