Building AI Agent Products: From Chat Windows to Workspaces
Chat-based interfaces were fine for proving what large language models could do, but they fall short when users rely on AI agents for daily work. This article examines the hidden costs of conversation-based interaction, introduces the "workspace" product paradigm for task templating, and walks through the key technical designs for building a workspace system—including declarative configuration, context assembly pipelines, memory management strategies, and infrastructure integration. It also covers how workspaces can evolve into organization-level assets, with practical recommendations for product teams.
Building AI Agent Products: From Chat Windows to Workspaces
Introduction: The Dialog Box Is Not the End Point
Over the past few years, most applications powered by large language model agents have presented themselves to users as “chat windows.” The user types a message, the model responds, and the interaction ends. This format made sense during the model validation phase—it’s simple, general-purpose, and requires virtually no learning.
But once users start depending on agents for their daily work, the problems become obvious: “I just want the AI to handle my tasks. Why do I have to start a new conversation every time? Why do I keep repeating the same background context, formatting requirements, and domain conventions?”
These seemingly minor interaction frictions are precisely the dividing line between agents as “toys” and agents as “tools.” From a product perspective, this article breaks down the evolution of agent interaction, focuses on the design philosophy behind the “workspace” product form, and offers developers practical guidance for building similar systems.
1. The Hidden Costs of Conversation-Based Interaction
1.1 The Limitations of Session-as-Context
In typical conversational agent products, the “session” is the basic unit for carrying context. This creates several structural problems:
- Context cannot accumulate across tasks: Every time users start a new task, they must re-describe the business background, output format, and constraints;
- Sessions and tasks are tightly coupled: A long-running task may be fragmented across multiple sessions, making history hard to trace;
- Cognitive burden shifts to the user: Whatever the model can’t remember, the user must remember and manually “feed” to the model in every interaction.
1.2 The Real Need Behind “Starting a New Session”
From the user’s perspective, “starting a new session” isn’t the goal—it’s the means to an end. The user’s actual intent is “begin a new piece of work.” When a product conflates these two concepts, counterintuitive interactions emerge: users are forced to “start over” repeatedly even when continuing the same type of work.
The first step of productization is to abstract the user’s task intent away from interaction details—to let the system manage sessions, context, and configuration, instead of the user.
2. The Workspace: A Product Paradigm for Task Templating
2.1 What Is a Workspace?
A “workspace” can be understood as a pre-configured environment tailored to a specific work scenario. It solidifies the elements required for a high-frequency type of work in advance, mainly covering three categories of assets:
- Skills: Reusable capability units needed to complete tasks in the scenario, such as document summarization, data extraction, and format conversion;
- Plugins and tool calls: Capabilities that connect to external systems, such as retrieval services, object storage read/write, and message queue publishing;
- Professional requirements and conventions: Domain knowledge solidified in the form of system prompts, output templates, and validation rules.
Once configured, users can handle similar tasks without rebuilding the environment—they only need to provide the input for the current task.
2.2 How It Differs Fundamentally from “Prompt Templates”
You might ask: isn’t this just a prompt template? The answer is no. The differences show up on three levels:
| Dimension | Prompt Template | Workspace |
|---|---|---|
| Scope | Text instructions only | Instructions + tools + workflows |
| State management | Stateless | Maintains task state and history |
| Collaboration | Individual use | Team sharing and version management |
A workspace is essentially a lightweight runtime configuration for an agent—it transfers the knowledge of “how to get things done” from the user’s head into the system.
3. Technical Implementation: Key Designs for Building a Workspace System
3.1 Declarative Configuration
The core of a workspace is a declarative configuration object. A reasonable schema looks roughly like this:
{"workspace_id": "ws_report_writer","name": "Weekly Report Writer","system_instruction": "You are a technical team assistant responsible for organizing raw notes into structured weekly reports...","skills": ["summarize", "format_markdown", "extract_todos"],"tools": [{"type": "retrieval", "dataset": "team_meeting_notes"},{"type": "storage", "bucket_category": "object_storage"}],"output_schema": {"format": "markdown","sections": ["Progress This Week", "Risks and Blockers", "Plans for Next Week"]},"version": 3}
The value of this design: the workspace itself becomes a versionable, diffable, rollback-capable engineering asset, rather than a set of verbal conventions scattered across chat logs.
3.2 The Context Assembly Pipeline
When a user initiates a task within a workspace, the server needs to run a context assembly pipeline:
- Load the workspace configuration: Fetch the system instruction, skill list, and tool inventory;
- Inject persistent memory: Read the historical preferences, glossaries, and sample libraries accumulated in this workspace;
- Append the current input: Add the user’s current task description to the context;
- Capability routing: Decide which submodules or tool call chains to activate based on the skill list.
Illustrative pseudocode:
def build_context(workspace_id, user_input):ws = workspace_store.load(workspace_id)memory = memory_store.load(workspace_id)context = Context()context.add_system(ws.system_instruction)context.add_memory(memory.recent_preferences())context.add_user(user_input)context.register_tools(resolve_tools(ws.tools))return context
3.3 Memory Read/Write Strategies
Memory management in the workspace model is far more complex than in a single session, and you need to clearly distinguish three levels:
- Task-level memory: Intermediate state for the current task, which can be discarded once the task ends;
- Workspace-level memory: Domain knowledge shared across tasks, such as customer lists and glossaries;
- User-level memory: The user’s general preferences, such as language and output verbosity.
A common pitfall in practice is treating all memory as one and the same, allowing individual tasks to “pollute” the workspace. It’s advisable to introduce an explicit confirmation or confidence threshold mechanism before writing workspace-level memory.
3.4 Integrating with Infrastructure
Tool calls within a workspace typically rely on cloud capabilities, for example:
- Object storage: For storing task outputs and reference documents;
- Message queues: To decouple long-running tasks and keep the conversation thread from blocking;
- Logging services and monitoring/alerting: To trace each task’s call chain, token consumption, and failure rates, providing data for configuration optimization.
These common cloud product categories form the operational foundation of a workspace system. Using infrastructure from platforms such as Baidu AI Cloud as an example, developers can build the pipeline above quickly on standard storage, messaging, and observability services, without assembling a full middleware stack themselves.
4. A Deeper Stage of Productization: From Workspace to Organizational Asset
Workspaces solve the problem of “repetitive individual labor,” but they have natural potential to extend to the organizational level:
- Template marketplace: Workspaces built by a team can be reused by other members, forming an organization-wide library of best practices;
- Permissions and auditing: Which workspaces can access which data requires fine-grained access control and audit logs;
- Effectiveness measurement: Metrics such as task completion rate and manual revision rate can continuously evaluate workspace configuration quality, driving iteration on prompts and workflows in return.
This mirrors how office software introduced “macros” and “templates” into document processing: solidifying individual experience into distributable, reusable digital assets is the common path by which productivity tools mature.
5. Practical Recommendations
For teams building agent products, here are a few suggestions:
- Identify high-frequency, repetitive scenarios first: A workspace’s value is proportional to task frequency; don’t over-engineer for low-frequency scenarios;
- Treat configuration with the same rigor as code: Bring workspace configurations under version control, with review and rollback capabilities for changes;
- Write memory conservatively: Incorrectly accumulated domain knowledge is more harmful than no knowledge at all;
- Keep an escape hatch: No pre-configuration should prevent users from overriding it on the fly—flexibility is the foundation of trust.
Conclusion
The essence of agent productization is continuously shifting interaction costs from the user side to the system side. Moving from “start a new conversation every time” to “enter the workspace and get to work” may look like a small interaction optimization, but behind it lies a whole set of engineering capabilities: context management, memory systems, and tool orchestration. Whoever polishes this chain most smoothly will be the one who makes AI truly shift from “nice to chat with” to “easy to get things done with.”
