Rebuilding an Intelligent Conversational Web App with Multiple AI Models: A Practical Evaluation
This article presents a structured approach to reproducing an intelligent conversational web application with multiple AI models and coding agents. It explains how to turn product analysis into an executable engineering workflow, compares model performance in requirements understanding, implementation, and iterative optimization, and provides practical guidance for functional, visual, responsive, and security validation.
In the rapid development of generative AI applications, more developers are attempting to reproduce mature conversational products. Building a complete replica involves far more than creating a chat window. It typically requires product analysis, interaction design, frontend engineering, API integration, file handling, voice capabilities, responsive layouts, and quality assurance.
Using the reproduction of an intelligent conversational web app with multiple models and AI coding agents as an example, this article explains how to break a seemingly simple task into an executable engineering process. It also examines how different models perform in requirements analysis, code implementation, and iterative improvement.
1. Reproducing a Conversational Product Is More Than Building a Chat Box
Many people think of a chat application as an input field, a send button, and a list of messages. From a complete product perspective, however, a usable conversational web app usually includes the following modules.
Conversation Management
Users should be able to create new conversations, switch between historical conversations, rename conversations, and delete conversations. Existing content should remain available after a page refresh.
Conversation data should also follow a clear structure, including fields such as a conversation ID, title, creation time, update time, and message array.
Message Interaction
The message module must handle more than plain text. It may need to support streaming output, Markdown, code blocks, quoted content, error messages, and response regeneration.
Model responses usually arrive in segments rather than all at once. The frontend therefore needs to continuously update the current message instead of creating a new message node for every segment.
Input Capabilities
The input area should support multiline text, keyboard shortcuts for sending, line breaks, character limits, sending-state changes, and generation cancellation.
On mobile devices, developers also need to consider changes in viewport height when the virtual keyboard appears, the fixed position of the input area, and sufficiently large touch targets.
Extended Capabilities
Mature conversational products may also include file uploads, web retrieval, deep analysis, voice input, and text-to-speech playback.
These capabilities may not all be implemented on the frontend, but the interface must provide clear status feedback, including upload progress, processing states, failure reasons, and retry options.
For this reason, the first step in a reproduction project should not be writing code immediately. It should be building a product feature map.
2. Produce Product Documentation Before Development
The test project divided the work into three deliverables: a product report, a basic reproduction, and an improved version. This structure is useful because it prevents the model from entering the coding phase too early and overlooking key requirements.
2.1 Product Feature Report
A product report should cover at least the following areas:
- Overall page layout
- Relationship between the sidebar and main content area
- New-conversation and conversation-history flows
- Message-sending and message-receiving flows
- File-processing flow
- Entry points for voice features
- Error and empty states
- Differences between desktop and mobile experiences
- User interaction paths
- Potential future extensions
In addition to written descriptions, the report should include a functional structure diagram. For example:
Conversational Web App├── Conversation Management│ ├── New conversation│ ├── Conversation history│ ├── Rename conversation│ └── Delete conversation├── Message Interaction│ ├── Text prompts│ ├── Streaming responses│ ├── Regenerate response│ ├── Copy content│ └── Code display├── Input Enhancements│ ├── File upload│ ├── Deep analysis│ ├── Voice input│ └── Text-to-speech playback└── System Capabilities├── Authentication state├── Request errors├── Loading states└── Responsive adaptation
The value of this structure is that it converts “what the page looks like” into “what capabilities the system contains.” This makes it easier to assign development tasks and plan the implementation.
2.2 Basic Reproduction
The goal of the basic version is to reproduce the original product’s layout and interactions as accurately as possible. Personalization and visual redesign should not be introduced too early.
During development, pay particular attention to:
- Sidebar width and expansion behavior
- Maximum content width
- Message ordering and alignment
- Visual differences between user and model messages
- Input-field size and docking position
- Guidance text on empty pages
- Button icons, spacing, and hover feedback
- Mobile navigation and changes to the input area
Visual reproduction should not rely on screenshots alone. Screenshots provide static information but cannot explain state changes after a button is clicked, error-handling behavior, or data-update rules.
Analysts should therefore follow complete user flows, record how the page behaves, and convert those observations into interaction specifications.
2.3 Improved Version
An improved version should not simply change the color scheme or add a few buttons. It should address real usage problems. For example:
- Add search and categorization when users have many conversations
- Provide table-of-contents navigation and quick positioning for long responses
- Display clear progress and stage information while files are being processed
- Preserve already generated content after a network interruption and allow the request to continue
- Present code, tables, and quoted content in more readable formats
- Add keyboard shortcuts for keyboard users
- Provide larger touch targets on mobile devices
- Add undo actions or confirmation steps for frequent operations
The purpose of improvement is not to accumulate features. It is to reduce the effort required for users to complete their tasks.
3. Key Differences Observed Across Six Model Configurations
The test used six combinations of models and AI coding agents. Each combination received the same requirements and used the same development environment. The prompts were delivered in two rounds.
The first round described the product goals and deliverables. The second round provided the keys or runtime conditions required for access.
This testing method made it possible to observe how models behaved at two different stages.
3.1 Requirements Understanding
Some models first explored the page, organized a feature list, and then decided on the code structure. Others immediately created the page, which led to repeated rework later.
The first approach is generally more suitable for complex products because it is more likely to identify hidden requirements, such as mobile adaptation, request failures, empty states, and persistence of historical data.
3.2 Engineering Organization
A strong AI coding agent does not place all logic in one page file. Instead, it separates responsibilities into components such as:
- Conversation sidebar
- Message list
- Message card
- Input panel
- File attachment area
- Status indicator component
- Request service module
- Local data management module
A well-organized directory structure makes future extensions easier and simplifies troubleshooting.
3.3 Strategies After Key Injection
The differences between models became particularly clear after the second round supplied the information required for runtime access.
Some models only verified that a request succeeded once and then ended the task. Others continued checking whether:
- Streaming content was concatenated correctly
- An empty response caused a page failure
- Buttons returned to the correct state after a request error
- Repeated clicks created duplicate messages
- Long text broke the layout
- Failed file uploads could be retried
- The mobile input field was covered by the virtual keyboard
The latter behavior is closer to a real software engineering workflow. A successful request only proves basic connectivity; it does not prove that the product is usable.
4. A Recommended Acceptance Process
To reduce subjective judgment, teams can establish a consistent acceptance checklist.
Functional Validation
- Can users create a new conversation?
- Can users send ordinary text prompts?
- Can the application receive streamed output?
- Can users stop an active generation?
- Can users regenerate a response?
- Can users copy a response?
- Can users switch between historical conversations?
- Can the application handle request errors?
- Can users upload and display files?
- Can necessary state be restored after a page refresh?
Visual Validation
- Is the desktop layout stable?
- Does the application avoid horizontal scrolling on small screens?
- Is the input field always visible?
- Do long messages wrap correctly?
- Do code blocks and tables remain within their containers?
- Do light and dark themes provide sufficient contrast?
- Are loading, empty, and error states visually consistent?
Security Validation
Keys should not be embedded directly in frontend code or committed to a public repository. A more appropriate approach is to send requests through a server-side proxy, manage sensitive values with environment variables, and perform authorization checks, rate limiting, and log redaction on the server.
If the application stores files, it should restrict file types and sizes and avoid recording complete file contents in logs. User input should also be protected against script injection, malicious links, and unusually large requests.
5. Moving from Reproduction to a Maintainable Product
The ultimate value of a reproduction project is not merely copying a page. It is establishing a transferable development method:
- Observe before modeling: Convert page behavior into features and states.
- Implement the core flow before edge cases: Prioritize reliable sending, receiving, and conversation management.
- Use component-based development: Avoid coupling the interface, request logic, and data logic.
- Manage state consistently: Clearly distinguish loading, success, failure, and interrupted states.
- Validate automatically: Use fixed test cases to evaluate results generated by different models.
- Prioritize mobile experience: Do not use desktop browser behavior as the only acceptance standard.
- Address security early: Consider keys, files, and user data during the architecture phase.
Overall, the better-performing models shared three characteristics. They completed product analysis before implementation, generated clearly structured engineering code, and proactively performed multiple rounds of validation after receiving the runtime conditions.
By contrast, models focused only on generating a page quickly often overlooked error handling, responsive layouts, and data consistency.
For enterprises and developers, the value of AI coding tools is not determined by how much code they can generate in one pass. It depends on whether they can participate in the complete software lifecycle, including requirements clarification, solution design, coding, testing, acceptance, and continuous optimization.
Only by treating a model as a reasoning-capable collaborator rather than a simple code generator can teams significantly improve the development efficiency of complex applications.
