ProfResolve

Building a reliable AI product for educators.

An AI SaaS for educators that turns repetitive teaching tasks into structured, editable and distribution-ready materials. The product is publicly available.

Visit ProfResolve ↗
Year
Role
Technical Product / Product + Hands-on Development
Stage
Active
Product
SaaS · AI · Education
Focus
AI Reliability · Product Economics · APIs · Payments

Summary

Problem
Reduce the repetitive work of preparing teaching materials without taking control away from educators.
My role
Co-founder responsible for discovery, product, monetization and technical implementation.
Result
A public SaaS for creating, editing and exporting AI-assisted teaching materials.
Key decision
Treat AI reliability and cost as product decisions.

Status and evidence

Stage
Active product, continuing to evolve.
What exists or has been validated
The product is public and includes a nine-question survey in the dashboard.

Technical Scope

Product

  • 15 Pedagogical generators
  • 7 Educational games
  • Live Public product
  • 9 Survey questions

The Problem

Educators rewrite lesson plans, activities and assessments constantly. The goal was to cut that repetitive work without taking control of the result away from the teacher.

How I Validated It

  1. Survey in the dashboard
  2. 9 questions about profile, perceived value and ease of use
  3. Feedback as input for product evolution

Four Product Decisions

AI failure never costs the educator a credit

In pedagogical routes, a failure after debit triggers a credit refund. In planning, model fallback is conditional and depends on configuration. The policy varies by generator.

See details

AI cost became pricing

Credits are the consumption unit, with cost per generation type. The commercial model offers period-based plans and one-off packs. Trade-off: pricing and model costs must evolve together.

See details

Predictability over fluidity

Synchronous generation prioritizes predictability when progressive responses do not preserve material integrity. Trade-off: less sense of immediate response.

See details

Buy where it is not a differentiator

A specialized library now supports crossword generation. Engineering effort is directed toward experience and material quality.

See details

Result

Public product with generation, editing, export, educational games and a dashboard survey.

Generated material — crossword ready to print or use in the classroom

Product in Use

ProfResolve is publicly available at profresolve.com.br. The platform brings together AI-assisted generation, editing and export of teaching materials.

The dashboard includes a survey to collect profile, perceived value, ease of use and educator suggestions.

Main dashboard — overview of available generators for the educator

The Problem

Educators spend a significant part of their time creating lesson plans, assessments, activities and adaptations. ProfResolve was built to reduce that repetitive workload by turning a pedagogical need into structured, editable and ready-to-use content.

Validation with educators

The dashboard includes a survey to collect profile, perceived value, ease of use and educator suggestions. The current instrument has nine questions.

  1. Public survey inside the dashboard
  2. 9 questions about profile and use
  3. Feedback to guide product evolution

Responses cover profile, perceived value, ease of use and suggestions. Response totals, participants and resulting changes will be published only with a source and cutoff date.

Commercial model

The product offers period-based plans and one-off credit packs. Realized revenue or recurring revenue will be described only with financial evidence.

From Hypothesis to a Product in Use

The project started with a simple idea: AI could reduce the repetitive side of content preparation without taking control away from the educator.

The platform grew from that idea into a product with multiple content generators, editing, exports, credits, payments, educational games and reliability mechanisms built around LLM operations.

With the product public, the next step is not just building more features. Next validations: usage frequency, retention and which workflows deliver the most value.

My Role

On ProfResolve, I decide what to build and in what order, how AI fits into the flow (models, fallback and cost per generation), how the product charges (credits, subscriptions and one-off packs) and what is worth buying instead of building. And I implement: from APIs and payments to tests and observability.

  • Discovery
  • Prioritization
  • Monetization
  • AI Product
  • Model Routing
  • Fallback
  • APIs
  • Architecture
  • Credits
  • Payments
  • Observability
  • Testing
  • Trade-offs

Core Product Flow

The main flow was designed to fit an educator’s daily routine: a few choices before generation, usable material right after.

  1. Educator
  2. Selects subject, grade and topic
  3. AI generation
  4. Structured material
  5. Editing
  6. PDF / DOCX / Print
Setup screen — the educator defines the parameters before generating the material
Generation in progress — the system consumes credits and processes the request with AI

Beyond Text Generators

ProfResolve includes AI-generated educational games — crossword puzzles, quizzes and other interactive formats. The material comes out of the platform ready to use in the classroom.

Game setup — the educator defines the parameters before generating
Generated result — crossword ready to use in the classroom

AI Fails. The Policy Must Be Explicit.

A provider failure should not leave the educator without material or charge for a generation that did not complete. In pedagogical routes, a failure after a new debit triggers a credit refund.

The policy is not universal. Planning has a conditional OpenAI fallback when the failure is recoverable and the second provider is configured. Other flows follow their own rules.

Turning an AI Call into a Reliable Product

A generation is not just sending a prompt to an LLM. In ProfResolve, every generation goes through a control chain that turns an AI call into a predictable product process:

  1. User request
  2. Validation
  3. Credit debit
  4. Prompt + context
  5. Model
  6. Processing
    Failure Automatic credit refund
  7. Persistence
  8. Editor / export

Validation, credit debit, context, processing, persistence and refund compose the pedagogical flow. Model and recovery policies are set per generator.

ProfResolve editor — generated material with complete structure and editing options visible
ProfResolve editor — educator editing the AI-generated content in real time
1 / 2
Material editor — the educator can edit generated content and export it as PDF, DOCX or print

