Sub topic 13
Measuring Time Saved and Quality, Then Iterating
This chapter assumes you have a working workflow with a versioned template, a fixed test set, and a quality checklist (covered in the chapters on evaluation and versioning). You should also be able to read short Python snippets. Here you will learn to measure whether the workflow pays off, and to improve it without guessing.
Why measure at all
A workflow that feels faster is not always faster. Drafts may arrive in seconds, but if an editor spends 40 minutes fixing them, you have moved the work and not removed it. Measurement answers two questions:
- Does the workflow save time once review and correction are counted?
- Is the output at least as good as what the team produced before?
Time saved without a quality check is a risk. Quality without a time check is a hobby. You need both numbers, taken from the same period.
Step 1: Record a baseline
You cannot show improvement without a "before" number. Measure the manual process first, ideally over three to five runs of the same task.
Record:
- Active minutes per run: the time someone is actually working, not the calendar time until it is done.
- Rounds of revision before approval.
- Defects found after publishing, such as typos, wrong links, or off-brand wording.
- Any outcome metric the task already has, such as open rate or click-through rate.
If you have no baseline, ask the people who do the task for an honest estimate and label it as an estimate. A rough baseline that you admit is rough is better than none.
Step 2: Measure the workflow's true cost
The workflow's time is more than the model call. Count every human touchpoint:
| Component | What to count |
|---|---|
| Preparing inputs | Gathering the brief, data, and links the workflow needs |
| Running the workflow | Usually seconds, but include any manual triggering |
| Human review | Reading, editing, and approving at each checkpoint |
| Rework | Rerunning because validation failed or the draft was unusable |
| Maintenance | Template updates, fixing broken integrations, re-testing |
| Usage cost | Model fees, if your provider charges per request |
Maintenance is the component most often forgotten. If you spend two hours a month fixing the workflow, spread that cost over the runs it supports.
Step 3: Log each run
Measurement is easy if every run writes one line to a log. Add this to the end of your workflow code, or have the reviewer fill it in. The example below uses only the standard library.
import csv
import os
from datetime import datetime, timezone
LOG_FIELDS = [
"timestamp",
"workflow",
"version",
"review_minutes",
"edit_level",
"validation_failures",
"published",
]
def log_run(path, workflow, version, review_minutes,
edit_level, validation_failures, published):
"""Append one run to a CSV file. edit_level: 0=none, 1=light, 2=heavy, 3=rewritten."""
is_new = not os.path.exists(path)
with open(path, "a", newline="", encoding="utf-8") as f:
writer = csv.DictWriter(f, fieldnames=LOG_FIELDS)
if is_new:
writer.writeheader()
writer.writerow({
"timestamp": datetime.now(timezone.utc).isoformat(timespec="seconds"),
"workflow": workflow,
"version": version,
"review_minutes": review_minutes,
"edit_level": edit_level,
"validation_failures": validation_failures,
"published": published,
})
log_run("runs.csv", "weekly_newsletter", "1.3", 12, 1, 0, True)Recording the template version on every row matters. Without it you cannot tell whether a change made things better or worse.
The edit level is a simple, cheap quality signal. If reviewers rewrite most drafts, the workflow is not working, even if the time looks good.
Step 4: Calculate net time saved
Use one formula and apply it the same way every month.
Net minutes saved per run = baseline minutes − (input prep + review + rework) − (monthly maintenance ÷ runs per month)
The following script reads the log and computes the figures.
import csv
from statistics import mean
def summarize(path, baseline_minutes, prep_minutes,
maintenance_minutes_per_month, runs_per_month):
with open(path, newline="", encoding="utf-8") as f:
rows = list(csv.DictReader(f))
if not rows:
raise ValueError("No runs logged yet")
review = mean(float(r["review_minutes"]) for r in rows)
edit = mean(int(r["edit_level"]) for r in rows)
failures = sum(int(r["validation_failures"]) for r in rows)
maintenance_share = maintenance_minutes_per_month / runs_per_month
workflow_minutes = prep_minutes + review + maintenance_share
saved = baseline_minutes - workflow_minutes
return {
"runs": len(rows),
"avg_review_minutes": round(review, 1),
"avg_edit_level": round(edit, 2),
"validation_failures": failures,
"net_minutes_saved_per_run": round(saved, 1),
"net_hours_saved_per_month": round(saved * runs_per_month / 60, 1),
}
print(summarize("runs.csv", baseline_minutes=90, prep_minutes=10,
maintenance_minutes_per_month=60, runs_per_month=4))With a 90 minute baseline, 10 minutes of prep, 12 minutes of review, and 15 minutes of maintenance share per run, the workflow saves about 53 minutes per run. That is a believable result. A claim of "95 percent saved" usually means someone left out review or maintenance.
Step 5: Measure quality
Quality has three layers. Use all three, because each catches different problems.
- Checklist score. Run your fixed test inputs and score each output against the checklist from the evaluation chapter. Report the pass rate, for example 18 of 20 items passed.
- Reviewer signals. Edit level, number of revision rounds, and how often a reviewer rejects a draft outright.
- Outcome metrics. Open rate, click-through rate, conversions, or support questions caused by unclear copy.
Outcome metrics need care. They move for many reasons: season, list quality, offer, send time. Do not credit the workflow for a rise in clicks unless you control for those factors. If you can, compare like with like, such as the same newsletter type in the same weeks of the previous year, or send the workflow version to a random half of a list.
Step 6: Choose targets before you look
Decide what "good enough" means before you read the numbers. Otherwise it is tempting to pick a threshold that your results already satisfy. A reasonable set of targets might be:
- Net time saved is at least 30 percent of baseline.
- Average edit level is 1.0 or lower.
- Validation failures are under 5 percent of runs.
- No increase in post-publish defects compared with the baseline.
The last target is a guardrail. A guardrail is a metric that must not get worse while you improve another one. Time saved can never justify a rise in errors that reach customers.
Step 7: Iterate one change at a time
Iteration is a loop. Each pass changes one thing, tests it, and keeps or discards it.
Changing one thing at a time matters because you want to know the cause. If you rewrite the template, switch the model, and tighten the brand context in the same release, a better result teaches you nothing you can reuse.
Reading the symptoms
Use the pattern in your logs to decide where to look first.
| Symptom | Likely cause | First change to try |
|---|---|---|
| High validation failures | Output format is unclear | Show a complete example of the required JSON and tighten the schema |
| Heavy edits on tone | Brand context is vague | Add two or three approved examples and a short list of banned phrases |
| Facts are wrong | Inputs lack the source data | Add the facts to the inputs and tell the model to use only those |
| Long review time | Reviewers must check everything | Add automated checks so humans see only flagged items |
| Good test scores but poor real results | Test set is unrepresentative | Add recent real inputs, including difficult cases |
| Quality drifts over time | Model or data changed | Rerun the full test set and compare to the last release |
Update the test set too
Every real failure is a free test case. When a reviewer catches a mistake, add the input that caused it to your fixed test set, with a note on what should have happened. Over time the test set becomes a record of everything that has gone wrong, and old problems cannot return unnoticed.
Common errors
- Counting only generation time. Review, prep, and maintenance belong in the total.
- Mixing time periods. Compare a month of workflow runs with a month of manual runs of similar volume and difficulty, not a quiet week with a launch week.
- Averaging away the bad runs. Look at the worst runs too. One draft per month that causes a public correction can outweigh hours saved.
- Chasing a single number. If you optimize time alone, quality slips. Keep guardrails in view.
- Not logging versions. You will not be able to explain a change in results.
- Treating the first month as typical. Early runs include learning time. Review trends over at least three months before reporting a final figure.
- Over-claiming. Report what you measured, the period, and the sample size. "Saved about 3.5 hours per month over 12 runs" is credible.
Reporting to your team
A short monthly note is enough. Include:
- Runs completed and the template version in use.
- Net time saved, with the formula and inputs.
- Quality: checklist pass rate, edit level, defects.
- What you changed and why.
- What you will test next.
Put it next to the changelog, so the history of versions and the history of results can be read together.
Knowing when to stop or retire
Iteration has diminishing returns. When improvements are small and the workflow meets its targets, move to monitoring. Also be willing to retire a workflow. If the task has changed, volume has dropped, or review time never fell below the baseline, the honest conclusion is that this task is not a good fit. Note why in your documentation, since the reason will help you choose better candidates in the next task audit.
Exercise
A team's newsletter workflow has a manual baseline of 120 minutes. Over 4 runs in a month, they spend 15 minutes on input prep, average 20 minutes of review, and 40 minutes total on maintenance that month. Average edit level is 2.4 and their target is 1.0 or lower. Calculate net minutes saved per run, then say whether the workflow meets its targets and what to change first.
Show answer
Maintenance share per run is 40 ÷ 4 = 10 minutes. Workflow time per run is 15 + 20 + 10 = 45 minutes. Net saved is 120 − 45 = 75 minutes per run, or 300 minutes (5 hours) for the month. Time looks strong, but the average edit level of 2.4 misses the target of 1.0, meaning reviewers are heavily editing or rewriting drafts. The workflow does not yet meet its quality target. Look at which edits reviewers make most. If they are about tone, add approved examples and banned phrases to the brand context. If they are about facts, add the source data to the inputs. Change one thing, test it on the fixed inputs, and compare edit level on the next runs.
Exercise
Click-through rate rose 15 percent the month after a team released version 1.4 of its email workflow. A manager wants to report this as proof the workflow works. Give two reasons to be cautious and one way to get stronger evidence.
Show answer
Click-through rate depends on many factors besides the workflow, such as the offer, the season, list changes, and send time, so the rise may not be caused by version 1.4. A single month is also a small sample and may reflect normal variation. For stronger evidence, compare the same email type in the same period of the previous year, or run a split test where a random half of the list receives workflow-drafted copy and the other half receives manually written copy, then compare the two groups.