13 min read

Automating Support Case Investigation With AI, for Under $3 a Case

We built an AI agent that investigates technical support cases end to end. Real numbers on cost, speed and accuracy, how we tested it on solved cases, and where it still falls short.

A hard support case arrives as a customer’s description, some attached files and a deadline. The answer is usually somewhere in those files, often thousands of lines in, next to a hundred other messages that look just as alarming and mean nothing. Finding it is most of the job.

At Line Media, we built an AI agent that does that first round of digging. A support engineer opens a case, clicks one button, and 12 to 14 minutes later has a written investigation: what is wrong, the evidence for it, what to do next, and whether the case can be answered now, needs more information from the customer, or should go up a level.

That gives every case a full read of everything attached to it, for the price of less than four minutes of an engineer’s time. Few support teams have the hours to do that for every case. This post covers how it works, what it costs, how long it takes, how we tested it on cases that had already been solved, and the mistakes it still makes.

12-14 minfor a full investigation, at any hour
< $3per investigation, on average
$62-85for a level 2 or 3 ticket handled by people (industry benchmark)
4 minof an engineer's time costs as much as one investigation

What the AI support agent does

The client is an enterprise software company. Its support team handles cases at every level: first-line questions, escalations to specialists, and the hard ones that need a senior engineer. The agent runs the same investigation on all of them.

When an engineer starts it, the agent reads:

  • the case and every comment on it,
  • the files the customer attached, including large diagnostic files full of system logs and configuration,
  • the customer’s earlier cases, and similar cases from other customers,
  • the product documentation and release notes.

It hands back a written investigation: the issues it found, the likely cause of each, the evidence (quoted log lines, file names, times), the steps it recommends, and a verdict. The engineer reviews it, can question it in a chat next to it, and decides what goes to the customer. The agent can read everything and change nothing. Nothing is sent to a customer automatically.

New case any level, L1 to L3 Preparation files opened, key facts up front Research loop pick a tool, read, repeat Investigation cause, evidence, steps, verdict Engineer reviews, asks, decides Case history Similar cases Knowledge base Attachments Log explorer Release notes Web search Seven kinds of tool, about a dozen tools in all. The engineer sees each step on the case page while it runs, then gets the finished investigation and a chat to question it.
An engineer starts the run with one click and reviews the result.

The tools: what the agent can look at

The agent works in a loop. In each step the model picks one or more tools, reads what comes back, and decides what to check next. When it has enough, it writes the investigation. The table shows the seven kinds of tool; some kinds have more than one tool, about a dozen in all.

ToolThe question it answers
Case historyWhat has the customer told us, and what have engineers already tried?
Similar casesHas another customer had this, and what was it?
Knowledge baseWhat does the documentation say about this feature or this error?
AttachmentsWhat is in the screenshots, documents and exports the customer sent?
Log explorerWhere in these logs does this error appear, and what happened around it?
Release notesDoes a newer release fix this?
Web searchIs this a known problem in a third-party component?

Two things are prepared before the agent starts, so it does not have to go looking for them. First, the system works out which version each system runs and whether a newer release fixes known problems in it. Second, it scans the logs for error-like lines, groups the lines that have the same shape, and counts them. Both go into the agent’s opening message. A few kilobytes along the lines of “this error appears thousands of times, this one twice, both starting on the same afternoon” save the agent dozens of steps of searching.

How long an AI investigation takes

On the model we started with, half of all investigations in a month of production use finished within about 12 minutes. A case with diagnostic files attached took about 13; a case without them took about 4. Part of the difference is opening the files; most of it is the extra steps the agent spends reading them. The newer model we moved to is about 15% slower, so a typical investigation now takes 12 to 14 minutes.

Where the time goes in an investigation (share of total time) Model thinking 61% Preparing files 27% Tools 12% Typical time per case, minutes With diagnostic files about 13 Without about 4 Most single tool calls finish in under a second. The waiting is the model deciding what to look at next.
Measured on production investigations over a month. Preparing files means downloading, unpacking and condensing each diagnostic file.

Most of the time is the model thinking. In one run we timed step by step, 31 of 40 tool calls finished in under a second, and the gaps between steps, where the model reads what came back and decides what to do next, were about four times longer than the tool calls.

The agent has a limit of 80 steps. About 1 in 6 investigations reaches it. It then writes up what it has and marks what it did not get to.

