Enterprise AI Agents: A Practical Path from Chat to Workflow Execution

    This article explains why conversational AI struggles to deliver measurable business results and why office workflows are a strong entry point for enterprise agents. It outlines a five-layer technical architecture covering orchestration, tools, data, permissions, and evaluation, along with guidance on choosing narrow vertical use cases and avoiding common anti-patterns. The goal is to help developers turn AI pilots into auditable, measurable production systems.

    1. The Starting Problem: Why “Being Able to Chat” Is Not “Being Able to Work”

    Over the past two years, investment in consumer-facing standalone AI applications has been almost frantic, with every vendor competing for the position of a “super entry point.” But once the marketing buzz fades, an awkward commercial reality emerges: enterprise adoption of generative AI is already high, yet the share that meaningfully contributes to underlying profit remains low. McKinsey’s 2025 report on agentic AI summarizes this as the “GenAI paradox”—more than 78% of enterprises already use generative AI in at least one business function, but more than 80% admit that the investment has not translated into substantial improvement at the profit level, and fewer than 10% of use cases have moved beyond pilots into vertical production workflows. At the same time, industry analysts forecast that global generative AI spending will climb to around $644 billion in 2025, while CFO patience for “token consumption” is being rapidly exhausted.

    The point of these figures is not to be pessimistic, but to reveal a structural mismatch: what enterprises are buying is not “answering capability” but “outcome delivery capability.”

    1.1 Three Inherent Constraints of the Chat Box

    A pure chat format is essentially an attention business. It relies on users’ desire to express themselves and their spontaneous questions. It can boost monthly active users, but it faces three hard-to-avoid constraints:

    • Fragmented scenarios: Users stay for short periods and ask random questions, making it hard to accumulate reusable production workflows.
    • High substitutability: A low interaction barrier means a low switching cost, so user loyalty is built on novelty rather than workflow lock-in.
    • Unmeasurable value: Conversational output stays at the level of “suggestions.” Without binding to enterprise permission systems, data assets, and approval chains, it cannot form an auditable, accountable value loop.

    1.2 The Deployment Ceiling of Horizontal Copilots

    General-purpose, cross-scenario assistants try to cover long-tail needs by “doing a bit of everything,” but in enterprise environments they hit three walls: the permission wall (not knowing what the caller can see), the data wall (not knowing which copy is authoritative), and the process wall (not knowing who should approve the next step). The result is output that looks smart but cannot enter real business workflows.

    The conclusion is direct: the definition of a super entry point is shifting from “who gets opened the most” to “who can finish the job for the user.” This is the opportunity for the workflow execution layer.

    2. Strategic Perspective: Why Office Workflows Are the Best Landing Spot for Agents

    A convergence in direction is visible in platform moves. In its summary of first-quarter 2026 results, a leading internet company listed an office-focused productivity agent service alongside its self-developed large model, flagship consumer application, and intelligent coding tool as “new AI products,” calling it the most widely used productivity AI agent service.

    In the rigorous context of an earnings report, elevating an office agent to the same level as the underlying model is not rhetoric but a judgment: the marginal return of a general chat entry point is declining, while the marginal return of embedding agents into existing high-frequency workflows (instant messaging, audio/video conferencing, collaborative documents, cloud infrastructure) is rising.

    This can be argued along three dimensions:

    1. Data density: Office scenarios naturally accumulate a mix of structured and unstructured content—documents, spreadsheets, meeting notes, tickets, code repositories—which is ideal fuel for RAG and tool calling.
    2. Process density: Actions such as approvals, reviews, releases, and reconciliation already have explicit state machines, so an agent’s “next step” can be explicitly defined rather than guessed by the model.
    3. Measurement density: Outputs in office scenarios can be measured directly (ticket resolution time, document production cycle, defect regression rate), so proving value requires no extra constructs.

    3. Technical Architecture: A Deployable Workflow Execution Layer

    To upgrade from “being able to chat” to “being able to finish,” you need five layers of capability beyond the model.

    3.1 Orchestration Layer: Translating Intent into a Stateful Task Graph

    Do not cram all logic into one extremely long prompt. It is better to describe tasks with an explicit state machine or directed acyclic graph, where nodes are tool calls, edges are conditional branches, and a persistable execution context is maintained globally.

    1. # Example: workflow node definition with checkpoints and retries
    2. from dataclasses import dataclass, field
    3. from typing import Any
    4. @dataclass
    5. class TaskContext:
    6. trace_id: str
    7. user_scope: set[str] # resource scope visible to the caller
    8. artifacts: dict[str, Any] = field(default_factory=dict)
    9. approvals: dict[str, str] = field(default_factory=dict)
    10. def run_node(ctx: TaskContext, node, max_retry: int = 3):
    11. for attempt in range(max_retry):
    12. try:
    13. result = node.execute(ctx) # tool calls must be idempotent
    14. ctx.artifacts[node.name] = result
    15. return result
    16. except TransientError:
    17. if attempt == max_retry - 1:
    18. raise
    19. # write a checkpoint after each node to support resume from failure

    Key design points: tool calls must be idempotent, and write operations must carry an idempotency key; long-running tasks must support checkpoints and resume-from-failure so that one failure does not force a rerun of the entire chain.

    3.2 Tool Layer: Wrapping Enterprise Systems as Controlled Capabilities

    Maintain a unified tool registry that declares each tool’s name, input schema, required permissions, whether it is reversible, and its timeout and rate-limiting policy. The model is only responsible for selecting tools and filling parameters; the actual permission decision is made on the server side—never trust a permission conclusion produced by the model.

    3.3 Knowledge and Data Layer: Retrieval Quality Sets the Ceiling

    • Use hybrid retrieval (keyword + vector) with reranking to control recall noise.
    • Add version and effective-time metadata to documents, and answers must be traceable to specific passages.
    • Enforce a “single source of truth” constraint on authoritative data sources to avoid conflicts across copies.

    3.4 Permission and Compliance Layer: Fetch Data Under the Caller’s Identity, Not a Service Identity

    A common mistake is to have an agent use a high-privilege service account to access all data and then rely on the prompt to “voluntarily” filter it. The correct approach is identity pass-through: carry the caller’s identity in the context, have the data service return results under least privilege, trim sensitive fields at the retrieval stage, and retain audit logs across the entire chain.

    3.5 Evaluation and Cost Layer: Turning “Feels Good” into Metrics

    • Offline evaluation set: Build a task set with standard answers from historical real tickets, covering normal, boundary, and unauthorized-access samples.
    • Online metrics: task completion rate, human takeover rate, average handling time, and first-pass rate.
    • Cost governance: account for unit output cost per task rather than per token, cache retrieval results, route models by tier (small models for simple nodes, large models for complex reasoning), and compress and summarize context.

    4. Choosing Scenarios: Start with “Narrow and Deep” Vertical Use Cases

    Do not start from a “general assistant.” Start from narrow scenarios that are high-frequency, clearly ruled, and verifiable, such as ticket routing and summarization, turning meeting notes into action items, extracting key elements from contracts and reports, and specification checks in code review. These scenarios share clear input/output boundaries, errors that can be detected quickly, and benefits that can be directly converted into saved person-hours.

    Baidu AI Cloud emphasizes the same path in enterprise AI deployment practice: first build the foundation with general capability categories (model services, knowledge base retrieval, container platforms, message queues, logging services, monitoring and alerting), then deepen vertically around specific business workflows, using measurable metrics to drive iteration rather than pursuing one-time coverage of all scenarios.

    5. A Checklist of Common Anti-Patterns

    • Carrying all business rules in an extremely long prompt, making the system unmaintainable and untestable.
    • Letting an agent hold high-privilege credentials directly, creating risks of privilege abuse and data leakage.
    • Lacking a human takeover design, leaving users stuck in a dead loop when exceptions occur.
    • Counting only call volume but not completion rate, using vanity metrics to mask the value gap.
    • Ignoring idempotency and rollback, producing dirty data when a write operation fails.

    6. Conclusion

    The next phase of generative AI does not belong to the entry point that chats best, but to the execution layer that finishes the job best. For enterprise developers, the real moat is not model parameters but four engineering capabilities: scenario understanding, process modeling, permission governance, and evaluation systems. Putting agents into stateful, auditable, measurable, and rollback-capable workflows is how AI investment moves from “exciting pilots” to “profit contribution.”