Replicating an AI Chat Web Page Using LLMs: Testing Six Solutions and Methodologies
This article explores an experiment where six combinations of Large Language Models (LLMs) and execution frameworks were used to replicate a mainstream AI chat web page without writing manual business code. It evaluates their performance across product analysis, UI replication, and API integration, and distills practical methodologies for leveraging AI in web app prototyping.
Replicating an AI Chat Web Page Using LLMs: Testing Six Solutions and Methodologies
I. The Motivation: When Open Source Makes Product Replication Possible
In recent years, the capability boundaries of open-source Large Language Models (LLMs) have been continuously expanding. Some providers have even released comprehensive resources ranging from model weights to deployment scripts, implying in their technical articles that developers can replicate applications almost identical to their official products. This level of openness is rare in the industry and sparked an interesting discussion: when model capabilities, API documentation, and product forms are all open to developers, exactly how difficult is it to “replicate a mature product”?
To answer this question, we designed an experiment: without writing a single line of business code manually, we used prompts to drive an LLM and an execution framework (a combination of model + agent shell, hereafter referred to as the “harness”) to fully replicate a mainstream AI chat web page, and compared the performance of different combinations. This article reviews the design logic, execution process, key findings, and methodology established during the entire test.
II. Experiment Design: Tasks, Contenders, and Two Rounds of Prompts
2.1 Task Decomposition
Replicating a chat web page may seem like “drawing a page,” but it is actually a complete micro-product engineering task. We broke the task down into three deliverables:
- Product Feature Report and Structure Diagram: The model was required to first analyze the functional components of the target web page from a product manager’s perspective and output a structured product document. This step evaluated the model’s information extraction and requirements analysis capabilities.
- 1:1 Replicated Page: The UI layout, interaction logic, and core features had to be highly consistent with the original page, testing the model’s front-end engineering capabilities and attention to detail.
- Autonomously Optimized Version: Based on its understanding of the product, the model was asked to redesign an improved page, allowing it to research industry practices and introduce reasonable new features, testing the model’s product judgment and innovation capabilities.
2.2 The Contenders
We selected six “model + harness” combinations to participate in the test, covering flagship models from different providers paired with mainstream forms such as command-line programming agents and client tools. It should be noted that different harnesses have differences in task planning strategies and tool-calling permissions (such as web browsing, file reading/writing). These differences were part of the experimental observation themselves.
2.3 Two-Round Prompt Design
The prompts were designed in two progressive rounds:
Round 1 (Requirements Round): Defined the role (Senior Product Manager), task background (target web page URL and API documentation URL), the three deliverables requirements, and asked the model to “clear existing memory and configurations, and start executing directly.”
Round 2 (Integration Round): Informed the model of the available API key and required it to upgrade the replicated page from a static demo to a fully functional application capable of real conversations.
The reason for splitting this into two rounds was to observe a key behavioral difference: after receiving the key, would the model only do the minimum verification to “make it run,” or would it proactively conduct deeper integration tests, find defects, and iterate to fix them?
III. Key Observations During Execution
3.1 Report Quality: Sensitivity to Details Beyond Restoration
High-quality combinations would proactively note acceptance testing considerations in their product reports, such as “the share link feature needs to be verified in an incognito browser environment to avoid login state interference.” Such details indicate that the model was not just listing features, but also anticipating acceptance risks from the perspective of a real tester. Conversely, some combinations’ reports remained at the level of feature checklists, lacking interaction flowcharts and boundary case explanations.
3.2 UI Restoration: Pixel-Perfect Alignment is Not Easy
The difficulty of a chat web page lies not in the overall layout, but in a large number of “hidden details”: the position and size of the input box on mobile, the rounded corners and spacing of message bubbles, sidebar collapse animations, and the adaptive height of the input box for long text, etc. The best-performing combination was able to check item by item against the original site, outputting a restoration effect almost indistinguishable from the official site, even covering mobile adaptation. Weaker combinations showed obvious deviations in detail dimensions and responsive behavior.
3.3 Testing Depth: Round Two is the Watershed
After the API key was integrated in Round 2, the strategic differences between combinations were fully magnified:
- Minimum Verification Type: Only conducted the simplest request smoke test, declaring the task complete as soon as the page could send a message and receive a reply.
- Deep Self-Testing Type: Proactively constructed multi-turn conversations, anomalous inputs, and streaming output interruptions for testing. In this process, they found and fixed defects such as “key not injected correctly,” “history messages not persisted,” and “streaming rendering flicker,” and then ran regression tests again.
Under the premise that our operation methods were completely uniform, this difference can only be attributed to the task planning strategies of different models and harnesses: whether “verification” is considered part of the task, or whether the prompt is merely treated as a requirements checklist to tick off.
IV. Conclusions and Methodology
4.1 Overall Conclusion
Among the six combinations, the best overall performer was a flagship general-purpose model paired with a mature coding agent: the product report was well-structured with detailed tips, the replicated page achieved high-fidelity restoration on both mobile and desktop, and multiple rounds of self-testing and fixes were conducted during the integration phase. Notably, the target product’s own model did not perform optimally when participating in the replication—“the model that knows the product best” does not equal “the model best at replicating the product according to requirements,” because replication tests the rigor of executing clear instructions, not prior familiarity with the product itself.
4.2 Reusable Practical Recommendations
Based on this experiment, we have distilled the following recommendations for using LLMs to quickly replicate or prototype a Web application:
- Documentation Before Code: Requiring the model to produce a product analysis report before writing code can significantly reduce rework rates, and the report itself serves as a basis for acceptance testing.
- Layered Capability Validation: Split “static restoration,” “API integration,” and “exception handling” into independent stages with separate prompts to prevent the model from cutting corners under a single prompt.
- Mandatory Self-Testing Clauses: Explicitly requiring the model to list test cases and execute verification in the prompt can effectively curb the perfunctory behavior of the “minimum verification type.”
- Mind the Harness Differences: The same model may perform vastly differently under different execution frameworks. Tool capabilities and planning strategies of the framework should be included in the evaluation during selection.
- Third-Party QA Perspective: For restoration tasks, using “incognito environment + multiple terminals” as acceptance criteria can expose a large number of issues that the model considers completed.
V. Conclusion
The significance of this experiment is not about “who wins or loses,” but about verifying a trend: when model capabilities and engineering frameworks are mature enough, the threshold for replicating a mature Web application has dropped to the level of “writing two rounds of prompts.” For developers, true competitiveness is shifting from “knowing how to write code” to “knowing how to define requirements, design validations, and manage agents.” Replication is just the starting point; how to make innovations that surpass the original version on this basis is the challenge for the next stage.
