CareerReflect · System Design · AI Engineering
My Approach to System Design: Building an AI-Powered Interview Platform
I translated product requirements into an integrated technical system, refining the architecture as AI reliability, data persistence, authorization and commercial delivery requirements emerged. This case study focuses on my technical decisions and how they shaped the resulting CareerReflect MVP.
- Company
- CareerReflect
- Role
- Product Owner & AI-Assisted Developer
- Timeline
- 2026 · Iterative development
- Type
- Technical Program Management & System Design
Tools: VS Code · GitHub · Next.js · React · TypeScript · Node.js · OpenAI API · GPT-4.1 mini · JSON · Browser Local Storage · Stripe API · Nodemailer · Gmail SMTP · Hostinger
- 4
- Major architectural refinements
- Data infrastructure, email delivery, AI generation and customer access.
- 5
- Integrated system layers
- User input, application logic, AI generation, data and access, and journal delivery.
1. The Challenge
Generating interview content with an AI model was only one part of the problem. The system needed to transform a résumé and job requirements into a consistent, editable interview journal, preserve progress, distinguish purchased products and handle failures without granting unauthorized access. I needed to connect these responsibilities while keeping the MVP manageable and avoiding unsupported claims in generated answers.
2. My Role & Technical Ownership
- Defined functional and non-functional requirements for input validation, AI output quality, persistence, authorization and product delivery.
- Designed the interaction between Next.js application logic, OpenAI generation, private storage, Stripe verification and email recovery.
- Used VS Code and AI-assisted development to implement, debug and refine workflows; used GitHub to checkpoint changes and manage source history.
- Defined validation and failure-handling behavior, tested integrations and refined the design as requirements evolved.
3. Architecture Evolution & Technical Decisions
I refined CareerReflect through four architectural changes, connecting product requirements to technology choices and technical trade-offs.
Simplifying data infrastructure
- Original:
- Supabase-backed database and storage providers; the initial journal saved writing in the browser.
- Problem:
- The MVP needed simpler infrastructure and progress that could survive device changes.
- Solution:
- Private server-side JSON persistence with browser local storage and atomic file writes.
- Why:
- Reduce infrastructure dependencies and preserve saved journal progress.
Replacing Resend
- Original:
- Resend integration for transactional email.
- Problem:
- An additional email-provider integration was required.
- Solution:
- Implemented SMTP delivery for purchase and recovery emails using Nodemailer and Gmail.
- Why:
- Reuse existing email infrastructure and simplify service dependencies.
Simplifying AI generation
- Original:
- Multiple opportunity-analysis and journal-generation stages.
- Problem:
- Correction requests and generation timeouts; one test request timed out after 130 seconds.
- Solution:
- Simplified generation logic while retaining structured validation and a three-attempt limit.
- Why:
- Reduce processing complexity while preserving résumé-grounded personalization.
Improving purchase recovery
- Original:
- Product-specific access cookies and private recovery links.
- Problem:
- Customers needed a convenient way to recover multiple journals across devices.
- Solution:
- Added email verification and a journal library with cryptographic tokens and server-side Stripe checks.
- Why:
- Simplify access while preserving purchase-specific authorization.
Final integrated architecture
VS Code · GitHub · Hostinger
4. Final System Design & Architecture
CareerReflect integrates structured user data, artificial intelligence, personalized content generation, and commercial services into a unified career preparation platform.
01 · Collect
CareerReflect Web Application
PDF or DOCX résumé · Target role · Organization · Pasted job requirements
Next.js · React · TypeScript
02 · Process
Application Logic
Validate résumé and opportunity inputs, verify purchase access, prepare AI context and limit generation attempts.
Node.js · Next.js API Routes
03 · Generate
AI Engine
Generate 20 opportunity-specific interview questions and résumé-based sample answers; validate structured output.
OpenAI API · GPT-4.1 mini
04 · Store & Retrieve
Data & Access Management
Data storage
Generated journals, saved answers, confidence ratings, progress and purchase records.
Authentication & authorization
Passwordless email verification, purchase-specific access, private recovery keys and payment status checks.
05 · Deliver
Personalized Interview Journal
- 20 interview questions tailored to one opportunity
- Résumé-based sample answers
- Guided reflection prompts and answer frameworks
- Editable practice answers, ratings and saved progress
- Word download and print/save as PDF
The separate 46-page printable workbook is not AI-generated.
Supporting Services
Development workflow
How the system works
| System component | What it does |
|---|---|
| Web application | Accepts a PDF or DOCX résumé, target role, organization and pasted job requirements. |
| Application logic | Validates inputs, checks purchase access, prepares AI requests and limits generation attempts. |
| AI engine | Uses the OpenAI API with GPT-4.1 mini (documented model configuration) to generate opportunity-specific questions and résumé-based sample answers. |
| Data and authentication | Uses Node.js fs/promises and private JSON files for journal content and progress, browser local storage for a device copy, and email verification, cryptographic tokens, Next.js cookies and Stripe purchase checks for access. |
| Payment integration | Uses Stripe checkout and verifies payment status before granting access to the purchased product. |
| Delivery experience | Delivers a 20-question editable interview journal, sample answers, reflection prompts, answer frameworks, saved progress and Word / print-to-PDF export. |
5. Lessons Learned
- Building CareerReflect reinforced the importance of designing systems around actual product requirements rather than unnecessary infrastructure complexity. Through iterative development, I learned to evaluate technical trade-offs, simplify architectural dependencies, strengthen AI generation reliability, and balance customer accessibility with security and maintainability.
6. Explore the Product
Technical Program Deep Dive
Optional details for technical hiring managers.
Architecture decisions and trade-offs
| Implemented approach | Trade-off to consider |
|---|---|
| Structured journal instead of free-form generation | Predictable rendering and export; less open-ended interaction. |
| Configurable OpenAI model with output validation | Flexibility to change models; requires retesting output quality and cost. |
| Private JSON files and atomic writes | Simple MVP persistence; multi-instance coordination and scale require evaluation. |
| Server-side Stripe verification | Stronger purchase checks; adds external service dependency. |
| Email verification and recovery keys | Lower account friction; requires careful token handling and recovery guidance. |
These are retrospective engineering trade-offs, not a claim that every alternative was formally evaluated during development.
AI processing and data flow
- Accept a PDF or DOCX résumé, target role, organization and pasted requirements.
- Validate the input and verify access to the personalized journal.
- Prepare the model request using the supplied context and the journal template.
- Generate opportunity-specific questions and sample answers using OpenAI; validate and merge structured content.
- Persist the generated journal and manage generation attempts.
- Render the editable journal, save user progress and support Word or print-to-PDF export.
This is a functional sequence rather than an exact endpoint or network trace. Sample answers must be checked against the user's real experience. The optional opportunity link is not fetched in the documented MVP.
Data persistence, authorization and recovery
- Persistence: Node.js fs/promises reads and writes JSON in private server storage; browser local storage retains a device copy. Validated paths and atomic file writes help prevent partial writes and unintended path access.
- Authorization: Next.js product-specific access cookies, cryptographic token handling, Stripe purchase checks and private recovery keys control product access.
- Email: Nodemailer and Gmail SMTP deliver verification and recovery messages.
- Boundaries: The application does not store card details. File-based persistence is not a claim of database encryption, high availability or enterprise scalability.
Technical risks and mitigations
| Challenge | Mitigation |
|---|---|
| Unsupported AI content or invalid output | Ground generation in résumé and opportunity context; validate structured output. |
| Repeated or failed generation | Limit attempts and reject incomplete journals. |
| Lost or inconsistent progress | Private JSON persistence, browser copies, validated paths and atomic writes. |
| Unauthorized product access | Server-side payment verification, purchase-specific authorization and recovery controls. |
| Third-party integration failure | Separate payment, generation and email responsibilities; handle failures and support recovery. |
Integration testing and release readiness
- Validate distinct questions, résumé grounding, retained reflection prompts and answer frameworks.
- Check progress persistence, recovery, product isolation and export behavior.
- Exercise failed generation and bounded retry behavior, payment checks and email delivery.
- Use TypeScript checks, regression tests, production builds and GitHub checkpoints to assess changes.
These are documented validation areas; no comprehensive production test coverage or service-level guarantee is asserted.
Success measurement and future architecture review
| Documented capability | Future measurement |
|---|---|
| 20-question personalized journal | Generation quality and completion rate |
| Three-attempt generation limit | Failure rate, latency and model usage cost |
| Persistent journal and recovery | Save and recovery success rates |
| Purchase-specific access | Payment verification errors and support requests |
Future architecture reviews should evaluate storage growth, concurrency, backup recovery and service reliability. No measured production adoption, latency, throughput or revenue is claimed.