Developing AI Applications with AI: Feasible Paths and Engineering Practices
This article examines what it means to develop AI applications with AI assistance, why traditional software engineering remains essential, and three practical development paths: developer-led AI coding assistance, controlled development agents, and low-code configuration generation. Using enterprise knowledge Q&A as an example, it covers acceptance criteria, architecture design, RAG, unified model service layers, dual risks in development and runtime, layered testing, and incremental delivery from prototype to production.
1. What Does Developing AI Applications with AI Actually Mean?
“Developing AI applications with AI” involves two distinct layers. First, AI can participate in software construction by assisting with requirements analysis, design, implementation, and validation. Second, the delivered software itself can provide intelligent capabilities such as knowledge Q&A, content generation, information extraction, or task execution.
The first is a development method; the second is an application form. They can be combined, but they should not be conflated. Using AI to generate business code does not mean a model must be trained. Building an AI application does not mean every module should be model-driven. Many real projects mainly rely on existing model capabilities and then form a complete application through data processing, business rules, permission control, and service orchestration.
So the answer is: feasible, but it requires engineering constraints. AI can shorten the distance from idea to prototype, but it cannot automatically eliminate requirement ambiguity, architectural defects, or security risks. Final delivery quality depends on whether clear task boundaries, verifiable acceptance criteria, and reliable runtime mechanisms have been established.
2. Why Do AI Applications Still Need Traditional Software Engineering?
There is a clear gap between a demonstrable intelligent Q&A page and a system that can reliably serve enterprise users.
A demo system usually only needs to receive a question, call a model, and display an answer. A production system must also handle user identity, data permissions, document versions, exception recovery, call costs, and audit records. When a model participates in business decisions, the impact of incorrect answers or tool invocation errors must also be considered.
The behavior of an AI application is not entirely the same as that of an ordinary program. Even with the same input, model output may be affected by generation strategy, context content, and model version changes. This means testing cannot only check whether an interface returns a result. It must also judge whether the result is correct, grounded, and compliant with business boundaries.
A reasonable division of responsibilities is:
- Deterministic rules should be executed by programs. Examples include amount calculation, permission decisions, state transitions, and approval conditions.
- Semantic understanding tasks should be assisted by models. Examples include summarizing text, identifying question intent, generating drafts, and organizing candidate information.
- High-risk actions should include a confirmation step. Examples include sending external messages, modifying critical records, or triggering irreversible operations.
This division is not meant to limit AI. It avoids assigning deterministic responsibilities to probabilistic output.
3. Three Main Development Paths and Their Boundaries
3.1 AI Coding Assistance: Developer-Led
AI coding tools are suitable for helping developers understand existing code, generate local implementations, add tests, and analyze errors. Developers provide context and constraints; AI proposes implementation approaches; humans then review and verify.
This approach is especially suitable for tasks with clear boundaries, such as adding input validation to an existing API, generating a page from a data structure, or adding tests for a pure calculation function. The clearer the task and the fewer the dependencies, the easier the output is to verify.
Note that code that compiles is not necessarily logically correct. AI may misunderstand business rules, duplicate existing functionality, or generate an implementation that does not match current engineering conventions. Code review should therefore still focus on data flow, exception paths, permission boundaries, and maintenance cost, not just syntax.
3.2 Development Agents: Letting AI Execute Controlled Multi-Step Tasks
Development agents not only generate text. They can also read files, modify code, run tests, and continue adjusting based on results within an authorized environment. This approach suits tasks that require coordinated changes across files, but it also expands the scope of errors.
In practice, agents should be placed in an isolated environment with limited accessible directories, executable actions, and available credentials. Actions such as deleting files, modifying data structures, accessing external networks, and releasing deployments should require additional approval.
Results submitted by an agent should include a change summary, test results, and unresolved issues so that developers can verify them. Independent verification should not be omitted simply because the agent reports that the task is complete.
3.3 Low-Code Configuration Generation: Platform Constraints Improve Controllability
Another approach is to let AI generate forms, workflows, pages, and data model configurations from business descriptions, which are then interpreted and executed by a low-code platform.
When the business mainly consists of data entry, approval flows, query and statistics, and notifications, this approach can reduce repeated implementation. Because configurations are constrained by platform rules, some structural errors are also easier to detect.
However, configuration generation does not mean technical judgment is unnecessary. Complex permissions, cross-system transactions, special interactions, and high-load handling may still require dedicated design. When evaluating this option, check whether configurations can be validated, versioned, audited, and rolled back, and whether extension logic has clear boundaries.
These three paths are not mutually exclusive. A project can use low-code to build business pages, use AI coding assistance to implement extension modules, and use controlled agents to perform local modifications and tests.
4. Define Acceptance Criteria Before Letting AI Generate Implementation
One of the most common problems in AI-assisted development is that a requirement seems simple but is actually ambiguous. For example, “build an enterprise knowledge assistant” does not specify the knowledge scope, user permissions, answer basis, or failure handling.
Before implementation begins, at least the following questions should be answered:
- Who uses the system, and what specific task does it solve?
- Which data can be used as the basis for answers, and how often is it updated?
- Do users have different data access scopes?
- When information is insufficient, should the system refuse to answer, ask follow-up questions, or hand off to a human?
- Does the application only provide suggestions, or can it modify business data?
- How do we determine whether an answer or an operation succeeded?
Requirements should be translated into checkable conditions as much as possible. For example, “answers must be accurate” is too abstract. “Answers must provide verifiable sources and must not cite documents the current user is not authorized to access” is more useful for design and testing.
Task descriptions given to development AI should also include the goal, existing structure, allowed modification scope, prohibited actions, and acceptance method. Do not ask it to generate an entire system at once. Split the work into small tasks that can be independently verified and merge them step by step.
5. Designing Application Architecture with Enterprise Knowledge Q&A as an Example
Enterprise knowledge Q&A is a general scenario suitable for discussing this method. Its core is not just model invocation, but the establishment of a trusted chain from materials to answers.
A common flow is:
User asks a question → identity and permission check → retrieve authorized materials → organize context → call the model → check the answer and sources → return the result and record runtime information.
5.1 Data Preparation Determines the Baseline Quality of Answers
Before documents enter the system, issues such as duplicate content, outdated versions, parsing failures, and missing structure should be handled. When splitting materials, preserve titles, paragraph relationships, and provenance as much as possible. Avoid separating key conditions from the main text, which can cause retrieved snippets to lose their meaning.
The data scope accessible to different users should be expressed through permission information on documents or snippets. Permissions cannot rely only on prompting the model not to leak information. They must be enforced by retrieval and business services.
5.2 Retrieval-Augmented Generation Reduces Reliance on Model Memory
The basic idea of retrieval-augmented generation is to first find relevant content in a knowledge base and then let the model answer based on that content. It is suitable for scenarios where knowledge changes quickly, sources must be provided, or internal materials are involved.
This architecture can improve the basis for answers, but it cannot guarantee that answers are correct. Retrieval omissions, incomplete snippets, conflicting sources, and model misinterpretation of context can all cause errors. Retrieval results and generation results should be checked separately rather than attributing all problems to the model.
5.3 Model Calls Should Be Managed Through a Unified Service Layer
Model calls are suitable for centralized encapsulation, with unified handling of timeouts, errors, rate limiting, and usage records. For retryable requests, the number of retries should be limited. For operations involving business writes, duplicate execution must be prevented, and the same strategy cannot simply be applied.
When the model is unavailable, the application can return retrieved materials, preserve task state, or prompt the user to retry later. The degradation approach should be chosen based on business needs, not by using unverified answers to maintain superficial availability.
6. Let AI Participate in Development While Guarding Against Dual Risks
AI-assisted development and AI application runtime introduce two different types of risk.
During development, AI may access code, configurations, and test data. Avoid submitting real keys, production credentials, and unnecessary sensitive information. Use masked samples or isolated data for validation. Generated implementations require review of dependency sources, permission usage, and exception handling, and should not enter production directly.
During runtime, the model may encounter user input, retrieved documents, and externally returned content. All of this content should be treated as untrusted data. The system should not change permissions or operation boundaries just because content contains instructions such as “ignore previous rules.”
If the application supports tool calls, model output should only be treated as candidate operations. Before actual execution, business services must recheck parameters, user permissions, object state, and risk level. Actions such as external sending, deletion, and modification of critical data should provide preview, confirmation, or approval mechanisms.
At the same time, reduce the data sent to the model. Providing only the fields needed to complete the task is more reliable than asking the model to keep secrets afterward. Logs also need to be masked, and inputs, answers, and retrieved content should not be stored indiscriminately for long periods.
7. Validate Quality with Layered Testing, Not Demos
AI application testing should cover at least three layers.
The first layer is ordinary software testing. Check APIs, permissions, data processing, concurrency control, and exception paths. AI-generated tests can only serve as a supplement. Key assertions should be independently reviewed by developers to avoid tests repeating incorrect implementation assumptions.
The second layer is model behavior evaluation. Build an evaluation set containing typical questions, ambiguous questions, no-answer questions, and unauthorized requests. Check answer correctness, sufficiency of evidence, source correspondence, and refusal behavior separately. Samples involving professional judgment should be reviewed by people familiar with the business.
The third layer is system runtime validation. Observe response latency, failure ratio, call usage, retry count, and user feedback. Cost should be measured by complete business tasks, because one task may include multiple retrieval, generation, and checking steps rather than a single model request.
After modifying prompt templates, retrieval rules, data processing logic, or model versions, relevant evaluations should be rerun. Good past performance does not mean acceptance criteria are still met after changes.
8. Adopt Incremental Delivery from Prototype to Launch
It is advisable to start with a low-risk, small-scope scenario with clear value, such as document location, content draft generation, or read-only queries. Validate whether the core chain works before adding permissions, auditing, monitoring, and exception handling.
At launch, start with a small group of users and keep a human feedback entry point and a kill switch. Code, configurations, prompt templates, model selection, and data processing rules should all have version records. When problems occur, it should be possible to determine which type of change caused the regression and roll back to a verified state.
If the application has operational capabilities, it can first run in a “suggest only, do not execute” mode. Compare suggestions with actual business handling results, then gradually open controlled execution permissions. This validates value while avoiding connecting unstable behavior to critical processes too early.
9. Conclusion: Feasibility Depends on Whether Results Can Be Verified and Controlled
Developing AI applications with AI does not mean letting the model complete all work alone. It means assigning suitable automation steps to AI while keeping goal definition, risk judgment, and final acceptance in the hands of humans and deterministic systems.
For development teams, the value of AI lies in reducing repetitive work, accelerating solution exploration, and speeding up test iteration. For enterprises, the value lies in validating business ideas faster while controlling data, security, and maintenance costs.
A truly reliable approach starts with clear requirements, selects an appropriate development path, advances implementation through small tasks, validates results through layered testing, and then safeguards operation through permission isolation, monitoring, and rollback. Only when this closed loop is formed can the speed advantage brought by AI be translated into sustainable software delivery capability.
