Multi-Model Collaboration for Replicating a Conversational Web App: A Practical Engineering Workflow
This article frames the replication of a conversational web app as a reproducible engineering workflow rather than a single API test. It describes three deliverables—product documentation with a feature structure diagram, a high-fidelity front-end replica, and an improved version—and examines model-plus-harness combinations through staged prompts, controlled browser access, and automated acceptance checks. Readers get a practical structure for planning, implementation, testing, and quality gates.
1. Problem Background: From “API Access” to Reproducible Delivery
When a conversational application opens its interfaces, it typically provides general capabilities such as retrieval augmentation, file input, streaming chat, text-to-speech, and speech recognition. Developers can then build Web applications with similar interaction patterns based on public APIs. At the same time, service-side governance policies such as call quotas and single-input length limits are common. For developers, the real value is not whether a single API can be called, but whether requirement analysis, product design, front-end implementation, API integration, and automated acceptance can be connected into a reproducible delivery chain.
This article therefore does not evaluate or recommend any specific product. Instead, it abstracts “replicating a conversational Web app” as a general engineering problem: given a reference Web client and public API documentation, a combination of “model + execution harness” completes three types of deliverables:
- A product feature document and a feature structure diagram;
- A high-fidelity replica of the conversational Web page;
- A new version improved according to general best practices.
Testing can use six combinations of “model + execution harness,” covering different strategies such as agent-team collaboration, code agents, long context, and standard-context clients. Under the same operations, different combinations show clear differences in requirement understanding, context management, tool-calling discipline, and testing depth. From an engineering perspective, the focus should be on “combined capability” rather than single-point model capability: the model handles planning and generation, while the execution harness handles tool calls, browser operations, test execution, and result feedback. Together they determine final delivery quality.
2. Test Design: Three Deliverables and Two Rounds of Prompts
To make the replication task acceptable, it is useful to divide prompts into two rounds. The first round provides the full requirement, and the second round injects the access key and triggers integration testing. The first-round prompt can be abstracted as:
Assume you are a senior product manager and need to replicate a reference conversational Web client. Read the public API documentation and complete three tasks: first, generate a product report document that explains the Web features and provides a product feature structure diagram; second, replicate the reference Web client with features and interface as consistent as possible; third, optimize the Web client based on your understanding and add appropriate UI/UX and features. Ignore external memory, skill plugins, and context-extension options, and begin execution directly.
The second-round prompt only tells the model the access key or integration credential, and observes its subsequent behavior. In actual execution, strategy differences appear: some combinations perform only the simplest smoke test after receiving the key, confirming that the page opens and messages can be sent; other combinations continue with deeper tests covering session switching, file upload, streaming rendering, error prompts, mobile layout, and other paths, and proactively find defects and iterate. Unified operations do not eliminate strategy differences, so acceptance should not only check “whether a page was generated,” but also “whether a test closed loop was formed.”
3. Phase One: Product Feature Document and Structure Diagram
A product report is not a simple list of page elements; it should complete the mapping from requirements to implementation. The document should contain at least: target users and core scenarios, page information architecture, key interaction flows, API capability mapping, state machine and exception branches, non-functional constraints, and an acceptance checklist. The feature structure diagram can be expressed with indentation levels to avoid dependence on a specific drawing tool:
Conversational App├─ Session Management│ ├─ New session / rename / delete│ ├─ History session list and search│ └─ Session export and share placeholder├─ Message Interaction│ ├─ Text input, send, stop generation│ ├─ Streaming output and Markdown rendering│ ├─ Citation sources and reasoning process display│ └─ Error prompts, retry, and rate-limit notices├─ Attachments and Voice│ ├─ File upload, type validation, progress display│ ├─ Voice input and voice playback entry│ └─ Attachment parsing status and failure retry└─ Settings and Account├─ Model / parameter selection placeholder├─ Theme, language, quick settings└─ Key configuration instructions and security notices
The document should also note acceptance considerations, such as compatibility of share links across browsers, mobile input area dimensions, and recovery strategies after streaming output interruption. The value of the structure diagram is that it gives subsequent front-end implementation clear boundaries and prevents the model from writing pages purely “by feel.”
4. Phase Two: High-Fidelity Front-End Implementation
High-fidelity replication should be divided into four layers: layout, components, state, and API. The layout layer focuses on desktop and mobile responsiveness; the component layer focuses on message bubbles, input area, attachment cards, voice buttons, and session sidebar; the state layer focuses on states such as loading, streaming generation, failure, rate limiting, and empty sessions; the API layer focuses on request wrapping, authentication, timeouts, retries, and log redaction. The execution harness should provide controlled browser access to the logged-in page for observing the reference layout, but access credentials must not be written into front-end code.
A general orchestration pseudocode is as follows:
def run_replication(goal, model, harness):spec = model.plan(goal)product_doc = model.generate_product_doc(spec)structure_graph = model.generate_structure_graph(product_doc)web_app = model.implement_web_app(spec)harness.open_browser()harness.inject_secret("ACCESS_TOKEN", env="SERVER_SIDE_ONLY")smoke = harness.run_smoke_tests(web_app)if harness.strategy == "deep":smoke += harness.run_regression_tests(web_app)bugs = harness.collect_bugs(smoke)web_app = model.fix_bugs(web_app, bugs)return product_doc, structure_graph, web_app, smoke
Key implementation points include: fixed positioning and safe-area adaptation of the input area on mobile; scroll anchoring of the message list; incremental rendering and throttling for streaming output; file upload type, size, progress, and failure retry; fallback entry for voice capabilities; mapping from error codes to user prompts; and the boundary between local caching and server synchronization of session data. Replication is not screenshot-level imitation; interaction states must be verifiable.
5. Phase Three: General Enhancements for the Improved Page
The improved version should focus on accessibility, observability, and maintainability. Possible additions include: keyboard shortcuts and focus management, screen reader semantics, message citation and source expansion, failure retry and checkpoint recovery, session export, cost and quota notices, a cross-browser acceptance checklist, log redaction, and front-end error reporting. For cloud deployment, general categories such as container platforms, object storage, logging services, and monitoring and alerting can be used, but should not be tied to specific vendor APIs.
6. Quality Gates and Conclusion
Acceptance should cover five types of gates: functional, visual, performance, security, and maintainability. These include automated regression of core paths; desktop and mobile screenshot comparison; first-screen and streaming-rendering latency baselines; server-side-only key injection, log redaction, input validation, and rate limiting; and auditable code structure, dependencies, and configuration. The conclusion is that the most stable replication results do not come from a single model, but from the combination of “model + execution harness + structured prompts + automated acceptance.” Enterprises should engineer the replication task and improve determinism through staged prompts, explicit deliverables, deep test closed loops, and security boundaries.
