The short answer
AI tools can take a founder from idea to working prototype in days, which is genuinely new. The smart way to use that power is to treat AI as a fast, tireless junior builder that needs clear direction and careful review. Decide what experiment you're running, define the smallest scope that can test it, specify behavior in plain language, build in small steps, test everything you ship, and keep security, data, and cost in view from day one.
The danger isn't that AI can't build. It's that it builds convincingly. Code that runs isn't the same as code that's secure, correct on real data, maintainable, or affordable to operate. Veracode's 2025 GenAI Code Security Report, which tested code from a wide range of AI models, found that roughly 45 percent of the generated samples introduced security vulnerabilities. Prototyping with AI is a superpower for learning. Shipping unreviewed AI code to real customers' data is a liability.
This is part four of the course on lean startup thinking in the AI era. It builds on MVP types and prepares you for validated learning.
Key takeaways
-
Decide what to learn before deciding what to build. AI makes building cheap, not learning.
-
Use AI to prototype fast, but separate throwaway prototypes from anything that touches real users' data.
-
Specify behavior clearly, build in small steps, and test continuously.
-
Security, privacy, and cost controls are not optional, even for an MVP with real users.
-
The gap between a demo and production is the main danger. Measure quality on realistic data.
-
Know when to bring in an experienced engineer: before handling sensitive data, payments, or scale.
What "building with AI" means now
The landscape changes quickly, so think in categories, not product names.
Chat-based assistants. You describe what you want and get code, designs, or explanations to copy and adapt. Good for learning and for small pieces.
AI-assisted editors and coding agents. Tools integrated into your development environment (or running in a terminal or cloud) that can read your codebase, write and edit files across a project, run tests, and fix errors with your supervision. They work best when guided by someone who can read and judge the output.
App builders from prompts. Services that generate a working web app, often with a database and hosting, from a natural-language description. They're very fast for prototypes and internal tools, with limits on customization and control.
No-code and low-code platforms. Visual builders for apps, workflows, and automations, increasingly with AI assistance. Excellent for assembling MVPs from existing services.
Model APIs and AI services. The building blocks you call from your product to add language, vision, speech, or other AI capabilities.
The term "vibe coding," coined by Andrej Karpathy in early 2025, describes a style of building in which you describe what you want, accept what the AI produces, and iterate on results with little attention to the code itself. It's excellent for throwaway experiments. It becomes risky as soon as something real depends on the output.
Specific tools and capabilities change monthly. Evaluate current options directly, with a small trial project, before committing.
When AI-built MVPs shine
AI-assisted building is excellent for:
-
Landing pages and marketing sites to test messaging and demand.
-
Clickable prototypes to test flows with users. See UX research for beginners.
-
Internal tools and dashboards where errors are low-stakes and users are forgiving.
-
Single-feature products with simple data and few integrations.
-
Technical spikes: quick checks of whether a model can perform a task, with a handful of examples.
-
Automations that connect existing tools, such as processing forms, summarizing documents, and drafting replies.
-
Concierge and Wizard-of-Oz back-ends that support a manual service.
When to slow down
Be much more careful when your MVP involves:
-
Personal, financial, health, or children's data.
-
Payments or money movement.
-
Authentication and authorization (logins, permissions, who sees what).
-
Regulated domains such as healthcare, finance, legal advice, or education.
-
Safety-critical or high-stakes decisions where errors harm people.
-
Many users or heavy load, where performance and cost matter.
-
Integrations with customers' systems, where mistakes can corrupt their data.
In these cases, involve someone who knows how to build and review such systems, even for an MVP. A founder who "can't explain how the authentication works" is carrying risk they can't see.
A workflow that works
Step 1: Define the experiment, not the product
Write down:
-
The riskiest assumption you're testing
-
The smallest thing that can test it
-
The success criteria and time limit
-
What you'll deliberately leave out
This document is your most important prompt. Keep it short and share it with whoever (or whatever) builds.
Step 2: Specify behavior in plain language
AI tools do much better with clear, concrete specs than vague wishes. For each feature, describe:
-
Who the user is and what they're trying to do
-
The steps in the flow
-
Inputs and outputs, with examples
-
Edge cases and error handling ("What happens if the file is empty?")
-
What the feature should not do
Use examples. "When the user uploads an invoice PDF, extract vendor, date, total, and line items, and show them in a table the user can edit before saving" is far more useful than "handle invoices."
Step 3: Build in small, testable steps
Resist the urge to ask for the whole app at once. Ask for one feature, run it, test it, and commit it before moving on. Small steps make errors easier to find, keep you in control, and let you understand what you're building. Use version control (like Git) so you can undo mistakes.
Step 4: Test as you go
AI can write tests, but be careful: tests written by the same AI that wrote the code tend to confirm what the code does, not what you need. Ask for tests based on your written requirements, and add your own tricky cases.
-
Manual testing: try the flows yourself, including unusual inputs.
-
Automated tests for core logic, where possible.
-
Test with real-looking data, not just tidy examples.
-
Test failure paths: what happens when the AI service times out, returns something malformed, or refuses?
Step 5: Review before real users
Before any outside users touch your MVP, do a review pass:
-
Can you explain how it works at a high level?
-
Is any secret (keys, passwords) stored in code or exposed?
-
Who can access what data? Test as a different user.
-
What data are you collecting, and why?
-
What happens if costs spike?
If you can't answer these, find someone who can.
The AI-specific part: testing the AI
If your MVP uses a model to produce outputs (text, classifications, recommendations), your biggest risk isn't the code. It's the quality of the model's behavior on real inputs.
Build an evaluation set
An evaluation set (often called "evals") is a collection of realistic example inputs, with the outputs you consider good. It lets you measure quality instead of eyeballing it.
How to build one:
-
Collect 30 to 100 real or realistic examples, including messy, ambiguous, and tricky ones.
-
For each, write what a correct or acceptable output looks like, or the criteria.
-
Run your system on them, and score the results (by you, by a colleague, or with carefully validated automated scoring).
-
Track the score as you change prompts, models, or logic.
Without evals, every change is a guess. With them, you can tell whether an update helped.
Measure what matters
-
Accuracy or acceptance rate: how often is the output usable?
-
Severity of failures: a harmless error versus a harmful one.
-
Consistency: does it give similar answers to similar inputs?
-
Latency: how long does it take?
-
Cost per use: see unit economics.
-
Human override or edit rate: how often do users change or reject the output? This is often your best real-world quality signal.
Design for failure
AI will sometimes be wrong. The product has to handle that gracefully.
-
Show uncertainty or sources where it helps.
-
Let users review and edit before anything irreversible happens.
-
Provide an easy way to report a problem.
-
Have a human fallback for important cases.
-
Don't automate high-stakes decisions without oversight.
These choices are as much UX decisions as engineering ones. See Why Users Don't Trust Your AI Feature.
Security and privacy basics
Treat these as non-negotiable for any MVP that has real users.
Secrets management. Never put API keys or passwords in code, front-end files, or public repositories. Use environment variables or a secrets manager. Rotate keys if exposed.
Authentication and authorization. Use well-established services or libraries for login, not hand-rolled code. Test that users can't see each other's data.
Input validation. Don't trust user input. It can contain malicious content.
Prompt injection. If your system feeds user-supplied or web content to a model, that content may contain instructions that try to hijack the model's behavior. Treat model inputs from untrusted sources as hostile, limit what the model is allowed to do, and don't give it access to sensitive tools or data unnecessarily. The OWASP organization publishes guidance on risks for LLM applications that's worth reading.
Data handling. Know what data you send to model providers, how they use it, and whether it's retained. Choose settings and plans that fit your obligations. Don't send sensitive customer data to tools you haven't reviewed.
Dependencies. AI tools sometimes suggest packages that are outdated, unnecessary, or (rarely) don't exist. Verify packages before installing them, and use automated dependency scanning.
Logging and monitoring. Know when things fail. But avoid logging sensitive data.
Automated scanning. Run static analysis and dependency checks as part of your workflow. They catch many common issues.
Human review. For anything touching auth, payments, or personal data, have an experienced engineer review the code.
For regulatory considerations, see risk, trust, and compliance.
Controlling cost
AI MVPs have variable costs that can surprise you.
-
Set spending limits and alerts with your model provider.
-
Track cost per user and per task from day one.
-
Cap usage in the MVP (for example, a limited number of runs per user).
-
Use the smallest model that works for each task, and reserve larger models for harder ones.
-
Cache repeated results where appropriate.
-
Watch for runaway loops, especially with agents that call tools repeatedly.
-
Model your costs at 10x and 100x usage before you scale.
Beyond API costs, remember the hidden ones: your time reviewing, fixing, and maintaining generated code. A founder who saved a week of building and then spends three weeks debugging hasn't saved time.
Avoiding the demo-to-production gap
A demo shows the product working on a few chosen examples. Production means working on everything real users throw at it, reliably, at acceptable cost. The gap between them is where many AI products fail.
Ways to close it:
-
Test on real data early. Get real inputs from pilot customers (with permission) as soon as you can.
-
Look at failures, not just successes. Read the worst outputs.
-
Define a quality bar and don't launch widely until you meet it.
-
Start with a small group and expand as quality is proven.
-
Monitor after launch. Quality can drift as inputs or models change.
-
Keep a human in the loop until the system has earned trust.
Technical debt and what happens after the MVP
AI-generated code can accumulate technical debt quickly: inconsistent structure, duplicated logic, unclear naming, and gaps in tests. For a throwaway experiment, that's fine. If the MVP succeeds and becomes your product, you'll face a choice.
Option 1: Rebuild. Use what you learned to build the real product with good architecture. This is often the right call if the MVP was a quick prototype.
Option 2: Harden and refactor. Bring in an experienced engineer to review, restructure, add tests, and fix security issues, then continue building.
Plan for this transition honestly. A prototype that "worked" can be expensive to turn into a reliable product, and the cost of cleaning up rises the longer you wait.
Document key decisions as you go: what the system does, how it's structured, how to run and deploy it. It helps you, any future engineer, and even the AI tool you're working with.
Build versus buy versus assemble
For each part of your MVP, ask whether to build, buy, or assemble.
| Part | Often best to | Why |
|---|---|---|
| Authentication | Use a trusted service | Security-critical, easy to get wrong |
| Payments | Use a payment provider | Compliance and fraud complexity |
| Email and notifications | Use a service | Deliverability is hard |
| Analytics | Use existing tools | See GA4 for CRO for a setup approach |
| Core logic that's your differentiator | Build (carefully) | It's what you're testing |
| Standard AI capabilities (transcription, translation, general language tasks) | Use model APIs | Faster than building your own |
| Internal admin tools | Generate or low-code | Low risk |
Build only what's central to your learning. Everything else is a distraction.
Prompting and specifying effectively
Practical habits that improve AI-assisted building:
-
Give context: what the product is, who it's for, and the constraints.
-
Be specific about behavior and edge cases.
-
Provide examples of inputs and desired outputs.
-
State what not to do ("don't add new dependencies," "don't change the database schema").
-
Ask the AI to explain its plan before it writes code, and review the plan.
-
Ask it to list risks and assumptions.
-
Review diffs (the changes) instead of just running the result.
-
Start fresh sessions for unrelated tasks, to avoid confusion.
-
Keep a running specification document you can paste into new sessions.
Common mistakes
Building before deciding what to learn. Speed without direction.
Shipping unreviewed code to real users. Especially with sensitive data.
Over-trusting tests the AI wrote about its own code.
Treating the demo as proof. Measure on real inputs.
No cost controls. A viral moment or runaway loop can create a surprise bill.
Skipping version control. You can't undo mistakes.
Leaking secrets. API keys in front-end code or public repos.
No fallback when the AI fails. Users hit dead ends.
Building everything. Use existing services for non-core parts.
Ignoring the transition. The throwaway prototype quietly becomes the product.
An illustrative example
(Hypothetical.) A founder wants to test an AI tool that turns messy meeting notes into action items for small agencies.
Experiment: Will agency owners use generated action items with light edits, weekly, for a month?
Build (three days): A simple web form, a call to a language model with a carefully written prompt, and an editable output. Hosted on a basic platform with login handled by an established service. No payments yet.
Evals: The founder collects 40 anonymized sample notes from three agency friends (with permission) and writes what a good action list looks like for each. The first prompt scores poorly on notes with multiple speakers. After two iterations, quality is acceptable.
Guardrails: API spending cap, usage limits per user, no storage of raw notes beyond 30 days, clear disclosure that text is processed by an AI service.
Pilot: Eight agencies use it for four weeks. The founder tracks usage, edit rate, and cost per use, and interviews users weekly.
Learning: Edit rates are low and usage is steady for two agencies, but others drop off after a week. The two retained agencies manage many clients and meet constantly. The founder narrows the target and defers building integrations until the core segment is clear.
The AI saved time on the build. The learning came from the pilot.
Frequently asked questions
What is vibe coding?
Vibe coding is a style of building software where you describe what you want to an AI tool and accept and iterate on what it produces, with little attention to the code itself. It's good for quick experiments and risky for anything handling real users' data.
Can I build an MVP with no coding skills using AI?
You can build prototypes and simple tools, and many founders do. For anything involving sensitive data, payments, or scale, get an experienced engineer to review it. Understand the basics of what you're shipping.
Is AI-generated code secure?
Not reliably. Veracode's 2025 GenAI Code Security Report found that about 45 percent of AI-generated code samples contained security vulnerabilities. Review, test, scan, and don't ship unreviewed code that handles sensitive data.
How do I test an AI feature?
Build an evaluation set of realistic examples with good outputs defined, measure accuracy, failure severity, latency, and cost, and track the results as you change prompts or models. Also monitor user edits and overrides in real use.
Should I use no-code tools or write code?
Use whichever lets you test your riskiest assumption fastest, without creating risks you can't manage. No-code and assembled tools suit many MVPs. Custom code makes sense for your core differentiator and when you outgrow the tools.
When should I hire an engineer?
Before you handle sensitive data, accept payments, serve many users, or turn a throwaway prototype into a long-lived product. Early review is far cheaper than late cleanup.
Where to go next
Building is only half the loop. The next article, Validated Learning: Experiments, Metrics, and Pivots, explains how to measure what you've built, interpret results honestly, and decide whether to persevere, pivot, or stop.
Course contents
-
Building an MVP with AI (you are here)



