The data backs this up. In Veracode's 2026 GenAI Code Security Report, AI models produced code that compiled almost every time but passed only 56% of security tests on average, virtually unchanged from a year earlier. And in the Stack Overflow 2025 Developer Survey, 66% of developers named "AI solutions that are almost right, but not quite" as their top frustration.
This guide is the checklist we use when building AI-assisted web applications for clients, grouped by phase, followed by the mistakes we see beginners make most often.
What do you need before you start?
You need a clear problem, a defined first release and a way to review changes — before you need a framework or a model. Have these ready:
- a one-paragraph description of the users and the job the app does for them;
- three to five acceptance criteria per key journey ("a customer can submit a booking and receives a confirmation email within one minute");
- a list of what is not in version one;
- version control (Git) and somewhere to run a staging copy;
- an owner who will approve releases and handle incidents;
- if personal data is involved, a view on where it is stored and who processes it.
The AI web app checklist, phase by phase
Work through the phases in order. Each item is short on purpose — tick it or write down why it doesn't apply.
1. Scope and product
- Users, their main tasks and the success measure are written down.
- One complete journey is mapped, including failure, cancellation and "the user comes back tomorrow".
- Out-of-scope features are listed, so the AI assistant doesn't build them anyway.
- You've decided which parts need AI inside the product, and which only use AI to write the code.
2. Development workflow
These items follow the spirit of NIST's Secure Software Development Framework: protect the code, review it, and know what goes into the build.
- All code lives in version control, with small, reviewable commits.
- A human reads every AI-generated diff before it is merged — especially authentication, payments and data access.
- Secrets (API keys, database passwords) never enter the repository or the browser bundle.
- A clean checkout runs with documented steps; nothing depends on "it works on my laptop".
- Dependencies are pinned and checked for known vulnerabilities; packages the AI suggested are verified to exist and be maintained.
3. Data and permissions
- Entities and ownership are defined first: who owns which record.
- Every access rule is enforced on the server, not only hidden in the interface.
- Tests prove that one customer cannot read or change another customer's data.
- Input is validated on the server; output is encoded to prevent cross-site scripting.
- Personal data is minimised, and retention and deletion are defined.
4. AI features inside the app (skip if the app doesn't call a model)
- Model API keys are stored server-side only.
- Model output is treated as untrusted: validated against a schema before it updates data or triggers actions.
- Retrieval respects user permissions — the model only sees documents the user may see.
- Timeouts, rate limits and a monthly spend cap are set.
- Consequential actions (sending, paying, deleting) need human confirmation.
- There's a fallback when the model is slow, wrong or unavailable.
- Users are told when they're interacting with AI, and AI-generated content is labelled where appropriate.
5. Security
- The app is checked against the OWASP Application Security Verification Standard at a level that fits the risk.
- LLM-specific risks are reviewed against the OWASP Top 10 for LLM applications, especially prompt injection and excessive agency.
- Authentication uses a proven library or service, not AI-written custom code.
- Security headers, HTTPS, CSRF protection and rate limiting on login are in place.
- An automated security scan runs on every pull request.
6. Testing
- Tests are written from acceptance criteria, not generated from the implementation they're meant to check.
- They cover normal use, bad input, expired sessions, duplicate submissions and permission failures.
- For AI features, a small evaluation set of real examples is scored by a person before launch and after each prompt or model change.
- Accessibility is tested against WCAG 2.2: labels, keyboard access, focus, contrast.
- Layouts are checked on mobile and desktop, including loading, empty and error states.
7. Privacy and compliance
- A privacy notice matches what the app actually does, including any AI providers that process data.
- Data processing agreements are signed with the hosting and AI providers.
- Cookie consent reflects the trackers really in use.
- You've checked whether any AI feature falls under stricter EU AI Act rules (for example, decisions about hiring or credit).
8. Launch and operations
- A production-like staging environment with non-sensitive data has been tested end to end.
- Backups are restored at least once as a rehearsal; rollback is documented.
- Monitoring covers errors, response times and AI spend, with alerts that reach a person.
- There's a documented way to switch off AI features or revoke an integration quickly.
- The release owner signs off against the checklist, known issues and recovery plan.
- Launch first to a limited group, then compare real behaviour with the acceptance criteria.
The key items in one table
If you only have time for a short review, check these twelve.
Item | Why it matters | Done when… |
|---|---|---|
Written scope and out-of-scope list | AI assistants happily build features nobody asked for | A one-page brief exists and changes go through it |
Human review of AI-generated code | About 44% of security tests failed in Veracode's 2026 study | Every merge has a named reviewer |
Secrets outside the repo and browser | Leaked keys are the fastest route to a breach and a big bill | A secret scan finds nothing; keys live in server config |
Server-side permission checks | Hidden buttons don't stop direct API calls | Tests show cross-customer access fails |
Output encoding and input validation | Models failed to secure code against XSS in 86% of cases in Veracode's 2025 study | Security scan passes; malicious input is rejected |
Model output validated before use | LLMs can return wrong or malicious-looking content | Output is schema-checked before it changes data |
Spend, rate and timeout limits | A loop or abuse can burn a month's budget overnight | Caps are set and an alert fires at 80% |
Tests from acceptance criteria | Generated tests often confirm the bug they should catch | Each criterion has at least one passing test |
Accessibility basics | Excludes users and creates legal exposure | Keyboard-only and screen-reader checks pass |
Privacy notice and DPAs | Personal data flows to new processors | Notice updated; agreements signed |
Rehearsed backup and rollback | Untested backups often fail when needed | A restore was done and timed |
Monitoring with a named owner | Problems go unnoticed without alerts | Alerts reach a person who can act |
What mistakes do beginners make when building with AI?
Beginners usually make process mistakes, not technical ones: they trust a working demo, skip review and leave the boring parts until launch week. These are the ten we see most, with what to do instead.
- Shipping the demo. A prototype that works for the happy path is not a product. Instead: list the failure states and build those before adding features.
- Accepting code you haven't read. It compiles, so it must be fine. Instead: review every diff touching login, payments or data access, and run a security scanner.
- Checking permissions only in the interface. Hiding a button is not access control. Instead: enforce rules in the API and test them.
- Putting API keys in the frontend. Anyone can open browser tools and copy them. Instead: call models through your own server.
- Letting the AI write the tests for its own code. The tests mirror the bug. Instead: write tests from acceptance criteria, ideally before the code.
- No cost limits on AI calls. One retry loop can run up a large bill. Instead: set rate limits, spend caps and alerts from day one.
- Trusting model output blindly. The model returns text that looks right but isn't. Instead: validate structure and add human review for consequential steps.
- Installing packages the AI suggested without checking. Some don't exist or aren't maintained — a known supply-chain risk. Instead: verify every new dependency.
- Prompting in circles. Re-asking the assistant to "fix it" for an hour instead of understanding the problem. Instead: read the error, reduce the case, then ask a precise question.
- No owner after launch. Nobody watches errors, updates dependencies or answers users. Instead: name an owner and a monthly maintenance slot before you go live.
The pattern behind most of these: the AI did exactly what it was asked, and nobody asked the right questions. In our projects, the Validate stage exists precisely to test the odd cases on purpose — expired sessions, double clicks, the customer who pastes a novel into a form field.
How long does an AI-assisted web app take, and what drives cost?
It depends far more on scope, data and integrations than on how fast the AI writes code. Generation speed shrinks the build phase; it doesn't shrink decisions, reviews, testing or approvals. These are the factors that move timelines most:
Factor | Lower effort | Higher effort |
|---|---|---|
Users and roles | One user type | Several roles with different permissions |
Data | New, simple data model | Migration from existing systems, personal or financial data |
Integrations | None or one well-documented API | CRM, payments, ERP, legacy systems |
AI inside the product | None, or simple text generation | Retrieval over company documents, agents taking actions |
Compliance | Internal tool, no personal data | Customer-facing, regulated sector, high-risk AI uses |
Ownership after launch | Your team maintains it | Needs ongoing monitoring, evaluation and support |
How ValidVibe can help
We build custom AI web apps, client portals and AI agents for small and mid-sized businesses, using AI to move fast and engineers to review, test and secure what it produces. If you have a prototype that needs to become a product — or an idea you want scoped properly — tell us about your project.
FAQ
Can I build a production web app with AI alone?
You can build a production web app with AI's help, but not with AI alone. AI tools write working code quickly, yet Veracode's 2026 study found AI-generated code failed around 44% of security tests. A production app still needs human review, server-side access control, real tests, monitoring and an owner who is responsible after launch.
Is AI-generated code secure?
AI-generated code is not secure by default: in Veracode's 2026 GenAI Code Security Report, models passed only about 56% of security tests on average, a figure barely changed from 2025. Treat AI-written code like code from an unknown contributor — review it, scan it automatically and test the security-critical paths yourself.
What is the most common mistake when building an app with AI?
The most common mistake when building an app with AI is shipping the prototype as the product. A demo that works on the happy path usually lacks server-side permission checks, error handling, tests and cost limits. Define failure states and acceptance criteria early, and don't launch until those are covered.
Do I need to tell users my app uses AI?
You generally need to tell users when they interact with an AI system, such as a chatbot, and label certain AI-generated content; the EU AI Act's transparency rules apply from August 2026. Your privacy notice should also name AI providers that process personal data. Check specifics with a legal adviser for your use case.
How do I keep AI API costs under control in a web app?
You keep AI API costs under control by calling models only from your server, setting per-user rate limits, a monthly spend cap and request timeouts, caching repeated answers, and choosing the smallest model that passes your quality tests. Add an alert at around 80% of budget so someone can act before the cap is hit.
Sources
- Veracode via SD Times — Veracode finds AI-generated code security has barely improved since last year (28 July 2026)
- Veracode — 2025 GenAI Code Security Report press release (30 July 2025)
- Stack Overflow — 2025 Developer Survey: AI
- OWASP — Application Security Verification Standard
- OWASP — Top 10 for LLM and Gen AI applications 2025
- NIST — Secure Software Development Framework (SSDF) 1.1
- W3C — Web Content Accessibility Guidelines (WCAG) 2.2
- European Commission — AI Act (application timeline)
About the author
ValidVibe Team — strategists, designers and AI automation engineers who build AI agents, workflow automations and custom AI apps for small and mid-sized businesses in Europe and the UK. 80+ projects delivered.
