Case Study · B2B SaaS · Manufacturer Tooling

Quotivo

AI-powered quote automation that cuts proforma prep from ~30 minutes to ~15 seconds.

A multi-tenant B2B SaaS platform for manufacturers.

The Problem

Manual quotes don't scale

~30 minutes per quote

Manufacturers build proformas in Excel or Word — looking up product codes, copying prices from a list, applying discounts and VAT manually. Every order is a mini data-entry project.

Error-prone

Wrong product codes, stale prices, and manual math mistakes slip into customer-facing documents — damaging trust and requiring costly re-work or re-sending.

Doesn't scale

A sales team handling a steady flow of orders can spend most of its time on data entry instead of selling — growth bottlenecked by process, not demand.

The Solution

A 5-step automated pipeline

From a raw customer order to a signed-off PDF proforma — fully automated.

01

Free-Text Order Entry

A sales rep types or pastes a customer order in plain language — WhatsApp message, email snippet, or handwritten note. Any format accepted.

02

AI Parses → Structured JSON

OpenAI GPT-4o-mini extracts customer name, product codes, quantities, and discounts. Output is validated by Zod — never free text into the database.

03

Catalog Matching

Each code is matched against the company's catalog by normalized_code. Unknown products surface a correction UI — prices are never invented.

04

Automatic Pricing

Line totals, group discounts, and VAT are computed deterministically from catalog data. Zero manual math, zero price errors.

05

PDF Proforma Generated

A branded, ready-to-send proforma PDF is generated via @react-pdf/renderer and delivered — in ~15 seconds total from order entry.

Illustration — generic placeholder data only

order · free text

Customer: Sample Customer Co.

Product A — qty 10, 40% disc

Product B — qty 5, 30% disc

Product C — qty 20

Paste any formatInput
PROFORMA INVOICEPDF Ready
ProductQtyTotal
Product A10₺ 840
Product B5₺ 525
Product C20₺ 1,200
Subtotal₺ 2,565
VAT (20%)₺ 513
Total (incl. VAT)₺ 3,078

How I Built It

Architecture & key decisions

Quotivo is built on a Next.js 16 App Router backend-for-frontend with API routes handling all server-side logic. Supabase provides authentication, a managed Postgres database with Row-Level Security, and object storage for PDF assets. The AI parse layer calls OpenAI GPT-4o-mini and all model output is validated against a Zod schema before any database write. PDF generation runs via @react-pdf/renderer in a non-blocking, fire-and-forget job.

Multi-tenant isolation

Every Postgres query is scoped by company_id, enforced at application layer and database layer via RLS. Tenants are completely isolated — no cross-tenant data leakage possible.

Schema-validated AI output

The model never returns free text into the database. All parse output goes through a strict Zod schema. Unknown products surface a correction UI, never invented prices.

Non-blocking PDF & email

PDF generation and Resend email delivery are kicked off after the API responds. Users never wait for I/O-heavy jobs, keeping the interface responsive.

The Build Process

Product thinking, shipped end-to-end

Quotivo was built without a traditional software engineering background, using an AI-assisted, prompt-driven development workflow — including Claude Code for agentic code generation and review. This isn't a story about learning to write code; it's about applying strong product thinking and architectural judgment to direct an AI development pipeline toward a real business outcome.

Every security decision — RLS policies, tenant isolation, schema-validated AI output, service-role client restrictions — was deliberately designed, audited, and documented. The codebase includes a formal security audit report, a risk matrix, and architecture decision records.

The result is a production-deployed, multi-tenant SaaS with a paying pilot customer — built by understanding what to build and why, and using AI as a high-leverage implementation tool.

🎯
Product design
🔒
Security architecture
🤖
AI-assisted dev
🚀
Shipped to prod

Results

Measured impact in production

~15 sec
Quote generation
down from ~30 min
~99%
Time reduction
per proforma
Multi-tenant
Architecture
live on Vercel
Paying pilot
Customer
furniture manufacturer
~30 min
before Quotivo
~15 sec
with Quotivo

Pilot: a mid-sized furniture manufacturer (kept anonymous). Tested on their real product catalog and live order volume.

Tech Stack

Technologies used

Next.js (App Router)React 19TypeScriptSupabasePostgreSQL + RLSOpenAI GPT-4o-miniZod@react-pdf/rendererResendVercel

Interested in working together?

I'm available for freelance projects, SaaS consulting, or full-stack development contracts. Let's talk.