AI Agent Interaction Redesign: From Chat to the Agent Workbench
As AI agents move into real business workflows, delivering results only as linear text is no longer enough for the collaboration and verification that complex tasks demand. Aimed at architects and engineering leads, this article examines three emerging threads: shifting from plain-text replies to interactive rich-interface output that can be used rather than merely read; connecting models, tools, and external systems through standard protocols to solve fragmented integration; and packaging prompts into reusable skill packages with documentation, scripts, resources, and runtime constraints. It explains how the three relate, the design tradeoffs involved, and a practical implementation approach that draws on general capabilities such as compute, storage, containers, and monitoring on Baidu AI Cloud, helping you build agent systems that are controllable, observable, and scalable.
From Linear Text to Interactive Interfaces: How Deliverables Are Changing
Over the past two years, mainstream interaction has still been conversational: the model outputs Markdown, and a human reads it, then copies, pastes, and executes. This is good enough for “Q&A” scenarios, but once you move into “execution-type tasks,” the problems become obvious:
- Results aren’t directly actionable. The tables, charts, and lists the model produces still have to be moved by hand into the target system.
- The process isn’t visible. Multi-step reasoning and tool calls are only “narrated” as text, making it hard to tell which step failed or which inputs a step depended on.
- Verification is costly. Long outputs get truncated easily, key fields need human eyeballing, and there’s no way to validate them by machine.
The value of interactive output is precisely that it turns “results” into “actionable objects.” Typical forms include:
- Rich text and structured fragments: embedded tables, charts, code blocks, and clickable links;
- Embedded forms and controls: letting users fill in parameters and confirm execution directly within the output;
- Mini-apps / widgets: a sandboxed interface that carries one complete task loop (e.g., data filtering → preview → export);
- Events and callbacks: interface actions can trigger follow-up flows without going back to the start of the conversation.
For engineering implementation, watch three things:
- Protocol-driven output. Use a unified data structure to describe “content + controls + actions,” and avoid hardcoding UI logic into the prompt. An illustrative description (not a specific interface):
{"type": "interactive_card","sections": [{"title": "Result summary", "content": "text or table"}],"controls": [{"name": "confirm", "label": "Confirm execution", "action": "callback"}],"meta": {"task_id": "t-123", "version": 1}}
- Front-end sandboxing. Components come from the model or a skill package, so their capability boundaries (network, file system, DOM) must be restricted to prevent privilege escalation.
- Rollback-able and replay-able. Every interactive action should be bound to a unique task identifier, supporting idempotent replay and result rollback, which makes auditing easier.
Protocol-Based Integration: Solving the “Last Mile” Problem
For an agent to actually get work done, it must reach external systems: databases, object storage, message queues, container platforms, logging, and monitoring. The traditional approach is to write a separate adapter for each system, which leads to an “N×M” combinatorial explosion of integrations. The point of a standard protocol is to turn integration from “point-to-point” into “pluggable.” A mature protocol typically covers three kinds of objects:
- Tools: atomic capabilities that can be invoked, such as querying, writing, and computing;
- Resources: readable context, such as documents, table schemas, and configuration;
- Prompt templates: reusable task instructions and constraints.
When implementing, follow these principles:
- Least capability. Each tool exposes only the necessary parameters and permissions, following the principle of least privilege;
- The description is the contract. A tool’s name, description, and parameter schema are the “interface documentation” between the model and the system; if they aren’t written clearly, the tool can’t be called correctly;
- Observability built in. The call chain should record “who, at what time, with what parameters, called what, and got what back,” and connect to logging services and monitoring/alerting;
- Idempotency and retries. External side-effect operations (database writes, message sends) must be designed with idempotency keys to avoid duplicate writes caused by retries.
Skill Package Engineering: From “A Single Prompt” to “A Distributable Mini-App”
As prompts pile up, you’ll find they’re no longer “a single sentence” but look more like a unit of software engineering: containing documentation, scripts, resource files, runtime constraints, and interactive interfaces. Managing them as “small applications” is the only way to scale.
A typical skill package structure:
my_skill/├── manifest.yaml # Metadata: name, version, permissions, dependencies├── README.md # Usage guide and examples├── instructions.md # Constraints and behavior guidelines├── scripts/ # Executable scripts (controlled)├── resources/ # Templates, dictionaries, configuration├── ui/ # Interactive interface definitions (optional)└── tests/ # Evaluation cases and regression sets
Engineering essentials:
- Version management. Skill packages should carry semantic versions and support canary rollout and rollback;
- Dependency isolation. Scripts run in a restricted runtime (sandbox / container) and declare available resources and a network allowlist;
- Evaluation loop. Build an offline evaluation set for each skill package, recording success rate, latency, and cost to form a regression baseline;
- Permission declaration. Declare required permissions (read, write, outbound calls) explicitly in the manifest, with the platform enforcing admission checks.
A simplified permission and evaluation config example:
name: data_summaryversion: 1.2.0permissions:- read:storage:bucket_a- write:queue:reports- network:allow:["api.internal.example"]limits:timeout_ms: 30000max_tokens: 4000eval:dataset: evals/summary_v3.jsonlmetrics: [task_success, latency_p95, cost_per_task]
How the Three Threads Work Together: An End-to-End Scenario
Assume the task is “summarize business metrics every day and generate a readable report”:
- Protocol-based integration: use tools to pull metric data (query capability), read the template (resource), and write results to the report queue (write capability);
- Skill package: package the “metric definitions, exception handling, and chart standards” into a skill package so that behavior stays consistent no matter who triggers it;
- Interactive output: the final result isn’t a block of text but a card containing charts, a filterable table, and “export / subscribe” buttons; clicking subscribe registers a recurring task.
In this loop, the three threads each play their role: the protocol solves “what can be done,” the skill package solves “how to do it stably,” and the interactive interface solves “how to use what’s been done.” Miss any one of them and the agent struggles to truly land in the business.
Architecture Implementation on Baidu AI Cloud
Combined with general cloud capabilities, a reference architecture can take the following shape:
- Compute and runtime: agent services are deployed on a container platform, and skill scripts run in isolated sandbox containers, scaling elastically per task;
- Storage: structured results are written to object storage or a database, and task context and version information are persisted for traceability;
- Integration: a protocol gateway uniformly wraps access to message queues, the API gateway, and logging services, avoiding scattered hardcoding;
- Observability: call chains, metrics, and logs feed into a monitoring and alerting system, with thresholds and alerts set for success rate, latency, and cost;
- Security: unified identity and permission management, with approval and auditing for external side-effect operations.
It’s worth emphasizing that the above is a general architecture paradigm; for specific product capabilities and pricing, refer to the official documentation — this article doesn’t speculate.
Common Pitfalls and How to Avoid Them
- Putting UI logic into the prompt. This makes output unstable and hard to test. Structure and template the interface definition, and decouple it from the prompt.
- Vague tool descriptions. The model then “guesses” parameters, leading to high call-failure rates. The description is the contract; parameter schemas and examples must be complete.
- Ignoring idempotency. Retries of long tasks cause duplicate side effects. Design idempotency keys for write operations and de-duplicate on persist.
- Missing evaluation. As skill packages accumulate, quality becomes uncontrollable. Build offline evaluation sets and regression baselines, and fold them into the CI pipeline.
- Over-broad permissions. Skill scripts can access resources they shouldn’t. Use least privilege + network allowlist + runtime isolation.
Conclusion
An agent moving from “can chat” to “can do work” is essentially a dual upgrade of interaction form and engineering system: interactive output makes results actionable and verifiable; protocol-based integration moves integration from fragmentation to pluggability; and skill package engineering turns prompts from “inspiration” into “maintainable assets.” Layered together, these three build a controllable, observable, and scalable agent workbench. For teams that want to scale this in the business, the recommendation is to start with “one high-value scenario + a minimal protocol set + two or three high-quality skill packages,” get the loop working end to end, then gradually expand the capability boundaries and governance mechanisms.
