Training · Module 04 · Free, no sign-up
Putting it in service
Passing the tests is where service begins: this module covers what keeps an agent correct, affordable and under your control once it acts on live cases.
- If the code, the keys, the model contract and the records are not yours, neither is the agent.
- Go-live is a series of reversible steps, each with exit criteria written before it starts.
- Uptime says the agent is running; only a checked sample of finished cases says it is right.
- Prompts, rules, thresholds and model version ship as one tested release, and every release can be undone.
- Cost per completed case, counted in full, decides each year whether the agent still earns its place.
Lesson 01 of 5 · 10 min
Whose account it runs in
If the code, the keys, the model contract and the records are not yours, neither is the agent.
- Code, prompts and rules in your repository; deployment and model access on your accounts.
- The agent has its own service identity, with only the permissions its actions need.
- The record of every step goes to your storage, under your retention rules.
- Handover is proven by a redeploy from your repository, not by a signed document.
If your own team cannot redeploy it from your repository with your credentials, you do not own it yet.
The full argument
Once the software acts on live cases, one question matters as much as accuracy: whose is it. Where it runs, who holds the keys, where the record of each case is kept. A pilot on the builder's platform is convenient. There is nothing to provision, and the builder fixes problems quietly. The convenience becomes a problem later, when the builder changes its prices, is acquired, or loses the engineer who built it, and you find that the prompts, the rules, the case set and the history of what the agent did all sit in an account you cannot open.
Owning it means four concrete things. The code, prompts and rule files sit in a repository your organisation controls, with its full history. The deployment runs in your own cloud account or on your own servers, under your billing. Model access runs on your own contract, so usage per case, the provider's retention terms and the bill are visible to you. And the record of every step, what was read, which rule applied, what was done, is written to storage you control, under your own retention rules. A builder can still operate the agent for you, in your accounts, with access you grant and can withdraw.
Give the agent its own service identity, never a borrowed staff login, and only the permissions its actions need. If it raises credit notes up to a limit, it cannot approve payments, and it cannot read payroll because payroll happens to sit in the same database. Instructions steer what the agent tries to do; permissions decide what it can do when it misreads a case. Keep secrets in your own secret store and rotate them on your schedule. Decide in writing which fields may leave your perimeter, and mask what the task does not need: matching an invoice to an order does not need the supplier's bank details.
Handover is documentation written for the person on call in eighteen months, not for the builder. It needs a runbook: how to stop the agent, how to send its cases back to people, how to restore the previous release, how to reverse each kind of action it takes. It needs a catalogue of the rules, each linked to its written source and its owner. It needs the known-outcome case set, with its results for every release. Architecture notes help the next builder. The runbook is what gets used at two in the morning.
The test of ownership is an exit drill, run before go-live rather than at the end of the contract. Ask your own team, or an independent party, to redeploy the agent into a clean environment from your repository, using only the documentation and your credentials, and to run the known-outcome case set against it. If they reach the same results, you own it. If they need a call with the builder to find a missing setting, you have found the gap while it is still cheap to close.
List every component your agent depends on: repository, hosting, model access, secret store, record storage, scheduler, monitoring. Beside each, write whose account it sits in and who could revoke your access tomorrow. Every line that names the builder or a personal account becomes a contract item, with a date by which it moves. Then book the exit drill for a date before go-live, not after it.
Lesson 02 of 5 · 10 min
Shadow first, then a slice of the volume
Go-live is a series of reversible steps, each with exit criteria written before it starts.
- Separate test and production, with separate credentials, and changes moved only by release.
- In shadow mode the agent decides on live cases but acts on nothing.
- Then a defined slice of live volume, widened in steps that add missing case types.
- Write exit criteria, stop conditions and who can stop it before each stage.
If a stage has no written exit criterion, the decision to widen it will be made by whoever is most impatient.
The full argument
The riskiest day for an agent is the first day it acts on live cases. Everything measured until then was measured on past cases, and live traffic brings what the case set did not hold: a new supplier format, a month-end spike, a system that answers slowly at nine in the morning. A staged rollout exists to meet those surprises while each one is still small, and to make every step one you can take back. Each stage answers one question, and the next stage starts only when the answer is written down.
Start with environments. You need at least two: a test environment connected to test copies or sandboxes of the systems the agent acts in, and production. They use separate credentials, so a test run can never write to the live ledger. Configuration has the same shape in both and moves from test to production by a recorded release, never by someone editing production by hand. If a system has no test copy, say so early: the actions the agent takes in that system stay attended until they can be tested safely.
Then shadow mode. The agent runs on live cases as they arrive, reads everything, decides, and writes down what it would have done, but acts on nothing. People keep doing the work. Every day, compare its proposed outcome with what people did and read the disagreements one by one. Some are agent errors. Some are the agent being right and a person being rushed. Some expose a rule nobody had written down. Shadow mode costs compute and reading time, and it is the only stage that tests live traffic without live consequence. An unread shadow log has tested nothing.
Then partial volume. Let the agent act on a defined slice: one entity, one supplier group, one case type, or a fixed share of arrivals routed at random. Random routing gives a representative mix; routing by entity or type confines a failure to one team. Either works if it is written down and every case's handler is easy to identify. Everything outside the slice stays with people. Widen in steps, and make sure each step brings in case types the previous slice lacked, because results only speak for the cases the slice contained.
Before each stage begins, write its exit criteria and its stop conditions: the outcome quality on sampled cases, the highest acceptable exception rate, the longest a case may wait, the cost per case, and the minimum time at that level. Write down who may stop the rollout at any hour the agent acts, and the exact step they take. Criteria written after the results arrive tend to fit the results. A rollout that has stepped back once and then moved forward again is working as intended.
Draft the rollout plan for one process as a table with four rows: test, shadow, first slice, full volume. For each row, write what the agent may do, who does the work alongside it, the minimum time at that stage, the criteria to move up, the condition that sends it back one row, and who can pull that trigger at night. Ask the process owner to sign it.
Lesson 03 of 5 · 11 min
Watching the numbers that matter
Uptime says the agent is running; only a checked sample of finished cases says it is right.
- Outcome quality: each week a person checks a random sample of completed cases.
- Exception rate: read a sudden fall as carefully as a sudden rise.
- Queue age, not queue size, shows when a deadline is about to be missed.
- Cost per case creeping up with no release behind it usually means retries or loops.
Every alert needs a threshold chosen on purpose, a named person and a written first action.
The full argument
Standard monitoring tells you the service is up, how fast it answers and how many errors it throws. All three can look perfect while the agent books every eighth invoice to the wrong cost centre. An agent fails differently from ordinary software. It keeps running, it returns plausible results, and the error surfaces weeks later as a complaint or an audit finding. Uptime says it is running; only a checked sample says it is right. So the monitoring has to cover outcomes, not only the machinery.
Four numbers carry most of the signal. Outcome quality on sampled cases: each week a person checks a random sample of completed cases against the written rules and records correct or incorrect, with a reason. Exception rate: the share of cases routed to people. Queue age: how long the oldest case in each queue has waited, against the time it must be settled by. Cost per case: model calls, steps and review minutes per completed case. Track each one by case type as well as in total, because a steady average can hide one supplier group failing every time.
Read movements in both directions. A rising exception rate usually means the input changed: a new form, a new response from a system. A sudden fall deserves the same attention, because an agent that stops abstaining may have stopped noticing what it used to catch. Queue age matters more than queue size: forty cases two hours old are fine, four cases nine days old may already have missed a payment date. A steady rise in cost per case with no release behind it usually means retries, loops or longer inputs.
Each alert needs a threshold chosen on purpose, a named person who receives it, and a first action written in the runbook: pause the agent, send cases to people, check the upstream system. An alert nobody owns is noise, and noise trains people to ignore the next one. Keep alerts few. Send slow trends to a weekly review, and keep out-of-hours calls for what cannot wait: a queue close to its deadline, actions failing in a target system, cost running away. The sampled check is a control like any other, so it needs an owner and a deputy.
On-call for an agent rarely requires an engineer who can diagnose the fault at night. It requires a person who can do two things at any hour the agent acts: stop it, and send its cases back to the people who did the work before. Diagnosis can wait for the morning; a growing pile of wrong actions cannot. If the agent acts at night and nobody can stop it until staff arrive, either it stops acting at night or someone is on call. Decide which in writing, before the first night.
Write the four numbers for your process as they would appear on a weekly sheet: how each is measured, where the data comes from, and the level at which you would stop the agent. Name the person who receives each alert and the first thing they do. Any number with no data source today is the first build item, ahead of any new feature.
Lesson 04 of 5 · 10 min
Every change is a release
Prompts, rules, thresholds and model version ship as one tested release, and every release can be undone.
- A release pins model version, prompts, rules, tool definitions and thresholds together.
- Re-run the known-outcome case set before every release, a provider's model update included.
- Rolling back the release stops new damage; it does not undo actions already taken.
- Rehearse both halves, restoring the release and reversing actions, and time them.
A change that has not been run against the known-outcome case set has not been tested, however small.
The full argument
An agent's behaviour is set by more than its code. It depends on the model version, the wording of the prompts, the rule tables, the definitions of the tools it can call and the thresholds that decide when it abstains. Change any one and the behaviour moves, sometimes far from the edit. One word in a prompt can change how the agent reads a date. A rule added for one supplier can change how it matches everyone else's invoices.
So ship them as one thing. Each release carries a number and pins the exact model version, prompts, rules, tool definitions and thresholds, stored together in your repository. Nobody edits a prompt or a threshold in production, including through a settings screen. The record of every case notes which release handled it, so a complaint in March can be traced to the configuration that decided it in January. Model providers update and retire versions on their own timetable: pin the version you tested, and treat their change as a release you test like any other.
Before every release, run the known-outcome case set: the past cases with verified outcomes you built before the agent existed, plus every failure found in live running since, each added with its verified outcome. Compare results with the current release case by case, not by headline score. A release that fixes twelve cases and breaks three has not improved by nine; read the three, because they may be the expensive kind. Keep the results on file with the release number. As the case mix shifts, add verified recent cases and keep the old ones.
Rollback has two halves, and plans often cover only the first. The first is the configuration: returning to the previous release should be one rehearsed step that takes minutes, which means the previous release stays deployable and nothing in the data has changed in a way it cannot read. The second is the actions already taken. Rolling back does not reverse the forty credit notes the faulty release raised this morning, or the letters it sent. For that you need the per-case record of what was done and a written reversal procedure for each kind of action, including a correction to each person affected where an action cannot be recalled.
Rehearse both halves before you need them. At a quiet hour, roll production back to the previous release and forward again, and reverse a handful of test actions using the written procedure. Time each step and put the times in the runbook. Repeat the rehearsal after any release that changes the structure of the records, because that is when the previous release is most likely to stop working. A rollback nobody has practised is an assumption, and assumptions tend to be tested during incidents.
List everything that shapes your agent's behaviour: model version, prompts, rules, tool definitions, thresholds, reference tables. Beside each, write where it is stored and who can change it without a release. Then write both halves of rollback for your process: the step that restores the previous release, and the procedure that reverses yesterday's actions. Estimate how long each takes, then book a rehearsal to find out.
Lesson 05 of 5 · 9 min
What it costs, and whether it still qualifies
Cost per completed case, counted in full, decides each year whether the agent still earns its place.
- Count the full cost per completed case: model calls, retries, hosting, review minutes, upkeep.
- Set a ceiling per case and a monthly budget, and review the trend every week.
- Compare with the manual cost for the same case mix, type by type.
- Once a year, re-run the five candidacy checks as if the process were new.
If this year's numbers would not justify the build today, narrow the scope or retire the agent.
The full argument
The business case was written with estimates. After a few months in service you have real figures, and they rarely match. The number that settles whether the agent earns its place is the cost per completed case, counted in full: model calls including retries, hosting and storage, the minutes people spend on routed cases and on the weekly sample, and the time spent keeping the rules and the case set current. Divide by cases completed, not cases received, or the cases that fell back to people make the agent look cheaper than it is.
Cost per case drifts upward for mechanical reasons. A longer prompt adds cost to every call. A new tool adds steps. A model change may change the price per call. A case that fails and retries is paid for twice, and inputs grow as senders attach more pages. None of this raises an error. Set a ceiling per case, at which the agent stops and routes the case to a person, and a monthly budget with an alert well below it. Review the trend weekly beside the other numbers, because a slow drift never trips a weekly level.
Compare against the right baseline: the same case mix done by people, including the time they spend correcting their own errors, measured the same way. Two distortions are common. An agent that settles the easy cases and routes the hard ones has an average that flatters it, so compare type by type. And review time is a real cost even when it sits in an existing team's budget. A pinned release does not become cheaper by itself; if the cost is to fall, a specific change must make it fall.
Once a year, and whenever a system or a rule changes substantially, run the five candidacy checks again as if the process had just been proposed. The rules must still be written and current, without exceptions piling up in people's heads. The systems must still expose their state, and the licence must still permit automation after the last renewal or replacement. The outcome must still be cheap to check. The volume must still repay the running cost, not the build, which is spent. The owners must still describe the process the same way.
The review has three honest outcomes: keep it, change its scope, or retire it. Narrowing the agent to the case types where it is accurate and cheap is often the right call. Retiring it is not a failure when the process no longer qualifies; it is the check doing its job. Because the code, the records and the known-outcome case set are yours, retiring costs little, and the case set remains to measure whatever replaces it.
Build the cost-per-case sheet for one process: every cost line, its monthly figure or your best estimate, and the number of cases completed. Put the manual cost for the same case mix beside it, by case type. Then put a date in the diary for the first annual review, with the five candidacy checks, the person who will answer each one and the evidence they will bring.
Recap · everything in one page
The decisions that keep it running
| If this is your situation | Do this | Because |
|---|---|---|
| The pilot runs on the builder's platform and go-live is next month | Move it into your accounts first | Moving it later means migrating live cases, records and credentials under deadline pressure. |
| The agent passed the case set and the sponsor wants full volume on Monday | Shadow mode, then a small slice | Live traffic brings inputs the case set never held, and a slice keeps a failure contained. |
| The dashboard shows full uptime and no errors | Check a random sample of outcomes | An agent can run perfectly as software while producing the wrong result on every eighth case. |
| A faulty release acted on cases this morning | Roll back, then reverse the actions | Restoring the previous release stops new damage; only the case records and a reversal procedure undo the rest. |
| Cost per case has doubled since launch and nothing is failing | Find the cause and set a ceiling | Longer prompts, retries and added steps raise cost without raising an error. |
| A year in, volume has fallen and the rules have been rewritten twice | Re-run the five candidacy checks | A process can stop qualifying under an agent, and narrowing or retiring it is a valid result. |
- The deployment, the model contract or the case records sit in the builder's account.
- Prompts, rules or thresholds can be changed in production without a numbered release.
- The known-outcome case set has not been re-run since go-live, model updates included.
- The only monitoring is uptime, response time and error count.
- Nobody can say how long a rollback takes, because nobody has done one.
Each of these means the agent is running on goodwill rather than on controls. Fix it before the next release, not after the next incident.
Exam · 10 questions drawn from 60
Check what you actually understood
Pass mark 7 out of 10. Every attempt draws a different set, so retaking it is worth something.
Your certificate
We will email it as a PDF you can attach to a profile. First name and a work address, nothing else.