As a CTO, I’ve found that building AI automations gives me a better understanding of what I’m asking my team to do.
I’ve spent the past year building four iterations of an AI agent designed to route customer issues to the right engineering team. The first used Claude Code with an MCP connector to Jira. I’d hand it an issue and a prompt, and it would tell me who should look at it. For the second, I turned that workflow into an agent in n8n, a low-code framework. The third ran on Claude Managed Agents, Anthropic’s hosted agent platform. But I wanted it to have access to tools and data that the environment couldn’t reach. For the fourth, I rebuilt the agent on Google’s agent platform, where we run our production infrastructure. That gave it access to our codebase and issue tracker. I hadn’t anticipated how much data access would influence my platform of choice. As Grant Gross reports, data access and integration can be barriers to deploying agents.
Across each iteration, I kept asking whether the agent justified the work of building it. How often did it route an issue correctly? What did it cost to run? How much manual routing did it remove? Those questions gave me a way to evaluate the experiment.
The biggest surprise was discovering how much the routing process relied on knowledge our managers couldn’t fully articulate. Building the agent forced me to work through those decisions myself, giving me a better understanding of what I ask my team to do.
Here’s what I learned:
On paper, the workflow for my agent seemed ripe for automation. While our customer support team handles 90% of customer issues themselves, 10% involve product problems that require escalation to engineering. Routing those escalations was a bottleneck. Roughly 100 times a week, someone had to apply substantial domain knowledge to identify the right engineering manager.
Bernard Aceituno has similarly described successful agentic ticket-triage deployments that categorize issues and update the ticketing system. Given that my core problem was classification, I started with a simple mapping of product areas to engineering managers: this manager owns reports, this one owns the front end, this one owns administrative functions. But knowing the product area wasn’t always enough to route the ticket to the right team.
A reporting issue, for example, could have different causes. In some cases, an incorrect report indicated a front-end problem; in others, it indicated a data problem. Data ingestion belonged to one team unless the data came from an HRIS system, which another team handled. Even after the agent identified the right team, the person responsible could vary by request. My agent needed rules for both team ownership and individual assignment.
I couldn’t have asked any of the managers to write the complete set of routing rules upfront. But they could review a routing decision and say, “I would have sent it to this person for this reason.” Building the agent meant turning the group’s fragmented judgment into explicit rules.
The first version of the routing agent assigned only about 60% of issues correctly. It also made people up — hallucinating names, combining first and last names from different people. Engineering managers flagged incorrect assignments in Jira and explained which team or person should have received each ticket. I used those corrections to update the routing rules. Through that review process, the agent reached about 95% routing accuracy.
Checking the model’s behavior is another part of validation. Separate testing by our department showed how differently models can interpret the same restrictions. We tested OpenAI, Google and Anthropic models under rules that included a prohibition on giving employment recommendations. Gemini would go out of its way not to answer questions it felt crossed a line we had specified. Opus would get excessively creative trying to find ways to answer without violating the premise, while Sonnet followed the restriction more literally.
A new model release or even a new model family, such as a move from Claude Opus to GPT-6 or Gemini 4, can change those response patterns even when the surrounding tools and instructions stay the same. The same prompts, MCP connectors and guardrails can produce different tool-call behavior, formatting and refusals once the underlying model changes. That’s why validation needs to continue after deployment, particularly when the underlying model changes.
The routing agent started with a specific job: given a problem description, what team owns that domain? And who’s the manager? But identifying the team raised other questions the agent might help answer.
I also built tools to ask: is this a regression — did a recent change cause it? Can I find the area of code where the problem lives? Do I know which developer touches that area? Together with routing, those capabilities made four tools that could be useful in sprint planning, product evaluations or other contexts. George Bezerra argues for choosing among rules, machine learning, LLMs and agents based on the problem. Building those extra capabilities made me question how much machinery my original routing task needed.
The agent also explains its assignments in Jira: “I’m a bot, and I assigned this here for these reasons.” Anyone can put a thumbs down on it. The system captures that feedback, but it does not automatically learn from each correction. I stopped short of building that capability because each additional refinement saved less time. Managers redirect the remaining ~5% of incorrect assignments, just as they did before the agent existed.
I started with a concrete metric to improve: how much time engineering managers were spending in the Jira project before and after the agent went live.
The agent now saves each of our seven engineering managers about 2 hours a week. Most issues now reach the right team immediately, reducing time to resolution. Another positive data point: when the agent broke for a week, several managers came to me, noticing the manual work had come back.
What surprised me was how small the actual operational cost of the agent is: pennies a month. That figure excludes the time I spent building and refining the agent, which matters when evaluating the total investment. But I had expected higher ongoing model costs.
Ongoing maintenance is another factor in ROI calculation. The routing rules reflect our current team structure, ownership boundaries and exceptions. When one team’s responsibilities changed, we had to adjust the routing rules.
Before building another agent, I need to ask: is this a fairly static workflow, or is the team or process going to change substantially? That changes the ROI calculation significantly.
I suspect by next year I’ll have multiple agents running to take over tasks for our team. Some I may purchase rather than build. Building this one gave me a better basis for evaluating either option.
Whether I build or buy, I’ll want to understand how an agent handles exceptions, adapts to workflow changes and justifies the effort required to maintain it. Low operating costs mean little if the system needs constant intervention to stay useful.
While the workflow required more investigation and iteration than I expected, the operating cost turned out to be much lower. Buying an agent raises some of the same questions. I can imagine agents that are durable through organizational changes. But I can also imagine a lot that aren’t. How are those delivered? As a service? As a toolkit I plug together? As a product that just works? These are the kinds of questions I’ll be asking. I encourage other technology leaders to build an agent themselves. Documenting the workflow, investigating incorrect results and deciding whether another improvement is worth the effort gave me a clearer understanding of automation’s true cost and value — and of the work my team does every day.