Talk to your data: agents that answer business questions from your database
An agent that turns a question in plain language into a real query and an answer, with a least privilege role, query logs and a defined scope. What we build, what we refuse, and how we deliver it.
by Zechim
Most business questions already have an answer in a database. Getting to it takes a request to an analyst, a wait, and a report that answers last week's question.
A talk to your data agent lets people ask in plain language and get an answer computed from the real data. Our public demo shows the pattern on a fictional store. This post describes how we build it for a real company.
What we do
1. Define the questions first
We start with the 20 or 30 questions your team asks most, and the numbers they have to trust. The scope of the agent is that list, then it grows. An agent that tries to answer everything on day one answers nothing reliably.
2. Give the agent a narrow door
The agent reaches data through a layer with its own role, which can read only the tables and columns it needs. It cannot write, and it cannot see credentials, tokens or tables outside its scope. The boundary is the database privilege. The prompt is a behavior rule. See our security review post for why.
3. Pick the right interface
For some companies the right interface is a chat in the web app, for others a WhatsApp or Slack bot, and for technical teams an MCP server that works from the assistants they already use. Our demo exposes the same agent through a web chat, an MCP endpoint, Slack and Telegram.
4. Show how the answer was computed
We design answers to show how they were computed: the query, the tables and the period, so a person can check them. Our demo states what it is looking for before each query, never invents values, and asks back when a question is ambiguous.
5. Test with real questions
A set of real questions with known correct answers runs on every change. We cover the agent's wrong answers as carefully as its right ones.
6. Log and watch
Every question, query and result is recorded, with cost and latency.
What we do not do
- We do not point an agent at a database with full access. Scope and privilege come first.
- We do not promise it answers everything. We state what it covers and what it refuses.
- We do not hide the query. Answers you cannot check are answers you cannot trust.
How we deliver it
- 2 week Discovery. We collect the questions, read the schema, find where the numbers live, and define the scope and the access layer.
- 4 to 8 week Pilot. The agent on one subject area, with the access layer, the test set, logging and one interface, used by a small group.
- Optional ongoing mode. A Fractional AI Lead extends the scope and keeps the test set and costs under review.
You keep the code, the test set and the documentation.
What you need to start
- Read access to the data, or a replica of it, and its documentation if there is any.
- The list of questions, even a rough one.
- Someone who can say which numbers are the official ones when two sources disagree.
If your team waits days for answers that sit in your database, worth 30 minutes to pick the first questions together.