What an AI Agent Really Is: The Evolution from Chat to Autonomy
This article clarifies why the term "agent" has become overused and how to separate capability form from product form. It breaks down three system capabilities—chat, workflow, and agent—by who controls the process and how state is stored and evolves, explains that a wrapper is only an interaction shell, and offers practical guidance on matching autonomy to task uncertainty, plus the memory, observability, and evaluation infrastructure needed to deploy these systems reliably.
Products with any AI inside are now almost all labeled “agents”: a web chat window, a scheduled automation script, even a small plugin that calls a model API to translate text. Once the concept is stretched this far, the technical differences get hidden. When teams evaluate options, they easily hand a “needs a fixed process” requirement to an uncontrollable autonomous system, or force a “needs autonomous decisions” scenario into a rigid script—and end up losing control of both outcomes and cost.
To untangle these terms, the first step is to admit they do not sit on the same dimension. Chat/Chatbot, Workflow, and Agent describe the capability form of a system; they answer “who holds control over the process, and how is state stored and evolved.” Wrapper describes the product form; it answers “how capabilities are packaged into an interface that ordinary users can use directly.” Comparing the capability layer and the product layer in the same breath is the root reason most debates never reach a conclusion.
1. Capability Layer: Three System Forms
Chat: Request–Response Information Exchange
The typical interaction is the user types a sentence and the system replies with a paragraph, and each turn advances only when the user takes the initiative. Its value concentrates on “single-shot” tasks such as information retrieval, instant Q&A, and text rewriting.
- Process control: entirely in the user’s hands; the system does not decide the next step on its own.
- State management: stateless or weakly stateful. Context expires when the session ends, and the system does not record “where you left off last time.”
- Core limitation: it only answers, it does not finish the job. When a task requires cross-system operations and multi-step verification, the chat form pushes the entire orchestration burden onto the human.
In engineering terms, weak state does not mean no context. Most implementations concatenate the most recent several turns of messages into the request, which creates two practical problems: first, the context window grows linearly with the number of turns, and cost and latency rise in step; second, key information gets diluted and the model’s attention scatters. A mature approach therefore introduces summary compression and key-point extraction, folding a long conversation into structured memory rather than piling up history without limit.
Workflow: A Deterministic Pipeline Predefined by Developers
In a workflow, developers fix the steps in advance—for example, “retrieve sources → extract key points → generate a summary → send a notification.” Each step has a clear input/output contract, and the model takes on semantic processing only at specific nodes, such as classification, extraction, or rewriting. Technically, this corresponds to general-purpose solutions like process orchestration engines, rule engines, or robotic process automation (RPA).
- Process control: in the developers’ hands; AI is the executor of a step, not the decision-maker.
- State management: stateful, but state flows one way along a fixed path, with nodes connected through agreed-upon data structures.
- Core limitation: no flexibility. A change in an upstream page structure, an interface timeout, or a missing return field will break the whole chain; it can only move along the preset route and will not reroute itself.
The reliability advantage of workflows is often underestimated: paths are enumerable, results are reproducible, and faults are traceable, so workflows remain the first choice in scenarios such as compliance review, financial reconciliation, and data cleaning. Illustrative orchestration logic is often just an explicit declaration of nodes and dependencies:
pipeline = [Node("fetch", handler=search_source),Node("extract", handler=pull_fields, depends_on="fetch"),Node("summarize", handler=llm_summarize, depends_on="extract"),Node("deliver", handler=send_notice, depends_on="summarize"),]# If any node fails, the run terminates; the error type and stack can be captured precisely
Agent: Closed-Loop Control Held by the Model
What the user provides is often a goal they have not fully thought through themselves, such as “put together a competitive analysis.” The agent needs to handle intent understanding, task decomposition, path planning, tool invocation, result verification, and merging of outputs, forming a “perceive–plan–act–observe” loop.
- Process control: in the model’s hands; whether the next step is to search, read a document, or run another round because the material is insufficient is decided at runtime.
- State management: stateful, and the plan itself can be dynamically revised; progress and intermediate conclusions are all persisted.
- Key capabilities: perceiving the environment, planning the path, using tools, and adjusting the approach in real time based on feedback.
The cost of autonomy is reduced determinism. In engineering, three types of constraints are typically used to pull it back into a controllable range. First, budget constraints that cap the maximum number of steps, the maximum number of tool calls, and total elapsed time. Second, permission constraints under which high-risk actions such as write operations, delete operations, and outbound sending must go through human confirmation or separate approval. Third, structural constraints that require intermediate outputs to follow a fixed schema, making them easy to validate and retry.
{"goal": "Output a competitive analysis summary","plan": ["retrieve public sources", "extract key metrics", "cross-validate", "generate conclusions"],"budget": {"max_steps": 12, "max_tool_calls": 20},"state": {"done": ["retrieve public sources"], "findings": [], "open_questions": ["pricing strategy missing"]}}
2. Product Layer: A Wrapper Is Only an Interaction Shell
A wrapper adds an interaction interface and peripheral facilities such as accounts, billing, and permissions on top of any of the capabilities above, so that users without engineering skills can use it directly. Wrapping the chat form produces the familiar chat clients and web dialog boxes; wrapping a workflow produces a visual process configuration console; wrapping an agent produces a workbench for submitting tasks and downloading outputs.
It must be stressed that interface friendliness has nothing to do with capability form. A product with a polished interface may have nothing more than single-turn Q&A at its core, while a plain-looking internal system may have a complete autonomous agent at its core. The判断 standard is always where process control belongs and whether state can persist and evolve—not the shell.
3. Selection and Deployment: Putting Autonomy in the Right Place
The first principle of selection is to match autonomy to the uncertainty of the task. Scenarios with stable steps and auditable results should favor workflows; only exploratory, open-ended scenarios whose paths cannot be enumerated in advance are worth introducing an agent; for pure information retrieval, the chat form is the most economical. In practice, a layered combination is more common: an outer agent handles intent recognition and task decomposition, while an inner layer pushes high-risk, compliance-heavy steps down into deterministic workflow nodes.
Deployment also requires three pieces of infrastructure. First, memory, which distinguishes short-term context from long-term knowledge: compress the former and inject the latter via retrieval, avoiding stuffing all history into the prompt. Second, observability, which records structured logs, trace identifiers, and metrics for every plan and every tool call, and pairs them with monitoring and alerting to pinpoint “why it took so many steps.” Third, evaluation, which uses a fixed task set to regress accuracy, step count, and cost, preventing the hidden degradation that prompt changes can introduce.
When implemented in the cloud, these capabilities are usually carried by general-purpose categories: container platforms host the runtime and elastic scaling, message queues handle asynchronous decoupling and peak shaving, object storage holds intermediate outputs and final deliverables, logging and monitoring/alerting services handle tracing and threshold notifications, and key and permission management constrain the boundaries of tool invocation. Baidu AI Cloud offers a relatively complete combination of such general-purpose capabilities, which can be assembled freely per scenario without being locked into a fixed form.
4. Conclusion
Chat, workflow, and agent are not a matter of new replacing old, but a three-stage evolution of control and state capability: from the user controlling the process with no memory, to the developer controlling the process with state flowing along a fixed path, to the model controlling the process with a plan that can revise itself. A wrapper is only the shell that delivers any of these forms to the user. Once you see this main thread clearly, you can make accurate judgments amid the conceptual noise: first ask whether the task tolerates uncertainty, then ask whether the cost of failure is bearable, and only then decide whether to hand over control.