An investigation that runs for 12 minutes with nothing on screen looks broken, even when it is working. In the first version, engineers saw a waiting message for the whole run, which in the worst cases was close to an hour. Now the case page shows each step as it happens: which file the agent opened, what it searched for, which past case it is reading, and a line saying it is thinking about the next step.

What an AI investigation costs, compared with a support ticket

The best-known public benchmark for the cost of a support ticket comes from corporate IT help desks rather than software vendors, but it shows the scale. It comes from MetricNet, published through HDI. It gives North American averages for the fully burdened cost of a ticket: salaries and benefits, supervisors and trainers, facilities, tools.

Cost per case, US dollars AI investigation under $3 Level 1 ticket $22 Level 2 ticket $62 Level 3 ticket $85
Ticket costs: MetricNet, corporate IT support, North American averages, fully burdened, published 2011. The AI figure is the average for the investigation only, at full list price.

These costs add up as a ticket climbs. A ticket logged at level 1 and solved at level 2 costs $22 plus $62. The same benchmark puts a ticket that has to be escalated to the software vendor at $471, and the vendor’s support team is where this agent works. The figures are from 2011, and wages have risen a lot since.

The AI covers only the first round of digging, where most of the time goes at levels 2 and 3. Another way to see it: the US median wage for a computer network support specialist was $76,220 in May 2025. Benefits make up about 30% of what US private employers pay per hour worked, so that wage comes to about $52 an hour with benefits, or about 87 cents a minute. An investigation that costs under $3 pays for itself if it saves an engineer four minutes. Senior support engineers at software companies earn more than that median, so the break-even point is lower still.

The prompt caching fix that cut cost by 75-80%

The first version cost $4 to $13 a run. The reason was the loop itself. A tool-calling agent sends the model the whole conversation at every step: the instructions, the case, every tool result so far, and then the new step. By step 40, the model re-reads 39 steps it has already seen. In our runs, that re-sent history was 92% of all the tokens we paid for.

What the model is sent at each step Step 1 Step 2 Step 3 Step 4 Step 5 ...and so on, up to 80 steps sent before: can come from the cache new in this step: full price
Almost everything the model reads late in a run, it has read before. Whether that part is cached decides the bill.

Providers charge much less for the part of a request that matches a recent one. This is called caching. We had switched on caching ourselves. It turned out to block the provider’s automatic caching, which suits a conversation that grows by one step at a time much better. Only 7% to 22% of each run’s input came from the cache.

We switched our own caching off.

BeforeAfter
Share of input served from cache7-22%88-92%
Five test runs, total costabout $35$7.04
Change in cost per run75-80% lower

Check the cache hit rate before comparing model prices.

How we tested the agent on solved cases

A solved case contains its own answer. The resolution is written on it, the last comments say what worked, and a later software update may describe the fix in plain words. If the agent can see any of that, the test only measures how well it reads the ending.

So we rewound each case to before it was solved.

What the agent sees the case and comments up to the cut point, files attached and updates released by then Hidden from the agent the resolution, later comments, later fixes cut point case opened case solved Investigation A Investigation B Graded against the hidden side and the engineers' reviews Names revealed
The hidden side is the answer key. The agent never sees it; the graders use it.

In practice that means four rules:

  1. A cut point. Each test case gets a moment before it was solved. The agent sees the case as it stood then, and every tool it uses is limited to what existed at that moment.
  2. A guard. If anything from after the cut point appears in what a tool returns, the run stops and does not count.
  3. An answer key from people. Support engineers reviewed earlier investigations of these cases and noted what was right and what was missed. Their reviews, plus what really happened on the case, are what we grade against.
  4. Blind grading with fact checks. Two investigations of the same case, labelled A and B, are graded on cause, next steps and write-up before anyone knows which version wrote which. Every deciding claim is traced to the file it cites, and claims that cannot be found or that the file contradicts are counted separately.

We wrote about the same way of testing in our agentic RAG write-up, where it stopped a slower assistant that was not actually better from shipping.

One more rule: the test must see what production sees. In one round our test setup left out the condensed summaries of the diagnostic files that production uses. Both models missed a cause, and we nearly wrote it down as a limit of the approach. The production run on the same case, with the summaries, had found it.

In an early check of ten cases, counting only the claims we could look up in the files, 14 of 15 were real. One investigation found something the engineers had not: an upgrade had changed a file it should not have, and the logs showed it.

What actually improved the investigations

From “the root cause” to “every issue”