When AI Cost Becomes a Product Decision

ProfResolve uses credits as its consumption unit. Each generation type has a different cost, and the price of a generation is a product decision, not just an infrastructure variable.

  1. Model cost
  2. Generation cost
  3. Credits
  4. Product pricing

Credits sit at the intersection of computational cost, perceived value and monetization. When a model’s cost changes, it directly affects the price of a generation and how users are likely to behave.

Each generator’s cost needs to reflect its strategy and model so AI consumption stays visible and manageable within the product.

Not Every Technical Experiment Should Stay in the Product

Decision: prioritize synchronous generation when progressive responses do not preserve material integrity.

Trade-off: less sense of immediate response in exchange for predictability.

The learning is to make explicit when a technical experiment does not improve the educator workflow.

Build vs Buy: Where Engineering Effort Creates Value

  1. Specialized library
  2. Experience and material quality

That change let us prioritize the educator’s experience and the quality of the result.

Engineering and Architecture

Architecture

Conceptual representation of the product architecture. No internal endpoints, database schema, security thresholds or credentials.

  1. User
  2. Next.js Application
  3. Application Layer Auth · Credits · AI · APIs

Data, AI and external services

  • PostgreSQL
  • Redis
  • Cloudflare R2
  • Gemini / OpenAI / DeepSeek
  • Asaas
  • Resend

Stack and Architecture Decisions

ProfResolve was built with Next.js App Router as the unified base for frontend, API routes and business logic. The choice eliminated the need for a separate server and allows generation, authentication and credit logic to live in the same process, with API routes organized by domain.

  1. Application and interface Next.js (App Router) · React · TypeScript · Tailwind CSS · Radix UI · SWR
  2. Backend and data Next.js APIs · PostgreSQL (pg) · Upstash Redis · Better Auth · Cloudflare R2
  3. AI and documents Gemini · OpenAI in planning · DeepSeek in games · PDF processing · DOCX generation · HTML→PDF export
  4. Services and integrations Asaas (payments) · Resend (email) · Google OAuth
  5. Quality and observability Vitest (unit + integration) · Playwright (e2e) · Sanitized logs · Health check · Analytics · Clarity · ESLint · Strict TypeScript

PostgreSQL for permanent state. Redis for temporary state.

PostgreSQL stores everything that requires consistency: users, credits, materials, payments, generation history. Access is via raw SQL through pg — no ORM — making every query explicit and auditable.

Redis (Upstash) solves three performance and resilience problems: session cache with a 30-second TTL to avoid hitting the database on every authenticated request; fixed-window rate limiting via INCR/EXPIRE in pipeline to protect generation endpoints; and credit balance invalidation after every debit or refund.

The Redis client has a fallback layer: if Upstash is unavailable, the application automatically falls back to an in-memory provider with reduced limits without interrupting the service. The trade-off is accepting less precise rate limits in degraded mode rather than blocking requests.

Cloudflare R2 for temporary generator attachments.

Educators can upload PDFs as context for some generators. The flow uses a server-generated pre-signed URL: the browser uploads directly to R2 without going through the application server, reducing latency and bandwidth.

R2 is accessed via an S3-compatible SDK (@aws-sdk/client-s3) pointed at the Cloudflare endpoint. This allows using the same AWS ecosystem abstractions without depending on AWS infrastructure. The bucket is temporary — files are read during generation and deleted afterwards. The feature has an independent activation flag.

PDF export follows a different path: the server renders the material HTML with Playwright (headless Chromium) and returns the bytes directly — R2 is not involved in that flow.

Better Auth with database provisioning hooks.

Authentication uses Google OAuth only — no local password. The choice reduces the attack surface and eliminates password recovery flows. Session management uses HTTP-only cookies; a custom Redis cache replaces Better Auth’s native mechanism to allow explicit control over TTL and invalidation.

Better Auth’s database hooks handle automatic provisioning: on user creation, the system assigns the freemium plan, inserts the initial credit record and registers the provider. This ensures every authenticated user has credits available from their first access, with no separate setup step.

Role-based access control (freemium, pro, admin) is implemented manually in rbac.ts — no Better Auth RBAC plugins are in use. Middleware protects /dashboard/* and /admin/* via cookie verification, with full session validation as an optional second layer, controlled by feature flag.

Vitest for API contracts. Playwright for critical product flows.

Vitest tests cover two environments: node for API routes, services and server utilities; and dom (happy-dom) for React hooks, client logic and stateful components. Property-based tests with fast-check validate payload validation endpoints against generated inputs — empty arrays, invalid IDs, wrong types — ensuring input boundaries are robust.

Playwright tests cover the flows a real user goes through: authentication with redirect, generator modal, credit display, editor, materials and critical error scenarios. They follow the Page Object Model pattern. The Asaas checkout is explicitly excluded from e2e tests due to its dependency on an external service.

The separation is intentional: Vitest validates contracts and business logic quickly in isolation; Playwright validates observable educator behavior with higher execution cost but end-to-end coverage.

Engineering as Part of Product Trust

Test coverage and engineering discipline are not just technical concerns on ProfResolve. They are part of the strategy to keep the platform reliable as new features are developed.

The combination of automated tests, strict TypeScript, sanitized logs, a health endpoint, Analytics and Clarity supports failure investigation and reduces risk during product evolution.

For critical operations like credits and payments, idempotency prevents duplicate processing during repeated attempts at the same operation. These are engineering decisions that protect the educator’s experience and contribute to business reliability.