Home · Designing an AI Gateway for Enterprises · Part 8 of 17
Your logs aren't answers
What the portal half of the product is really for.
Logs are a record. Answers are a view. Ask a finance lead "who used the most last week?" and the honest reply from raw logs is "give me a day."
The portal is half the product
This is why the product has a portal at all. A gateway that enforces rules but can't explain itself is hard to trust, and a gateway you can't trust is hard to defend in a meeting. The portal is where the gateway's behaviour becomes something a person can read.
The questions people actually ask
- Who used it, and how much?
- Which models are people actually choosing?
- What did it cost, per person and per team?
- Did it work, and how long did it take?
- Who is close to their limit, and what was refused, and why?
None of these is a line in a log. All of them can be built from log lines. The gap between those two sentences is a whole product, and it's the one most AI platforms forget to build.
Three principles
- Start from the question, not the data. Write the questions on a whiteboard before touching a query. If a record doesn't help answer one of them, ask why you're keeping it.
- Keep collecting separate from showing. Then you can change either without breaking the other. The records are kept in PostgreSQL, in a shape designed for the questions rather than for the convenience of whoever wrote them.
- Be honest about gaps. If some records are incomplete, show "unknown", not a blank and not a guess. A tidy wrong number is worse than a visible hole.
Answers flow out, decisions flow back
The portal isn't read-only. It's also where budgets, access and prices are managed, and those decisions flow back to the gateway, which applies them to the next request. That loop is the reason I stopped thinking of them as two products. Reports without controls are a rear-view mirror. Controls without reports are guesswork.
It also explains who sees what. People see their own usage; administrators see everyone's. Same screens, different slices, decided by who you are, which is exactly the identity story from the earlier post doing its job one level up.
What's on the page
An overview for the executive with two minutes. A trend that reads by day, week or month. A map of when people actually work. A view of who is close to a limit, and a list of what was refused and why. Each one started from a question somebody asked, not from a table somebody had.
What makes it trustworthy
A reporting page earns trust the same way a colleague does: by being right when you check, and by saying so when it doesn't know. I'd rather ship a page with an honest "not enough data yet" than a polished one that quietly fills gaps. People forgive a missing figure. They don't forgive one that turns out to have been invented.
Everything on the page should also be explainable in a sentence. If an administrator can't say where a number came from, they won't repeat it in a meeting, and a number nobody repeats isn't doing its job.
What a person feels
For an individual, the difference is small and enormous: they can answer "what have I used this month?" without asking anyone. For a manager, it's "which of my people is about to hit a wall?" For finance, it's one page instead of one email chain. None of them knows or cares how the records got there. They care that the answer is on one screen and that it's the same answer everyone else sees.
Design the answer first, then work backwards to the data.
Want to discuss this? Connect with me on LinkedIn.
Next: giving every user a dashboard of their own.