Inspiration
A supplier quotes €800 plus freight to be confirmed. Another quotes €850 delivered. The first quote looks cheaper until the freight comes in at €70. We built Veil to make that uncertainty visible while keeping sensitive quote documents and exact prices private.
What it does
Veil compares two or three quotes for the same purchase. It shows the known costs, unresolved charges and the point at which a missing charge could change the decision. After reviewing the facts, you can preview and approve a short cloud brief to draft a clarification question, or use a local template. Veil leaves sending the message to the buyer.
Try it
Open the live app, click Try synthetic example, then open Compare & clarify. The break-even freight is €50. Under Review facts, enter €70 for Quote A’s freight and confirm the review. The comparison now shows €870 for A and €850 for B.
How we built it
We use React and TypeScript for review, PDF.js for local PDF intake, IndexedDB for case storage, and decimal.js for price calculations. Firebase AI Logic handles both Chrome’s on-device extraction and the separately approved Gemini cloud request. Firebase App Check protects the hosted cloud path.
PRIVATE BROWSER
Quote → Local extraction → Human review → Cost comparison
│
Preview + approve
│
▼
FIREBASE CLOUD Supplier aliases + missing-cost flags
│
▼
PRIVATE BROWSER Draft question → Human review
Challenges we ran into
The device model sometimes omitted explicit zero tax or returned a line total unsupported by the source. We added checks for those cases and kept human review in the workflow. A hosted browser test also uncovered a content-security policy rule that blocked App Check. After correcting it, regular Chrome returned a live freight question from the approved brief.
Accomplishments that we're proud of
Veil makes the difference between zero and unknown visible, calculates the break-even point, and shows why the decision changes. The hosted cloud run produced a freight question using a brief with no exact prices or real supplier names.
What we learned
Structured output can be valid JSON and still contain the wrong facts. The workflow works best when the model proposes, the buyer confirms, and deterministic code calculates.
What's next for Veil
Verify the fourth-generation Chrome model on supported hardware, test unseen quotes with buyers, and measure extraction accuracy and review time against a spreadsheet workflow.
Built With
- firebase-ai-logic
- firebase-app-check
- firebase-hosting
- gemini-3.5-flash-lite
- gemini-nano
- indexeddb
- pdf.js
- react
- typescript
- vite