Why Office AI Agents Capture Most of the Growth: Three Technical Pillars

    This article analyzes why traffic growth in the office AI agent category is concentrated in a small number of products. It explains how office agents differ from chatbots through a four-level capability model, then examines three technical pillars that determine whether an agent gets adopted: workflow embedding, tool integration, and long-running task continuity. The article includes code examples for event entry points, permission-gated tool execution, task state persistence, and distributed tracing, a five-layer reference architecture, task-level quality metrics, cost control strategies, compliance practices, and a four-stage implementation path.

    1. The Signal: The Market Is Growing, but Growth Is Concentrated

    Third-party traffic and mobile app monitoring data often shows the same pattern: mainstream general-purpose assistants are still growing, the set of products at the top of the rankings is stable, and positions among leading products rarely change in the short term. The more important detail is where the growth is coming from. One general-purpose assistant ranked third added roughly twice as many visits in a single month as the product ranked first, while its downloads, monthly active users, and in-app purchase revenue all moved up in tandem. This indicates that the growth comes from a systematic ramp-up across multiple usage entry points, not an isolated fluctuation in a single web entry.

    The data for office agents tells the same story. Within one office-agent ranking that includes multiple products, category-wide visits grew more than 40% year over year, but two products together accounted for roughly 90% of the visits in that ranking. Those two products combined grew monthly active users by nearly 40%, and their combined net additions were slightly higher than the net additions of all products in the ranking combined; the other products in the ranking showed negative net additions, and some declined noticeably quarter over quarter.

    Scope note: The figures above come from publicly available third-party monitoring information and cover products within a specific ranking; they do not represent the full size of the office-agent market. The definitions of “visits” and “monthly active users” differ across measurement methods. This article uses the data only to illustrate trends and does not sum figures across different measurement systems.

    Together, these two sets of data point to the same conclusion: total market growth does not mean that every player grows. In the general-purpose assistant market, the competitive focus is shifting from “rankings” to “incremental growth.” In the office-agent market, the focus has shifted from “who can build one” to “who can durably own the user’s work entry point.”

    2. From Chat to Agents: Capability Layers of Office AI Agents

    To understand the technical reasons behind the divergence, start with the difference between an office agent and an ordinary chatbot. Measured by how close the product is to completing a task, capabilities fall into roughly four layers:

    Layer Core capability Typical behavior Main technical challenge
    L0 Conversational Q&A Text generation and multi-turn dialogue Writing copy, explaining concepts Context management
    L1 Tool invocation Calling external capabilities such as documents, spreadsheets, and calendars Checking schedules, reading documents Intent recognition, parameter extraction
    L2 Multi-step tasks Planning, execution, verification, and repair Summarizing meeting points and generating a weekly report State management, error recovery
    L3 Cross-device, cross-tool long tasks Asynchronous execution, resume from breakpoints, observable process Issuing an instruction on a phone and having it run continuously on a desktop Task scheduling, permissions, and security

    Chatbots stop at L0, while the value of office agents concentrates in L1 through L3. One constraint is unavoidable here: a model can “think” but cannot “do.” Reading and writing files, querying data, sending messages, and changing schedules must all be executed through external tools. As a result, the real capability of an office agent equals the product of the model’s reasoning capability and the tool-execution capability: if either factor is zero, the task cannot be completed.

    For the same reason, office agents rely heavily on “context engineering,” which determines what information the model can see at each step:

    • Task state: the current goal, completed steps, and items awaiting confirmation;
    • Tool descriptions: what each tool does, its parameters, and its risk level;
    • Memory: user preferences, prior conclusions, and process records;
    • Constraints: compliance requirements, permission boundaries, and output formats.

    The more precise the context, the higher the task completion rate and the lower the inference cost. The commonly cited “context window” metric only describes an upper bound and does not guarantee the density of useful information. Relying on ever-longer context to solve every problem usually just raises cost and latency.

    3. Three Technical Pillars: Why Growth Goes to a Few Products

    Looking back, office agents that keep winning incremental usage tend to share three capabilities. Model capability determines whether a product can make a task run end to end; these three capabilities determine whether the product actually gets used.

    Pillar 1: Workflow Embedding — Built into the Workflows Users Already Use

    Model capability is no longer a scarce resource, and the gap in basic capabilities across products is narrowing. The real differentiation is where users encounter the agent.

    Compare two usage paths:

    • Standalone entry: the user has to remember that “there is a tool here,” then open a new page or app, which adds a step outside the existing workflow.
    • Embedded entry: the agent appears directly inside everyday tools such as instant messaging, office documents, meetings, and cloud storage — for example, as a conversation assistant, a group-chat bot, or an inline document assistant — so the user does not have to switch context.

    The advantage of the second type is that every execution of the agent happens inside the context of real work. Group messages, shared documents, meeting notes, and file versions are themselves the inputs and outputs of the task. It also produces network effects: when colleagues see a result, forward it, and reuse it, they naturally bring in new users.

    On the engineering side, “embedding” means solving four problems:

    1. Event ingestion: events from systems such as instant messaging are pushed through callbacks or message queues, first written to storage, and then deduplicated idempotently to avoid duplicate execution caused by retries;
    2. Identity mapping: platform accounts are mapped to identities inside the organization, and the agent acts with the caller’s permissions rather than relying on one “super account” for everything;
    3. Context assembly: conversation history, document content, and organizational structure are pulled on demand, with size kept under control;
    4. Result write-back: execution results are returned to the original conversation in forms such as message cards, closing the loop on the task.

    Example code (message-triggered entry):

    1. import hashlib
    2. from datetime import datetime, timezone
    3. def on_im_event(event, agent, mq, store):
    4. """Message callback entry: lightweight validation -> persist -> trigger the agent asynchronously."""
    5. # 1. Lightweight validation: confirm the callback source is trusted and the signature is valid (signature check details omitted)
    6. if not verify_signature(event):
    7. return {"code": 401, "msg": "invalid signature"}
    8. # 2. Idempotency: when the platform retries or the user sends repeatedly, process only once
    9. key = hashlib.sha256(f"{event.msg_id}".encode()).hexdigest()
    10. if not store.set_if_absent(f"dedup:{key}", 1, ttl=600):
    11. return {"code": 200, "msg": "duplicated"}
    12. # 3. Persist: store the raw event first so messages can be queried and replayed
    13. store.append_log("im_event", event)
    14. # 4. Trigger asynchronously: return from the callback quickly and hand the task to the background
    15. mq.publish("agent.tasks", {
    16. "task_id": event.msg_id,
    17. "user_id": event.sender_id, # corresponds to an identity inside the organization
    18. "conversation_id": event.conversation_id,
    19. "content": event.text,
    20. "refs": event.attachments, # attachments are transferred to object storage first; only references are passed
    21. })
    22. return {"code": 200, "msg": "accepted"}

    If you use products such as Baidu AI Cloud, you can use a message queue to carry events, object storage to hold attachments and intermediate files, and a container platform to deploy the runtime environment.

    Pillar 2: Tool Integration — Able to Read Data and Execute Actions

    Office work naturally spans systems: documents, spreadsheets, email, calendars, meetings, project management, and code hosting, each often with its own interfaces. The value of an agent lies in connecting these “silos,” but connecting them is not the same as hooking up a few APIs.

    The integration layer usually contains four types of components:

    • Tool registry: registers each tool’s name, functional description, parameter structure, risk level, and required permissions, with a clear description for every tool;
    • Adapters: hide differences between system interfaces behind a unified format, including authentication methods, pagination rules, rate-limiting policies, and data formats;
    • Retrieval capability: enterprise knowledge is connected through retrieval-augmented generation (RAG). Documents are parsed and chunked into a vector store, and at retrieval time results are filtered by the caller’s permissions before being provided to the model as context;
    • Execution and rollback: write operations must be idempotent, and failures must be compensable or reversible. For example, an already-sent message or an already-modified document cannot truly be “undone,” so a confirmation mechanism must be designed in advance.

    Permissions are the part of integration most likely to go wrong. A common mistake with office agents is to make everything “fully visible” during retrieval and check permissions only at execution time. This means the model has already been exposed to content the user is not allowed to view at the answer-generation stage.

    A more reliable approach is to preserve each document’s access-control information when knowledge is ingested, carry the caller’s identity through the entire retrieval and generation process, and filter results by permission.

    For high-risk operations such as deletion, bulk messaging, and bulk modification, it is advisable to put a “confirmation gate” between the agent and the real system. Example code:

    1. def execute_tool(tool_name, args, user, policy):
    2. """Tool execution entry: enforce permissions, risk controls, and human confirmation in one place."""
    3. spec = REGISTRY[tool_name] # tool metadata: risk level, required permissions, parameter structure
    4. # 1. Permission check: evaluate with the caller's identity instead of using the service's superuser privileges
    5. if not policy.allows(user, spec.required_scopes):
    6. raise PermissionError(f"{tool_name} requires additional authorization")
    7. # 2. Parameter validation: constrain model output and avoid illegal or oversized arguments
    8. args = validate_args(spec.schema, args)
    9. # 3. Risk classification: high-risk operations must pass human confirmation
    10. if spec.risk in ("destructive", "bulk_write") and not user.confirmed(args):
    11. return {"status": "pending_confirm", "preview": preview_changes(spec, args)}
    12. # 4. Execution and audit: record the operator, arguments, and result for traceability
    13. result = call_adapter(spec.adapter, args)
    14. audit_log.write(user=user.id, tool=tool_name, args=args, result=result)
    15. return result

    This layer acts as a “controllable gate” between the model and real systems. The model decides what it wants to do, and the system decides whether it can be done and whether it can be done directly.

    Pillar 3: Task Continuity — From One Question and One Answer to Cross-Device, Long-Running Execution

    Office tasks often take minutes or even hours: organizing dozens of documents or tracking cross-department items cannot be completed in a single conversation. Products that keep winning incremental usage mostly make tasks “stay alive”:

    • Cross-device continuation: an instruction issued on a phone keeps running on the desktop, and the user can check progress from either device;
    • Resume from breakpoints: every step is persisted, so an interrupted process resumes from where it stopped rather than starting over;
    • Observable process: task decomposition, the result of each step, elapsed time, and resource consumption are all traceable;
    • Progress feedback: intermediate results are delivered through message notifications, and the task is suspended while waiting for user input rather than making the user stare at the screen.

    Three things are needed on the engineering side:

    1. Use a state machine to describe the task lifecycle;
    2. Use a task queue and scheduler to carry long-running execution;
    3. Use checkpoint storage to save intermediate state.

    In addition, tool calls must be idempotent, and retries must carry an idempotency key to prevent effects such as “duplicate message sent” or “duplicate file generated.”

    Example code (long-task state transitions):

    1. from dataclasses import dataclass, field
    2. from enum import Enum
    3. class State(str, Enum):
    4. PENDING = "pending"
    5. RUNNING = "running"
    6. WAITING = "waiting" # waiting for user confirmation or additional information
    7. DONE = "done"
    8. FAILED = "failed"
    9. @dataclass
    10. class TaskState:
    11. task_id: str
    12. goal: str # task goal
    13. plan: list = field(default_factory=list)
    14. step: int = 0 # current progress, used for resuming from breakpoints
    15. context: dict = field(default_factory=dict) # intermediate outputs, user preferences
    16. status: State = State.PENDING
    17. def run_long_task(state: TaskState, agent, store, notify):
    18. """Long-task execution: state persistence + suspended waiting + progress feedback."""
    19. state.status = State.RUNNING
    20. store.save(state) # persist state so the process can recover after a restart
    21. while state.step < len(state.plan):
    22. current = state.plan[state.step]
    23. result = agent.run_step(current, state.context)
    24. if result.needs_confirm:
    25. # Suspend and wait for user confirmation: save state and exit; resume from the breakpoint after the user replies
    26. state.status = State.WAITING
    27. store.save(state)
    28. notify(state, f"Step {state.step + 1} requires your confirmation: {result.question}")
    29. return
    30. # Tool calls carry their own idempotency key: repeated execution of the same task and the same node produces no side effects
    31. state.context[current.id] = result.output
    32. state.step += 1
    33. store.save(state) # persist after every step, forming a recoverable checkpoint
    34. notify(state, f"Progress {state.step}/{len(state.plan)}: {current.name} completed")
    35. state.status = State.DONE
    36. store.save(state)

    Map the three capabilities back to the capability layers: workflow embedding determines whether users can reach the agent conveniently, tool integration determines whether the agent can reach data and systems, and task continuity determines whether the agent can complete an entire task.

    This explains why growth concentrates. All three capabilities require long-term accumulation. Connecting organizational identities, integrating with business systems, permission governance, and auditing cannot be filled in quickly by a single model upgrade. So growth keeps flowing to the few products that have already crossed the threshold, rather than being distributed evenly among all participants. At the same time, this gives later entrants an opportunity: instead of chasing model parameters head-on, they can focus on one specific scenario and build these three capabilities deeply and solidly.

    4. Reference Architecture: A “Growth-Friendly” Office AI Agent

    Combining the three capabilities, you can abstract a reference architecture with five layers:

    1. ┌──────────────────────────────────────────────┐
    2. │ Access layer IM / office documents / web / mobile │
    3. ├──────────────────────────────────────────────┤
    4. │ Task layer task management · state machine · resume from breakpoints · suspend │
    5. ├──────────────────────────────────────────────┤
    6. │ Agent layer planning and reasoning · memory management · tool routing │
    7. ├──────────────────────────────────────────────┤
    8. │ Tool layer tool registry · system adapters · RAG retrieval │
    9. │ permission policies · human confirmation · idempotency and compensation │
    10. ├──────────────────────────────────────────────┤
    11. │ Foundation layer compute and models · vector store · message queue │
    12. │ object storage · logging and monitoring · identity and permissions │
    13. └──────────────────────────────────────────────┘

    The responsibilities of each layer are as follows:

    • Access layer: responsible for embedding into scenarios, reaching users through message events or plugins, and completing identity mapping;
    • Task layer: responsible for orchestrating long tasks, suspension, and recovery, ensuring continuous execution across devices;
    • Agent layer: responsible for reasoning, planning, and memory management, deciding what to do and which tools to use at each step;
    • Tool layer: responsible for unified tool invocation, retrieval, and permission control, and for intercepting high-risk operations;
    • Foundation layer: provides compute, storage, queues, and observability.

    From a cloud platform selection perspective, most components in the foundation layer can be covered by general product categories. Taking Baidu AI Cloud as an example:

    • Large model services and knowledge-base capabilities support reasoning and retrieval in the agent layer;
    • Message queues, object storage, and container services support asynchronous execution and file management in the task layer;
    • Log services and monitoring alerts support full-link tracing and anomaly detection.

    Refer to the official documentation for specific specifications and billing. It is worth noting that an office agent is not a general-purpose Q&A entry point and should not try to “do everything in one agent.” A more practical approach is a “general foundation plus scenario-specific agents”: the foundation provides models, tools, and permission capabilities uniformly, and each business scenario configures task flows and tool combinations as needed.

    5. From “Demo-Ready” to “Production-Ready”

    The technical architecture is only the starting point. Whether an office agent retains users over the long term ultimately depends on three bottom lines: quality, cost, and compliance.

    1. Quality Metrics: Use Task-Level Metrics Instead of Single-Turn Answer Scores

    Metric Definition Purpose
    Task success rate Share of sessions that fully achieve the user’s goal Measures real value
    Tool invocation accuracy Share of tool calls with correct parameters Pinpoints integration problems
    Human takeover rate Share of sessions handed off to a human Reflects capability boundaries
    Average number of steps Number of model calls required to complete a task Reflects execution efficiency
    Cost per task Model and tool-call resources consumed per task Reflects sustainability

    Evaluation sets should come from real, de-identified logs and cover high-frequency tasks, long-tail tasks, and adversarial inputs. Before releasing a model or adjusting prompts, run an offline evaluation first; after launch, compare results against production metrics to avoid a situation where “the evaluation set improves while production feedback declines.”

    2. Cost Control: Spend the Budget on Steps That Create Value

    • Model tiering: use lightweight models for simple steps such as intent recognition and format conversion, and reserve high-capability models for complex planning;
    • Retrieval first: locate relevant documents through retrieval first, and pass only the necessary fragments to the model;
    • Result reuse: cache responses to identical requests, and reuse summaries generated for the same document.

    3. Compliance and Observability: Leave a Trace for Every Step

    • Data classification: de-identify sensitive data before sending it to the model, and agree that data will not be retained or used for training;
    • Operation audit: record “who, in what scenario, had the agent do what, and with what result”;
    • Observability: use a trace to connect the full path of a task (see the example code below);
    • Circuit breaker: set thresholds for per-user call frequency, per-task cost, and tool failure rate, and automatically degrade or hand off to a human when anomalies occur.
    1. def traced_step(trace_id, node, tool_name=None, **meta):
    2. """Use trace_id to connect the whole task process for retrieval, auditing, and cost attribution."""
    3. return tracer.start_span(
    4. name=f"task/{node}",
    5. trace_id=trace_id,
    6. tags={"tool": tool_name or "-", **meta}, # tool name, elapsed time, token usage, etc.
    7. )
    8. # Include every task node and every tool call in the same trace
    9. with traced_step(task_id, "plan") as span:
    10. plan = agent.plan(state.goal, state.context)
    11. span.set_tag("plan_steps", len(plan))

    6. Implementation Path: Four Stages of Incremental Progress

    1. Choose a scenario: start with repeatable processes that have clear inputs and outputs and verifiable results, such as meeting minutes and action-item extraction, weekly report summaries, and key-clause extraction from contracts. Do not aim for an “all-capable assistant” from the start.
    2. Build the tool layer: identify the systems and interfaces involved in the target scenario, build a tool registry and permission policies, start by connecting read-only tools, and then gradually open write operations.
    3. Deepen the task layer: improve the state machine, resume-from-breakpoint behavior, and human confirmation flows, and connect to existing work entry points so the agent appears inside the interfaces users already work in.
    4. Establish an operational loop: continuously collect de-identified conversation logs, expand the evaluation set, monitor success rate, cost, and human takeover rate daily, and iterate regularly.

    7. Conclusion

    The concentration of growth in the rankings is essentially not a traffic story but the combined result of work entry points and technical barriers. Model capability determines whether a product can make a task run, while workflow embedding, tool integration, and task continuity determine whether the product is truly used. For developers, rather than chasing short-term traffic rankings, it is better to build these three capabilities solidly: make the agent appear where users already work, enable it to call tools safely and under control, and allow it to carry tasks through across devices and over time.