Back to Explore My Work

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.

01 · Data architecture

Simplifying data infrastructure

Supabase
Node.js + JSON storage
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.
Node.js fs/promisesJSONLocal StorageHostinger
02 · Email infrastructure

Replacing Resend

Resend API
Nodemailer + Gmail SMTP
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.
NodemailerGmail SMTPNode.js
03 · AI architecture

Simplifying AI generation

Multi-stage AI processing
Simplified, validated 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.
OpenAI APIGPT-4.1 miniTypeScript
04 · Access architecture

Improving purchase recovery

Purchase recovery keys
Passwordless journal library
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.
Stripe APINode.js CryptoNext.js CookiesGmail SMTP

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.

Job seeker / Professional

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.

Node.js fs/promisesJSONBrowser Local Storage
Authentication & authorization

Passwordless email verification, purchase-specific access, private recovery keys and payment status checks.

Node.js CryptoNext.js CookiesStripe APINodemailer / Gmail SMTP

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

StripePayments and purchase verification
Nodemailer / Gmail SMTPPurchase and recovery emails
HostingerApplication hosting

Development workflow

VS CodeImplementation and debugging
GitHubSource control and change history
Conceptual system architecture illustrating how CareerReflect processes user experiences and delivers personalized career preparation. This diagram describes system responsibilities rather than an exact API request sequence. GPT-4.1 mini is the documented model configuration; the deployed model can be configured separately.

How the system works

System componentWhat it does
Web applicationAccepts a PDF or DOCX résumé, target role, organization and pasted job requirements.
Application logicValidates inputs, checks purchase access, prepares AI requests and limits generation attempts.
AI engineUses the OpenAI API with GPT-4.1 mini (documented model configuration) to generate opportunity-specific questions and résumé-based sample answers.
Data and authenticationUses 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 integrationUses Stripe checkout and verifies payment status before granting access to the purchased product.
Delivery experienceDelivers 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 approachTrade-off to consider
Structured journal instead of free-form generationPredictable rendering and export; less open-ended interaction.
Configurable OpenAI model with output validationFlexibility to change models; requires retesting output quality and cost.
Private JSON files and atomic writesSimple MVP persistence; multi-instance coordination and scale require evaluation.
Server-side Stripe verificationStronger purchase checks; adds external service dependency.
Email verification and recovery keysLower 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
  1. Accept a PDF or DOCX résumé, target role, organization and pasted requirements.
  2. Validate the input and verify access to the personalized journal.
  3. Prepare the model request using the supplied context and the journal template.
  4. Generate opportunity-specific questions and sample answers using OpenAI; validate and merge structured content.
  5. Persist the generated journal and manage generation attempts.
  6. 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
ChallengeMitigation
Unsupported AI content or invalid outputGround generation in résumé and opportunity context; validate structured output.
Repeated or failed generationLimit attempts and reject incomplete journals.
Lost or inconsistent progressPrivate JSON persistence, browser copies, validated paths and atomic writes.
Unauthorized product accessServer-side payment verification, purchase-specific authorization and recovery controls.
Third-party integration failureSeparate 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 capabilityFuture measurement
20-question personalized journalGeneration quality and completion rate
Three-attempt generation limitFailure rate, latency and model usage cost
Persistent journal and recoverySave and recovery success rates
Purchase-specific accessPayment 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.