Rebuilding a Conversational AI Web App with LLMs: Methods and Lessons from Six Model Setups
A comparison of six large language model and toolchain setups explores how AI agents approach product analysis, interface replication, and improvements to a conversational AI web app. The experiment highlights differences in testing depth, implementation fidelity, and self-verification, with practical lessons for staged prompting, acceptance criteria, and deployment.
Rebuilding a Conversational AI Web App with LLMs
1. Background and Goals
As large language model (LLM) agents become more capable, developers face a practical question: Can a model independently complete the workflow from understanding requirements and designing a product to implementing its frontend, with limited human intervention?
To explore this question, I compared six mainstream model-and-toolchain combinations. Each received the same task: recreate a typical conversational AI web app, then propose and implement an improved version.
The experiment was not intended to identify the “smartest” model. Instead, it examined differences in task decomposition, information gathering, execution depth, and self-verification.
2. Experiment Design
2.1 Required Deliverables
Each setup was asked to produce three deliverables:
- A product specification and structure diagram: Document the reference app’s features, interaction flows, and information architecture.
- A replica web app: Reproduce the original page’s functionality and user interface as closely as possible.
- An improved web app: Propose and implement UX and functional improvements based on the model’s own analysis.
2.2 A Two-Round Prompting Strategy
The experiment used two prompting stages, making the transition between them a key observation point.
- Round 1: Provide the requirements, a reference page address, and public API documentation. Ask the model to act as a senior product manager and full-stack engineer and complete all three deliverables. The prompt ended with an instruction to “forget all preset memories and existing skills, and get straight to work.” The intent was to reduce habitual approaches driven by prior context.
- Round 2: Provide an API key and observe how the model’s behavior changed once it could make actual API calls.
2.3 Consistent Experimental Conditions
All setups followed the same procedure, using identical prompts, reference materials, and acceptance criteria. The comparison focused on how each model chose to approach the task within its accompanying toolchain.
3. Key Behavioral Differences
3.1 API Access Revealed Differences in Execution Depth
After receiving the API key, the setups showed distinct approaches to validation:
- Minimal-validation approach: Some models modified the code, performed a basic functional check—such as confirming that the page could send a conversation request—and declared the task complete. This approach was efficient but could leave edge cases unresolved.
- Thorough-testing approach: Others proactively tested multi-turn conversations, unusual inputs, and long text. Some discovered bugs in their own implementations during regression testing and fixed them without further prompting. This demonstrated stronger autonomous planning and self-correction.
These approaches should not be reduced to a simple “good versus bad” distinction. Minimal validation may be appropriate when time is the primary constraint, while deeper testing is better suited to production work with higher quality requirements. The variation reflects different priorities in agent behavior.
3.2 Fidelity Depends on Engineering Details
The most consistently strong setup stood out in two areas:
- Attention to delivery details: Its product report included practical verification notes, such as checking shared links in another browser. This suggested an understanding of how the deliverables would be evaluated, rather than merely listing features.
- Precise interface replication: The replica closely matched the original, including the position and dimensions of the input field on mobile. It also reproduced core interactions such as conversation history management, streaming responses, and stopping generation.
The lesson is that replication quality cannot be judged solely by whether the overall layout looks similar. Responsive behavior, state management, and error handling are equally important—and easier to overlook.
4. Reusable Practices
4.1 Stage Prompts and Access
Avoid supplying sensitive information, such as API keys, in the initial prompt. Let the model complete design work first, then grant execution access. This makes its strategy easier to observe and reduces the risk of unintended actions.
A reusable prompt structure is:
Round 1: Role definition + requirements + reference materials + deliverablesRound 2: Credentials + encouragement to test autonomously + acceptance criteria
4.2 Put Acceptance Criteria in the Prompt
“Make it identical” is too vague to verify. Replace it with explicit requirements, such as:
- The conversation list supports creating, renaming, and deleting conversations.
- Messages render incrementally as responses stream.
- The layout has no horizontal scrolling at a viewport width of 375px.
Concrete criteria make it easier to distinguish a convincing visual prototype from a working implementation.
4.3 Evaluate Self-Verification Behavior
A model that proactively writes tests and reruns checks after changes offers greater confidence in real engineering work.
This behavior is a useful selection criterion for teams evaluating models and agents. It is more directly connected to day-to-day development than benchmark scores alone.
4.4 Plan for Cloud Infrastructure
Turning an experimental app into a usable service generally requires supporting infrastructure:
- A container platform to host the service.
- Object storage for attachments associated with conversation history.
- Logging, monitoring, and alerts to support operational stability.
- A gateway and key management service to control API credentials securely.
These are established infrastructure capabilities offered by major cloud providers, including Baidu AI Cloud. Developers should select services according to their deployment requirements.
5. Conclusion
The main takeaway was not which setup won. It was that the difference between capable models increasingly lies in execution depth and engineering discipline, rather than simply whether they can produce code.
Given the same prompts and materials, some models stopped at a minimally acceptable result, while others continued testing and refining their work. Understanding these differences—and guiding them through prompt design and workflow structure—is more useful than focusing solely on model rankings.
As agent collaboration matures, delivering a complete product from a single prompt may move from an experimental goal toward an everyday development workflow.
