Replicating LLM Applications: A Full Workflow from Requirements to Delivery

    This article breaks down a practical evaluation method for AI coding tools: replicating a public conversational web application from requirements to delivery. It covers a unified, variable-controlled evaluation setup, six scoring dimensions, the engineering breakdown of three deliverables (documentation, high-fidelity replica, enhanced version), and a layered verification strategy once real API credentials are provided. Readers will find reusable prompt templates, a common defect checklist, and the key takeaway that verification depth predicts delivery quality better than visual fidelity alone.

    1. Background: Why Replicating a Conversational App Is a Strong Capability Test

    Once a model’s capabilities are released as open weights or open interfaces, a natural engineering question arises: can developers use AI coding tools to rebuild a mature conversational product end to end? The value of this exercise is not “copying a page.” It stress-tests several underlying model capabilities at once: long-context understanding, UI structure reconstruction, API protocol parsing, state persistence across turns, and the closed-loop ability to locate defects and iterate autonomously once real credentials are available.

    This article is not about any specific vendor’s product. Instead, it abstracts the task into a general engineering problem: given a publicly accessible conversational web app and a public API usage guide, an AI coding tool must produce three deliverables under a unified set of constraints, and different models and execution frameworks (harnesses) are compared horizontally against a shared standard.

    The original task setup is representative and can be abstracted as follows:

    1. Role: Senior product manager + front-end architect
    2. Inputs: Target site URL, public API documentation URL, available browser automation
    3. Deliverables:
    4. 1) Product feature documentation + feature structure diagram
    5. 2) High-fidelity replica (UI and interactions aligned with the original)
    6. 3) Enhanced version (UX and feature improvements on top of the original)
    7. Constraints: No prebuilt skill packs or external extensions; execute directly

    The two-round prompt design is especially important. The first round provides only the requirements, revealing the model’s autonomous planning and clarification ability. The second round adds real API credentials, revealing whether the model proactively performs deep verification. This design decouples “can it write the code” from “can it verify the code is correct” — the most frequently overlooked yet most differentiating part of the evaluation.

    2. A Unified Evaluation Method: Controlling Variables Matters More Than Piling Up Models

    For a horizontal comparison to be meaningful, the variables must be fixed first. Practices that work well include:

    • Unified inputs: All subjects receive exactly the same two-round prompts, with no biased additions.
    • Unified environment: The same browsing and execution capabilities, the same network conditions, the same credential injection timing.
    • Unified delivery criteria: Acceptance standards for the three deliverables are defined upfront, avoiding after-the-fact adjustments.
    • Unified rounds: Round one is requirements, round two is credentials; the interval and operating procedure between rounds stay consistent.

    On this basis, the evaluation dimensions can be split into six, each scored independently and then weighted:

    Dimension Focus Typical point loss
    Requirement understanding Whether implicit constraints are identified Missing responsive adaptation, state persistence
    Documentation quality Completeness of the feature list and accuracy of the structure diagram Only listing pages, no hierarchy
    Fidelity Consistency of layout, spacing, control dimensions Acceptable on desktop, broken on mobile
    Enhancement design Whether optimizations are justified and actionable Piling on irrelevant features, breaking existing habits
    Autonomous verification Whether defects are dug out after credentials arrive Only a one-off “it works” smoke test
    Delivery standards Runnable code, clear structure Missing dependencies, no one-click startup

    A counterintuitive but important observation: differences in the autonomous verification dimension often predict final delivery quality better than fidelity does. Given the same inputs, some execution strategies run the minimal path once credentials arrive and declare completion; others construct multi-turn conversations, very long inputs, and interrupted sessions to proactively expose boundary defects and go back to fix them. This difference is not a single measure of model “smartness” but a strategy orientation produced by the combination of model and execution framework.

    3. Engineering Breakdown of the Three Deliverables

    3.1 Product Feature Documentation and Structure Diagram

    High-quality documentation should at least cover: information architecture (level-1/level-2 feature ownership), core user journeys (the shortest path from entry to result), states and feedback (loading, failure, rate limiting, empty states), and non-functional constraints (input length limits, concurrency and rate-control policies). The structure diagram should use a tree hierarchy rather than a flat list:

    1. Conversational app
    2. ├── Session management
    3. │ ├── Create / rename / delete
    4. │ ├── History list and search
    5. │ └── Share links and permissions
    6. ├── Input and generation
    7. │ ├── Text input and length validation
    8. │ ├── Attachment/multimodal entry points
    9. │ ├── Streaming output and interruption
    10. │ └── Regenerate / edit and re-ask
    11. ├── Result consumption
    12. │ ├── Code block highlighting and copy
    13. │ ├── Structured content rendering
    14. │ └── Export and sharing
    15. └── Account and settings
    16. ├── Theme and language
    17. ├── Keyboard shortcuts
    18. └── Data and privacy

    The most frequently missed item in documentation — and the one that most affects fidelity — is how to validate share links. This capability usually depends on session state and cross-environment consistency, and must be cross-verified in different browsers or with different accounts; otherwise it is easy to reach the wrong conclusion that “the feature works.”

    3.2 High-Fidelity Replica: Details Decide Success

    The engineering focus of a replica is not “does it look similar” but quantifiable alignment items: grid and breakpoints, control height and corner radius, spacing rhythm, font hierarchy, scroll container boundaries, and the sticky behavior of the mobile input area. In practice, it helps to build an alignment checklist and verify item by item:

    1. [ ] Desktop main content max width and centering approach
    2. [ ] Sidebar collapse/expand threshold
    3. [ ] Mobile input area sticky behavior and keyboard popup behavior
    4. [ ] Scroll-follow strategy during streaming output
    5. [ ] Empty, error, and rate-limit message copy and placement
    6. [ ] Contrast in dark mode

    The position and size of the mobile input box are the most common point loss: desktop is often reproduced well, but once the viewport narrows, a non-sticky input area, occlusion by the virtual keyboard, or unhandled safe areas can quickly invalidate “high fidelity.”

    3.3 Enhanced Version: Optimizations Must Be Justified

    More features do not mean a better enhancement. Reasonable directions include in-session search and navigation, prompt snippet reuse, retry on failure and fallback hints, accessibility improvements (focus management, semantic labels, contrast), and observability instrumentation. The standard for a qualified enhancement is simple: does it shorten the path to the goal without breaking users’ existing habits?

    4. After Credentials Arrive: A Generational Gap in Verification Strategy

    Injecting real credentials in the second round is the watershed of the whole evaluation. A mature execution strategy performs layered verification:

    1. Connectivity: Does the minimal request succeed, and are authentication and error codes handled correctly?
    2. Protocol consistency: Do streaming chunks, end markers, timeouts, and reconnection match the API guide?
    3. Boundary pressure: Behavior under very long inputs, empty inputs, special characters, and rate control under concurrent requests.
    4. End-to-end path: The full loop from UI interaction to result rendering, including interruption and regeneration.
    5. Regression fixes: Locating root causes of found defects, fixing them, and retesting.

    A shallow strategy usually stops at step 1. The deliverables look complete but hide several problems that only surface under real traffic. Verification depth should be treated as a first-class scoring factor, not a bonus for the model.

    5. Reusable Prompt Template

    1. You are a senior product manager and front-end architect. Goal: replicate a publicly accessible conversational web app.
    2. Inputs: <site URL>, <public API documentation URL>, available browser automation and execution.
    3. Round one: output only the plan and clarifying questions; do not write code.
    4. Deliverables:
    5. A. Feature documentation (with tree-structured feature diagram, state and exception notes)
    6. B. High-fidelity replica (UI and interactions aligned with the original, including mobile adaptation)
    7. C. Enhanced version (explain the rationale and expected benefit of each optimization)
    8. Constraints: no prebuilt skill packs or external extensions; code must run directly; no third-party identifiable marks.
    9. Round two: I will provide API credentials; you must perform layered verification and fix issues, then provide a verification report.

    6. Common Defect Checklist and How to Avoid Them

    • Reproducing visuals but not states: Missing loading, failure, rate-limit, and empty states makes it “look similar but feel different.”
    • Broken responsiveness: Arbitrary breakpoints cause layout collapse on narrow screens.
    • Too-shallow verification after using credentials: Missing boundary and regression steps.
    • Off-track enhancements: Adding features that conflict with the original product’s positioning and raise the learning cost.
    • Non-runnable delivery: Undeclared dependencies, hard-coded configuration, missing startup instructions.
    • Documentation disconnected from implementation: Structure diagram inconsistent with code, sharply increasing maintenance cost.

    7. Conclusion

    Using “replicate a conversational app” as an evaluation vehicle is essentially testing an AI coding tool’s full closed loop: requirement clarification, documentation output, UI reconstruction, and autonomous verification. What really differentiates results is not whose page looks fancier, but who can verify more deeply, align details, and deliver to standard under unified constraints. For developers, building an evaluation method with controlled variables, clear dimensions, and verification depth built into scoring has more long-term value than chasing a single model ranking; in real projects, the same method can be applied directly to selecting and continuously evaluating AI coding tools.