University computer labs track hundreds of components — RAM sticks, GPUs, peripherals — across dozens of rooms. Until Procurvin, it was all paper audits and spreadsheets. Adding an AI chat interface wasn’t on the original spec.
The problem was obvious after the first demo: the client’s lab technicians didn’t want to learn a new UI. They wanted to type “How many DDR4 sticks are low in Room 204?” and get an answer.
I built the chat layer with Groq’s LLM API for speed — it’s noticeably faster than OpenAI for structured queries. The architecture is straightforward: natural language in, parse intent, query PostgreSQL via Prisma, return formatted answer. The tricky part was teaching the model the schema. I ended up writing a prompt that injects the relevant table relationships dynamically based on detected intent.
What surprised me: users didn’t just ask inventory questions. They asked “What’s been broken most this month?” and “Which room needs maintenance first?” — questions that required joins across four tables. The chat became a reporting tool I didn’t plan to build.
If I were doing it again, I’d instrument the queries to log which questions are most common. That data would tell me which dashboard widgets to build next. But for a v1, shipping a working natural-language interface to a relational database felt pretty good.