Replicating a Conversational AI Web App with Multiple LLMs: A Technical Practice
This article presents a reproducible framework for comparing multiple LLMs and execution frameworks by replicating a conversational AI web interface. It covers the two-round prompting setup, three required deliverables, a four-dimension scoring rubric, key implementation details such as information architecture, streaming state machines, and context management, plus recommendations for evaluation and optimization. Readers will learn how to standardize deliverables, acceptance criteria, and verification depth to obtain stable, transferable results.
1. Background and Experiment Goals
A common mistake in multi-model comparisons is evaluating only the final answers while ignoring the process. To make the comparison reproducible, this practice uses a task close to real R&D work: taking the web interface of a conversational AI product as a reference, multiple models work with their own execution frameworks to produce three deliverables—a product feature document with a function structure diagram, a high-fidelity UI replica, and an optimized version based on their own experience.
This scenario was chosen because it covers five capabilities at once: product analysis, information architecture, frontend implementation, integration testing, and experience optimization. It therefore exposes the differences between models in long-chain tasks fairly completely.
2. Experiment Design: Trading Constraints for Comparability
2.1 Unified Input: Two Rounds of Prompts
The first round provides only the requirements, with no API credentials, to observe how each model plans and implements under no external dependencies. The second round adds the credentials to see whether the model proactively performs end-to-end verification. The delta between the two rounds is often more informative than a single-round result.
2.2 Unified Deliverables: Three Artifacts
- Product report: feature list, page hierarchy, interaction descriptions, and a function structure diagram;
- Replica: UI and interactions as close to the reference as possible;
- Optimized version: experience and feature improvements based on an understanding of the original design.
2.3 Unified Acceptance: Quantifiable Criteria
Break acceptance into four scored dimensions: visual fidelity, feature completeness, code runnability, and verification depth. Verification depth is the most overlooked yet most critical item.
3. Key Observation: Strategy Differences Matter More Than Result Differences
In the second round after credentials were added, different models and execution frameworks diverged clearly. Some performed only a minimal connectivity check before declaring completion; others proactively constructed multi-turn dialogues, abnormal inputs, long text, and concurrent scenarios, finding and fixing defects during self-testing.
This is not a matter of capability level but of strategy orientation: the former favors fast delivery, the latter favors closed-loop verification. Under identical operating conditions, this shows that evaluation should focus on a framework’s default behavior rather than a single accidental performance.
4. Technical Highlights of the Replica
4.1 Information Architecture First
Producing the function structure diagram before writing code significantly reduces rework. A typical hierarchy is:
- Session layer: session list, create, rename, delete, pin;
- Interaction layer: input box, multi-turn context, streaming output, stop generation, regenerate;
- Capability layer: attachment upload, content parsing, structured output;
- System layer: login state, settings, keyboard shortcuts, themes, and accessibility.
4.2 Streaming Rendering and State Machine
The core difficulty of a conversational UI is state consistency. Use an explicit state machine to manage the lifecycle of one generation:
idle -> submitting -> streaming -> completed\-> aborted \-> failed
Combined with request identifiers and cancellation tokens, this avoids typical defects such as fragments still being written back after generation is stopped.
4.3 Prompt and Context Management
When replicating, assemble the system prompt, message history, and current input in layers, and apply a length budget to the history. When the limit is exceeded, truncate by turn or compress with summaries to prevent context overflow from causing behavior drift.
5. Design Approach for the Optimized Version
Improvements should not pile up features but revolve around measurable experience metrics: time to first token, recovery from generation interruption, error readability, and keyboard accessibility. Four capabilities can be prioritized: in-session search, message-level branching and retry, structured export, and fine-grained permissions with auditing. On the engineering side, decouple prompt templates, the model adapter layer, and UI rendering so that swapping models does not affect upper-layer interactions.
6. Recommendations for Running the Evaluation
- Fix randomness and version numbers, and record the prompt and artifact hash for each run;
- Add automated inspection scripts covering connectivity, stream interruption, overly long inputs, and concurrent sessions;
- Use double-blind review with a deduction-based scoring system to reduce subjective bias;
- Track “whether defects are proactively found and fixed” as a separate metric.
7. Conclusion
The value of multi-model comparison lies not in rankings but in building a reusable evaluation framework. Standardizing deliverables, acceptance criteria, and verification depth at the same time makes conclusions stable and transferable, and truly feeds back into the R&D process.
