Scaling AI Office Agents: Metrics, Token Costs, and Architecture

    What does it take to run an AI office agent at 10 million+ daily active users and 10 billion+ tokens per day? Drawing on a large internet company's public quarterly results, this article turns those numbers into a practical guide to scaling AI office agents. It covers three signals behind the financials, how to cross-check DAU, MAU, and token metrics so no single number misleads, five token-cost techniques (tiered routing, context trimming, prefix caching, semantic caching, and batching), a four-layer agent architecture (access, orchestration, capability, and data/observability), a financial framework for judging AI investment, and four organizational mechanisms to make adoption stick. It closes with an 11-point implementation checklist spanning metrics, cost attribution, idempotency, content safety, hallucination control, and ROI accounting.

    1. Three signals behind the headline numbers

    A note on sources: the operating figures below are drawn from a large internet company’s publicly disclosed quarterly results (the authoritative numbers are those in the company’s official filings). The third-party MAU figures come from a public mobile-internet monitoring body. Note that third-party multi-terminal MAU (around 32.35 million) is typically counted on a de-duplicated device or account basis and may not match the company’s own disclosure, so align definitions before comparing across sources.

    The company’s latest quarterly results show revenue of roughly RMB 207.3 billion, up 8% year over year; capital expenditure of RMB 65.1 billion, up about 226%; R&D spending of RMB 32.36 billion, up about 42%; and operating profit of RMB 59.15 billion, down 7%. Stripping out several newly launched AI products, operating profit would be about RMB 83.3 billion, up 8%. Over the same period, its office-focused agent product passed 10 million daily active users and consumes more than 10 billion tokens per day. Third-party monitoring puts the product’s multi-terminal office-agent MAU at roughly 32.35 million (de-duplicated per the body’s definition).

    Read together, these figures carry three signals that bear directly on engineering practice.

    Signal 1: AI applications have moved from the demo stage to the load stage. Ten million daily actives and 10 billion daily tokens mean this is no longer a product built to demo standards. It is a production system that must handle queuing, rate limiting, graceful degradation, and cost attribution. Every architectural decision has to be validated against a scale of hundreds of millions of calls per day.

    Signal 2: tokens are becoming the universal unit of measure in the AI era. We used to measure software load by QPS, bandwidth, and storage; now there is another dimension — tokens. Tokens correlate strongly with call count, context length, and output length, and they map directly to compute cost and inference latency. They are a first-class metric that capacity planning and budgeting must include.

    Signal 3: AI investment shows up on the cost side before the revenue side. Capital expenditure more than doubling and R&D up 40% will, in the short term, depress profit through depreciation, amortization, and losses at new businesses. To judge whether this kind of investment is healthy, don’t look only at the current profit growth rate — watch two lines: whether the core business is still growing, and whether the unit cost per task keeps falling.

    2. The metrics system: cross-checking DAU, MAU, and token consumption

    No single metric tells the whole story, and any single metric can mislead. High DAU with low per-user call volume may be check-in-style vanity activity; high token consumption with a low task-completion rate may just be repeated retries. The practical approach is to cross-check three classes of metrics.

    A quick estimate from the public data: 10 billion tokens/day ÷ 10 million DAU ≈ 1,000 tokens per user per day. That is a light intensity, which suggests the dominant usage pattern is still short interactions — single-turn Q&A or lightweight rewriting. Once per-user tokens climb into the tens of thousands, the cost curve rises by tens of times, so cost governance has to be built in early rather than bolted on later. A second estimate: 10 million DAU ÷ 32.35 million MAU ≈ a 31% DAU/MAU ratio, a reasonable high-frequency range for a utility app, which suggests retention is not being driven by marketing alone.

    The recommended instrumentation can be minimal but should have complete fields, so that usage can be attributed by team, scenario, and model:

    1. {
    2. "trace_id": "uuid",
    3. "tenant_id": "dept-or-team",
    4. "scene": "doc_summary | code_review | meeting_minutes",
    5. "model_tier": "large | mid | small",
    6. "input_tokens": 4200,
    7. "output_tokens": 380,
    8. "cached_input_tokens": 3600,
    9. "cache_hit": true,
    10. "tool_calls": 2,
    11. "latency_ms": 1850,
    12. "outcome": "success | retry | fallback | rejected",
    13. "human_rework": true
    14. }

    Among these, cached_input_tokens (input served from a prefix cache) and cache_hit are the easiest to overlook yet the most valuable: the former determines actual billing and latency, and combined with cache hit rate, cache unit price, and hit latency you can evaluate the payoff, then pair it with an invalidation strategy (TTL, version numbers) to keep results accurate. outcome determines whether the user actually finished the task. Failures, retries, degradations, and human rework should also be stored as independent dimensions — otherwise cost accounting drifts.

    3. Token economics: turning consumption into a governable budget

    Uncontrolled token consumption is usually not about the model being too expensive — it is about sloppy context management. Common industry techniques fall into five categories:

    1. Tiered routing: do intent recognition first, send simple tasks to smaller models or rules, and escalate to large models only for complex tasks. This has the highest payoff and typically yields a cost difference of several times.
    2. Context trimming: truncate retrieval results, conversation history, and tool returns by relevance, keeping only the fragments required for the current inference step.
    3. Prefix caching: keep the system prompt, tool definitions, and fixed knowledge snippets byte-for-byte stable so the cache can hit; move volatile content like timestamps and random IDs out of the system prompt.
    4. Semantic caching: cache results for high-frequency repeated questions, with an invalidation strategy and a feedback loop from human corrections.
    5. Batching and asynchrony: route non-real-time tasks (batch summarization, offline indexing, report generation) to low-priority queues, trading latency for lower unit price.

    Unit prices should not be one-size-fits-all: input, output, cache hits, retry/failures, and tool calls should be priced separately, and a cache hit is usually far cheaper than a normal input. The following minimal, runnable example wires routing, budget, and trimming together:

    1. # Illustrative code: real model calls omitted; focus is on cost-governance logic
    2. PRICE_IN = 0.004 # per 1K tokens, input unit price; replace with your actual commercial rate
    3. PRICE_OUT = 0.012 # output unit price
    4. PRICE_CACHED = 0.001 # cache-hit input unit price, usually far lower than a normal input
    5. def estimate_cost(inp: int, out: int, cached: int = 0) -> float:
    6. """Price input, output, and cache hits separately; return the estimated cost of a single call (yuan)."""
    7. uncached = max(0, inp - cached)
    8. return (uncached / 1000 * PRICE_IN
    9. + cached / 1000 * PRICE_CACHED
    10. + out / 1000 * PRICE_OUT)
    11. def route(task: dict, budget: dict) -> dict:
    12. """Route by task complexity, and degrade or reject when the budget is exceeded."""
    13. # Decide the routing tier first, then deduct the quota separately to avoid an invalid assignment
    14. if task["complexity"] <= 1 and budget["small_quota"] > 0:
    15. tier = "small"
    16. budget["small_quota"] -= 1
    17. else:
    18. tier = "large"
    19. # trim_context returns (fragment list, cumulative input tokens); use real token counts to estimate cost
    20. ctx, input_tokens = trim_context(
    21. task["retrieved"],
    22. max_tokens=budget["max_input_tokens"] # hard cap, to prevent retrieval from ballooning
    23. )
    24. est = estimate_cost(input_tokens, budget["max_output_tokens"])
    25. if est > budget["daily_remaining"]:
    26. return {"decision": "reject", "reason": "quota_exceeded", "tier": tier}
    27. budget["daily_remaining"] -= est
    28. return {"decision": "run", "tier": tier, "context": ctx, "est_cost": est}
    29. def trim_context(chunks: list, max_tokens: int, per_chunk: int = 512):
    30. """Greedily trim retrieval fragments in order; return the fragment list and cumulative token count.
    31. In production, use a specific tokenizer (such as tiktoken) for exact counts; here tokens are estimated roughly by characters."""
    32. kept, used = [], 0
    33. for c in chunks:
    34. n = min(per_chunk, len(c) // 2) # rough token estimate by characters
    35. if used + n > max_tokens:
    36. break
    37. kept.append(c[:n * 2]); used += n
    38. return kept, used

    Budgets must be bound to the organization: set daily/monthly quotas by department, project, and scenario, treat quotas as soft limits (degrade) rather than hard blocks (unless a risk-control rule is triggered), and alert owners as they approach the threshold. Quotas, quota alerts, log retention, and monitoring dashboards are typically carried by general-purpose cloud capabilities — a container platform hosts the stateless inference gateway, object storage holds long texts and artifacts, a message queue smooths traffic peaks, log and monitoring/alerting services handle attribution and threshold notifications, and model and vector-retrieval services provide inference and semantic recall. Whether to choose dedicated deployment or public inference depends on data-classification requirements, not on price alone.

    4. Agent architecture: a four-layer design for 10M+ DAU

    The complexity of an office agent lies not in the model call itself but in whether the task is actually finished. A sensible layering:

    Access layer (multi-terminal): desktop, mobile, browser extension, and server-side API share one session protocol. The point of multi-terminal MAU is scenario coverage — the desktop client handles long documents and local files, mobile handles fragmented instructions and approvals, and the extension captures context. Architecturally, session state must be decoupled from the endpoint so that if any endpoint drops, the session can continue on another.

    Orchestration layer (agent runtime): responsible for task planning, tool selection, multi-step execution, and result validation. Three key engineering points: first, idempotency — every tool call must carry an idempotency key to avoid duplicate writes on retry; second, state persistence — long tasks persist intermediate state to external storage so the process can recover after a restart; third, least privilege — the tool gateway issues temporary credentials per caller identity, and sensitive operations require mandatory human confirmation.

    Capability layer: model services (tiered), retrieval and vector recall, tool/plugin gateway, and content-safety review. Review should run in both directions — inbound to block violating instructions and injection-style prompts, outbound to block sensitive information and untrusted links.

    Data and observability layer: full-chain tracing, token and cost attribution, and quality feedback. Without this layer, the first three can only rely on guesswork.

    Suppressing hallucination is an engineering matter, not a prompt trick: retrieval-first, mandatory citation/traceability (every conclusion can point back to a location in the source), structured-output validation (retry on schema-validation failure rather than emitting directly), and cross-validation of key conclusions with two models. Note that two-model cross-validation applies only to high-risk or critical conclusions (such as external disclosures, contract amounts, legal clauses), because cost and latency double; it should not be overused in ordinary scenarios. For office work, an untraceable conclusion is often more damaging than an honest “I don’t know.”

    5. The financial view: why AI investment looks “bad” in the short term

    Returning to the financial structure at the top, here is a general evaluation framework.

    First, look at profit in layers. Account for “mature business” and “new AI business” separately: for the former, check whether growth is holding; for the latter, check whether losses narrow as scale grows. If core profit still grows after excluding the new AI business, the investment is being funded by existing cash flow rather than eroding the base business.

    Second, watch the slope of the cost function, not the absolute value. High capital expenditure does not mean low efficiency — look at depreciation-period assumptions, the mix of self-built versus rented capacity, and the curve of declining unit inference cost. A healthy signal: when call volume doubles, the unit cost per task stays flat or falls.

    Third, build your own ROI model on the enterprise side. Don’t wait for a vendor’s conclusion; compute it from three of your own measurements (the following are all aggregate figures over the same statistical period):

    1. Period inference cost = Σ(input tokens × input unit price) + Σ(output tokens × output unit price)
    2. + Σ(cache-hit cost) + Σ(tool-call cost)
    3. Cost per task = period inference cost / number of successful tasks # average cost-per-task basis
    4. Labor savings = hours saved × labor cost per unit
    5. Net benefit = labor savings + quality benefit (less rework, lower error rate)
    6. − period inference cost − platform operations cost

    Note that the numerator of “cost per task” is total cost over the period and the denominator is the number of successful tasks, so it is an average; retries and failed calls also burn money but should not enter the benefit denominator. The most common distortion in practice is counting only the cost of the successful path while ignoring the consumption of failures, retries, and degradations.

    6. Organizational rollout: turning “embrace AI” into a mechanism, not a slogan

    AI capability must become default infrastructure, not an exploratory project for a few teams. Four mechanisms make this work:

    • Platform first: unify model access, unify quotas and billing, and unify logging and review, so teams don’t reinvent the wheel and create shadow AI.
    • Scenario prioritization: pick scenarios by “frequency × time cost × fault tolerance.” Prioritize high-frequency, time-consuming, high-tolerance scenarios (meeting minutes, document summaries, first-pass code-review screening); defer low-frequency, zero-tolerance scenarios (formal external disclosures).
    • Open measurement: turn adoption rate, task-completion rate, human-rework rate, and cost per task into team-level dashboards and make them public. Keep collection definitions consistent (e.g., adoption rate = effective calls / total sessions; rework rate = tasks with human edits / completed tasks), and refresh the dashboards daily or weekly so optimization has a target.
    • Capability training: the focus of training is not prompt templates but task decomposition and result validation — employees must be able to judge when an output cannot be trusted.

    (A transferable analogy) The AIGC pipeline in content creation (text setup → storyboard → keyframes → image-to-video → voiceover/lip-sync → compositing) is structurally the same problem as the office agent: consistency maps to output stability, controllability maps to tool orchestration, and compliance labeling maps to permissions and audit. These patterns transfer to office scenarios, but they are not the main thread of this article and are offered only as a point of reference.

    7. Implementation checklist

    1. Is the metrics triangle complete: are activity, token consumption, and task success rate all collected and drillable down to the scenario level?
    2. Are failures, retries, degradations, and human rework collected independently and counted into cost and benefit accounting?
    3. Can cost be attributed to teams and scenarios, and are there soft quotas and threshold alerts?
    4. Are tiered routing and prefix caching implemented; is the system prompt stable enough to cache; are unit prices split into input / output / cache / retry / tool?
    5. Is there a hard cap on context, and a trimming strategy against retrieval bloat?
    6. Are tool calls idempotent, least-privilege, with mandatory confirmation for sensitive operations?
    7. Is long-task state externalized and recoverable, and can failures degrade rather than break?
    8. Is content review bidirectional (inbound and outbound), and are injection attacks defended against?
    9. Are key conclusions forced to carry citations, is structured output schema-validated, and is two-model cross-validation limited to high-risk scenarios?
    10. Is ROI computed with successful tasks as the denominator and total period cost as the numerator (an average), including platform operations cost?
    11. Is finance accounted for in layers, with both core-business growth and the narrowing-loss trend of the new AI business tracked?

    Ten million daily actives and 10 billion tokens are not the finish line — they are the starting point at which the cost curve and architectural constraints begin to bite. Get the four things solid — the metrics system, the token budget, the orchestration architecture, and ROI accounting — and AI investment has a chance to shift from “a one-off expense against current profit” to “a capability asset that compounds.”