Skip to content
Agentic AI Builder's Guide

Search every lesson, prompt, glossary term and troubleshooting topic. Use ↑ ↓ to move and Enter to open.

Module 2 of 6

Application Planning

Turn an idea into requirements, MVP scope, architecture, data model, security requirements, acceptance criteria and sprints.

Full printable guide

0% · 0 of 13 lessons

The quality of an AI-built application depends heavily on the quality of the plan. A clear plan lets Claude Code build the right thing in a few consolidated sprints instead of many rounds of guesswork. In this module you will use ChatGPT as a product manager and architect to produce that plan.

Turning an idea into business requirements

An idea such as "an app to manage my team's tasks" is not yet buildable. Business requirements state what the application must do in specific, verifiable terms.

Start by answering these questions in plain language:

  1. What problem exists today, and what does it cost (time, money, errors)?
  2. Who experiences the problem?
  3. What would a successful outcome look like?
  4. What must the application do to produce that outcome?
  5. What must it never do (for example, expose one customer's data to another)?

Then rewrite the answers as numbered requirements:

VagueSpecific requirement
Users can manage tasksSigned-in users can create, edit, complete and delete their own tasks
It should be secureUsers can only see and modify tasks they own
Reminders would be niceOut of scope for the MVP

Identifying target users

Describe each type of user in a sentence or two — a persona. Include what they are trying to achieve and their technical comfort.

  • Primary user: the person who uses the application daily.
  • Administrator: someone who manages users or settings, if needed.
  • Visitor: someone who sees public pages without signing in.

Fewer user types mean a simpler application. Many MVPs need only one.

Defining use cases

A use case (or user story) describes one thing a user does and why:

As a team member, I want to mark a task as complete so that my team knows it is done.

Write a use case for every core action. Each one should map to something you can test by clicking through the application.

Establishing MVP scope

The Minimum Viable Product is the smallest version that delivers real value. Explicitly list what is in and out of scope.

In scope (MVP)Out of scope (later)
Sign inSingle sign-on for enterprises
Create, edit, complete, delete tasksRecurring tasks
Filter by statusAnalytics dashboards
Mobile-friendly layoutNative mobile apps

Choosing an appropriate technology stack

The technology stack is the set of languages, frameworks and services the application is built with. For AI-assisted development, prefer:

  • Mainstream, well-documented technologies. AI models have seen far more examples of popular frameworks and make fewer mistakes with them.
  • Stable versions over newly released ones.
  • Fewer moving parts. Every extra service adds configuration, cost and failure points.
  • A platform that deploys easily to Railway from GitHub.

A common, reliable starting point for web applications:

LayerCommon choiceWhy
FrameworkNext.js with TypeScriptFront end and back end in one project, widely documented
StylingTailwind CSSConsistent, fast to iterate
DatabasePostgreSQLReliable, relational, available on Railway
Database accessAn ORM such as Prisma or DrizzleType-safe queries and migrations
AuthenticationA maintained library or providerAvoid writing security-critical code from scratch
HostingRailwayDeploys from GitHub, hosts databases alongside the app

This is a starting point, not a rule. Let ChatGPT recommend a stack for your requirements, then ask it to justify each choice.

Designing application architecture

Architecture describes the major parts of the application and how they communicate. For most MVPs it is simple:

  • A web application service that serves pages and API routes.
  • A database, if data must persist.
  • Optional external services, such as an email provider or payment processor.

Railway application and database architecture

Users

Browser or mobile device

GitHub

Push to main triggers a deployment

Railway project · production environment

Application service

Public domain, PORT, environment variables, health check

PostgreSQL

Primary relational data

Redis (optional)

Cache, sessions, queues
Users reach the application service over HTTPS on its public domain. The application reaches databases over Railway's private network using reference variables such as DATABASE_URL. Databases are not exposed publicly unless you choose to.

Ask ChatGPT to describe the architecture in words and as a simple list of components. If the plan includes microservices, message queues or multiple databases for an MVP, question it.

Database selection

Not every application needs a database.

SituationRecommendation
Static content, calculators, informational sitesNo database. Content lives in files; browser state can use local storage.
Structured records with relationships (users, orders, tasks)PostgreSQL — the safe default.
Flexible, document-shaped data with varying fieldsMongoDB can fit, but PostgreSQL with JSON columns often works too.
Caching, sessions, rate limiting, queuesRedis, usually alongside a primary database, not instead of one.

More detail on each option is in Cloud Deployment.

Data model

The data model lists the entities (things you store), their fields and how they relate. For a task manager:

User:  id, email, name, created_at
Task:  id, user_id → User, title, description, status (open | done), due_date, created_at, updated_at

Review the data model carefully. Changing it after launch requires migrations and can risk existing data.

User experience planning

List the screens and the path a user takes through them:

  1. Landing page → Sign in
  2. Task list (default screen after sign-in)
  3. Create or edit task form
  4. Settings or account page

For each screen, note what the user sees, what actions are available and what happens on errors (empty states, validation messages, loading states). Specify that layouts must work on mobile.

Security requirements

Write security requirements into the plan so they are built in from the start:

  • Authentication: how users sign in. Use a maintained library or provider.
  • Authorization: users can only access their own data; admin actions are restricted.
  • Input validation: validate everything on the server, not only in the browser.
  • Secret management: all credentials in environment variables, never in code; .env git-ignored; .env.example with placeholders.
  • Data protection: HTTPS everywhere; collect only data you need.
  • Error handling: users never see stack traces or internal details.

Acceptance criteria

Acceptance criteria are measurable conditions that define "done". They let you — and ChatGPT — judge completion reports objectively.

Good acceptance criteria are specific and testable:

  • A signed-in user can create a task with a title of up to 200 characters.
  • A user cannot view or edit another user's task, even by changing the URL.
  • The task list is usable on a 375-pixel-wide mobile screen.
  • Type checking, automated tests and the production build pass.

Avoid vague criteria such as "works well" or "looks nice".

Sprint planning

A sprint is a consolidated batch of related work that ends with a working, testable application. With AI agents, fewer and larger sprints are usually more efficient than many small ones, because each prompt carries setup and reporting overhead.

A typical small application fits in two to four sprints:

SprintFocus
1Project foundation, layout, data model, core create/read/update/delete workflow, tests, push to GitHub
2Authentication, authorization, validation, error handling, remaining features
3Deployment readiness, polish, documentation, production fixes

You will generate the actual sprint prompts in Agentic AI Development.

Avoiding overengineering

Overengineering means building more than the requirements need. AI tools are prone to it because they draw on patterns from large systems. Warning signs:

  • Microservices, Kubernetes or multiple databases for a first release.
  • Custom authentication, payment or encryption code instead of proven libraries.
  • Admin dashboards, analytics and role systems nobody asked for.
  • Abstractions "for future flexibility" with no current use.

Ask ChatGPT directly: "What in this plan could be removed without hurting the MVP?"

The complete planning prompt

Copy this prompt into a new ChatGPT conversation, replace the placeholders and review the plan it produces. Keep the conversation — you will continue it to generate sprint prompts.

ChatGPTPlanning

Application Planning

Purpose
Turn a raw idea into a complete, implementation-ready application plan.
When to use
At the very start of a project, before any code is written. Reuse it whenever you start a new application.
Replace these placeholders: [APPLICATION IDEA][TARGET USERS][PROBLEM BEING SOLVED][MUST-HAVE FEATURES][CONSTRAINTS: budget, timeline, compliance, preferred technologies][HOSTING: Railway]
Act as an experienced product manager and software architect. Help me plan a web application that I will build with Claude Code (an AI coding agent) and deploy to [HOSTING: Railway] from a private GitHub repository.

## My idea
[APPLICATION IDEA]

## Target users
[TARGET USERS]

## Problem being solved
[PROBLEM BEING SOLVED]

## Must-have features
[MUST-HAVE FEATURES]

## Constraints
[CONSTRAINTS: budget, timeline, compliance, preferred technologies]

## Produce the following plan
1. Product summary and value proposition (one paragraph).
2. Business requirements as a numbered list.
3. Target user personas and their primary goals.
4. Core use cases written as "As a [user], I want to [action] so that [outcome]".
5. MVP scope: what is IN the first release and what is explicitly OUT.
6. Recommended technology stack with a short justification for each choice. Prefer mainstream, well-documented, stable technologies that an AI coding agent handles reliably. Avoid unnecessary services.
7. Application architecture: components, how they communicate and where they are hosted.
8. Data model: entities, key fields and relationships. State clearly if no database is needed.
9. Database recommendation (none, PostgreSQL, MongoDB, Redis) with reasoning.
10. User experience: main screens, navigation and key user flows.
11. Security requirements: authentication, authorization, input validation, secret management and data protection.
12. Environment variables the application will need (names and purpose only, never real values).
13. Testing approach: what must be covered by automated tests and what must be validated manually.
14. Measurable acceptance criteria for the MVP.
15. Risks, assumptions and open questions I need to decide.
16. Things to deliberately avoid so we do not overengineer the MVP.

Ask me up to five clarifying questions first if anything critical is ambiguous. Otherwise, produce the plan directly. Keep it concise, specific and practical.

Reviewing the plan

Before approving the plan, check that:

0 of 7 complete

Ask follow-up questions until you understand and agree with every decision. Then save the final plan — many people paste it into a document or into the project README later.