CodePrism logoCodePrism
Case Study — Web Application (SaaS)

Building PrismAnalyst: A Privacy-First, Multi-Agent AI Analyst for Business Data

A conversational BI platform that lets business teams upload a spreadsheet and ask questions in plain English. Every answer is verified by a live SQL query, never guessed, and raw data never leaves the customer's environment.

PlatformWeb (SSE Chat)
Duration5 weeks
TypeWeb Application (SaaS)
Stack10 technologies
PROJECT OVERVIEW

3

Specialist agents behind one supervisor

2

Tools power every analysis (SQL + chart)

94

Automated tests covering safety, privacy, and routing

THE CHALLENGE

WhatsApp messaging gets complicated at scale.

Business teams sit on more spreadsheet data than they can use, but getting a straight answer means waiting on an analyst, learning SQL, or trusting a general-purpose AI assistant that can state a wrong number with full confidence and needs to see raw, often sensitive rows to do it.

Challenge 1

Getting a simple answer from business data meant waiting on an analyst or a BI ticket queue

Challenge 2

Traditional BI tools require SQL, or a data team to write it, before anyone can ask a new question

Challenge 3

Uploading spreadsheets to a general-purpose AI assistant sends raw rows, including anything sensitive in them, to a third-party model

Challenge 4

General AI answers cannot be audited: there is no way to check which numbers were computed versus recalled from the model's memory

Challenge 5

Real-world spreadsheets are messy (title rows, merged cells, footer totals) and break naive CSV ingestion before analysis can even start

Measurable Impact
3Specialist Agents
2Tools per Agent
94Automated Tests
0Raw Rows Sent to the LLM
5SQL-Computed Analysis Types
WHAT WE LEARNED
01

Constraining an agent to "always query, never recall" removes hallucination structurally: prompt instructions alone don't hold up under pressure, a tool-call requirement does

02

Privacy can be an architectural property, not just a policy statement: a schema-only boundary enforced in code is a stronger claim than "we promise not to look"

03

Real-world spreadsheets need an LLM in the ingestion path, not only the chat path: header/footer detection on messy enterprise exports is its own hard problem

04

A small, independently-tested SQL validator (blocklist, LIMIT injection, statement-count check) closes most of the risk of letting an LLM write live queries against a database

05

Removing code can be a milestone: retiring three hardcoded analysis tools in favor of SQL-first generation was a deliberate simplification, not a shortcut

Technologies Background
Our Technologies

Built with technologies we trust.

TypeScript
Node.js
Express
LangGraph
DuckDB
Zod
SheetJS
Vitest
Claude (Anthropic)
Render

Project Goals

Let a business user upload a spreadsheet and ask questions in plain English, with zero SQL required
Route each question to the right specialist automatically: sales/revenue, inventory/assortment, or deep analysis and forecasting
Make it architecturally impossible for an agent to answer without executing a real query: no hallucinated numbers
Keep raw data inside the customer's own environment: the LLM should only ever see schema and aggregated results
Handle real-world, messy Excel exports (title rows, merged cells, footer totals) without a manual cleanup step

The Outcome

A validated multi-agent, zero-hallucination architecture: three specialist agents, a two-tool SQL-first design, and a Schema-Only privacy protocol, now the basis for PrismAnalyst's production roadmap.

Conclusion & Impact

"PrismAnalyst started as the generalized form of a conversational analytics interface first built inside an enterprise engagement, then rebuilt from the ground up as a standalone architecture: any team with a spreadsheet and a question, no analyst or SQL required, and no requirement to trust an AI vendor with raw business data to get there."

Have a project in mind?

Let's discuss how we can help you build your next big thing.
Reach out and our team will be in touch.

Protected by reCAPTCHA. Google Privacy & Terms apply.

Building systems that hold up in production.

Bring up the problem others won't attempt.