Our first instructions asked for one assessment with the single best root cause, focused on the machine the case was about. That tied the agent to whatever the customer reported. In one case the customer reported an alert on one machine, and the real problem was on another machine the customer had not mentioned. No model found it in eight runs.

First instructionsChanged to
Give the single best root causeList every issue you find
Focus on the machine the case is aboutList the machines and time windows you examined
(nothing)List the log lines you cannot explain

With the new instructions, the agent solved that case for the first time. The lists also help the engineer: they show what was checked, and so what was not.

Put the key facts in front of the model

We first put the update status on a summary page the agent could open. It never opened it. When the same facts went into its opening message, it used them. The same happened with the error digest: in one case it is what surfaced a crash buried deep in the logs, which runs without the digest missed. The model used facts it was handed, and often skipped a tool it had to think of calling.

Choosing the model

The biggest gains came from the instructions and from putting facts up front. The model mattered too, and we compared models the same blind way. Gemini 4 Hydrogen beat Gemini 3.8 Flash on six of eight cases and made fewer claims the files contradicted, at about the same cost. Claude Opus found causes as often as Flash and wrote clearer reports, but cost about 40% more. We run Hydrogen. One thing we watch in every AI evaluation: graders can favour one position, so we swap A and B and check.

Where the AI support agent still falls short

WeaknessWhat it looks likeWhat catches it
States a guess as a fact“The cause is X” when the logs only show that X is possibleEngineer review; the evidence is quoted, so a missing quote stands out
Suggests a risky step without a warningOne test run proposed a cleanup step that would have removed something still in useThe agent cannot change anything; an engineer decides every step
Tunnel visionMisses an older log file that held the real errorThe “what I examined” list shows what it did not open
Uses a log from the wrong timeDraws a conclusion from a log that does not cover the incidentThe listed time windows make the mismatch visible
Rarely uses past casesSearches similar cases in almost every run, cites one in very fewStill open

The search finds past cases by how they started, because the matching text is usually the customer’s first description. It rarely shows how they ended. A past case that says “same symptom” without the fix does not help much, so the agent moves on. Showing the ending is next on our list.

These are the reasons an engineer reviews every investigation before anything reaches a customer.

Next: investigations that start on their own

Today an engineer starts the investigation. The next step we are working on is to start it automatically the moment something meaningful happens on a case: a new case comes in, the customer uploads diagnostic files, or a reply arrives with new information. The trigger itself is plain process automation: a rule watches for the event, and the agent does the reading.

That matters most where support runs on SLAs. In most support queues, some cases wait hours or days before anyone has time to dig in, and the SLA clock runs the whole time. With automatic investigations, every case gets its first deep look within about a quarter of an hour of arriving, at any hour.

  • A faster, better first response. The engineer’s first reply can be specific: a likely cause, a precise question, a fix to try. Not “please send the logs”.
  • Earlier escalation. Cases that need a senior engineer are flagged by the investigation itself, instead of after a first-line attempt has used up part of the SLA.
  • Nights and weekends. Cases that arrive outside working hours are already investigated when the team starts.
  • Tight SLAs. On contracts with short response and resolution times, the slowest part of the work no longer waits for a free engineer.

Each run costs about as much as three or four minutes of an engineer’s time.

Lessons for building an AI support agent

  1. Measure the cost of re-reading. In a tool-calling loop, most of what you pay for is history. The cache hit rate decides the bill.
  2. Put the key facts in the opening message. The system’s version, known fixes and an error digest, prepared before the model starts, beat a tool it might call.
  3. Ask for every issue, not the root cause. A single-answer prompt makes the agent agree with the customer’s framing.
  4. Test on rewound cases with the answer hidden. A solved case contains its answer; cut it off and guard the cut.
  5. Grade blind, and check the positions. Swap A and B, and look at whether one side wins too often.
  6. Make the test see what production sees. A test with less evidence than production invents failures.
  7. Show the work while it runs. A live step list turns a long wait into something an engineer can follow.
  8. Keep a person on every change to a customer system. Let the agent read everything and change nothing.

What this means for a support team

The agent does not close cases. It reads everything on the case, at any hour, before an engineer starts. Engineers start from evidence: a likely cause, the log lines behind it, and a list of what was checked. The engineer decides what is true and what to tell the customer.

If you run a support team and want to see what this would look like on your own cases, our page on the AI customer support agent explains how we approach it, or get in touch.

Next step

Bring us a messy process.

One call, and we'll tell you what can run itself.

Tell us about your process