Demo app — all sample data is fictional.

About this project

Built by Uriel Papa · GitHub · LinkedIn

The problem

Small businesses in the Philippines run core workflows — billing, dispatch, payroll — on paper, chat apps and spreadsheets. Owners feel the pain but can't put a peso figure on it, so automation projects never get prioritized or scoped. A single workflow often burns 100+ staff-hours a month.

The approach

During a discovery call, the engineer captures the workflow in a 3-step intake. An LLM maps it into 4–10 ordered steps with time estimates, automatable share, an automation idea, tool category and complexity, plus risks and a 30/60/90 plan — returned as structured output against a strict JSON schema.

The model never touches money. All hours, costs, savings, implementation cost and payback are computed deterministically in code, and every assumption (minutes, automatable %, hourly cost, complexity costs) is editable live on the report.

Architecture

Browser (TanStack Start + React) → server functions → Lovable AI Gateway (openai/gpt-6-astra, Responses API) → Lovable Cloud database

  • Table: audits — intake fields, the AI analysis (JSON), complexity costs, and stored KPIs. Row-level security allows public read only; all writes go through server functions.
  • Server functions: createAndAnalyzeAudit, rerunAnalysis, saveReport, resetDemoData.
  • Shared ROI module: one function computes KPIs for the report, the stored values and the home page.

What I'd do next in a real deployment

  • Add consultant login and per-client workspaces; share links with expiry tokens.
  • Calibrate minute estimates against time studies and keep a library of benchmarked steps per industry.
  • Version analyses so edits and re-runs can be compared side by side.
  • Export a branded PDF/Slides proposal and push the plan into a project tracker.
  • Add evals on the analysis prompt (step coverage, share calibration) before changing models.