I Ran a Bank's Risk Model On An AI Agent

· Source: The AI Agent Architect · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Robotics & Autonomous Systems · Depth: Intermediate, medium

Summary

An analysis of an AI agent deployed at a major logistics operator revealed that conversational agents incur unforeseen, compounding costs, particularly during high-stress events. A warehouse-incident support agent, built on Claude Sonnet, consumed 80,000 input tokens for every 1,200 produced, with over 90% of the bill attributed to re-sending accumulated memory with each turn. This architecture means costs escalate significantly during multi-turn crisis conversations, making agents most expensive when the business is already struggling. To address this, the author applied a banking-style Value-at-Risk model, creating scenario tables for normal, elevated, critical, and extreme months (weighted 85%, 10%, 4%, 1%). This revealed critical months could cost ten times the base, and the P95 budget figure was five times the expected annual cost, enabling informed rollout decisions.

Key takeaway

For AI Engineers or Directors of AI/ML deploying conversational agents, you must move beyond flat-rate cost projections. Your budget should reflect a price distribution, not a single number, by modeling worst-case scenarios. Analyze token logs to identify compounding architectures where input tokens dominate. Present ROI as a confidence range (e.g., 70%, 50%, 30%) to accurately reflect production realities and avoid mid-crisis financial surprises.

Key insights

AI agent costs compound with conversation length due to memory re-sending, requiring distribution-based pricing.

Principles

Method

Apply a Value-at-Risk (VaR) model by creating scenario tables with weighted probabilities (e.g., 85%, 10%, 4%, 1%) to calculate the P95 budget.

In practice

Topics

Best for: AI Engineer, MLOps Engineer, Director of AI/ML

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by The AI Agent Architect.