Cross-industry
Ask your data
Ask in plain language and get the answer, the query behind it and a chart. We have built this pattern for elevators, fleets, lending, shipping, port safety, property sales, textiles and public registries.
One analytics pattern, many schemas. Status: In use across several customers.
- 16 analytics agents shown here
- @ind industries they serve
The problem
Every operations team makes the same request: a number from the database, now, without writing SQL or waiting for a report.
What we learned about the domain
- The schema needs a dictionary. A semantic layer gives every table and column a plain-language meaning before any question is asked.
- Trusted queries beat generated ones. Where the application already has a verified query for a screen, the agent uses it. It writes SQL only when it has to.
- Guard the database, not the prompt. In our current builds every query passes a read-only guard and is scoped to what the user may see.
- Liked answers become the test set. Approved answers are kept and reused, and each site has a review queue.
The workflow
- Ask a question (Person decides)
- Understand the intent (Agent)
- Find the tables (Agent)
- Reuse or write the query (Agent)
- Guard and run (Rule in code)
- Answer, chart, follow-ups (Agent)
Agents at work
From the library
- Conversational BI Text-to-SQL. Lets business users ask questions of a PostgreSQL database in plain language and get the SQL, a summarized answer, a suggested chart and follow-up questions, with automatic retry when the SQL fails.
- Multi-Agent Database Question Answering. Answers plain-language business questions over a multi-table relational database by having a team of AI agents choose tables, write join-aware SQL and critique it, then returns the data with a recommended chart.
- Multi-Tenant Conversational BI. A multi-step chat analyst that understands the question, finds the relevant tables, writes and self-corrects SQL, then summarizes the answer, draws a chart and suggests follow-up questions, for any organization's connected database.
- Connected-Database Conversational BI. Lets a business user connect their own Postgres or MySQL database and ask plain-English questions, getting a jargon-free answer, an explanation or a saved chart.
- Enterprise Database Q&A Analyst with Schema Search and Narrative Summary. Answers plain-language questions over a registered enterprise database by finding the relevant tables, generating SQL, and writing a one-line narrative summary of the result.
- Natural-Language Database Question Answering. Lets business users ask questions about a connected database in plain language and returns validated SQL and result data, with follow-up conversation support.
Adapted to the workflow
- Safety Event Conversational Analytics. Lets safety leaders ask plain-English questions about unsafe events, incidents and sanctions and get a written answer, an auto-built chart, the SQL used and suggested follow-up questions.
- Driver Safety Conversational BI. Lets fleet and safety managers ask plain-English questions about trips, safety scores, harsh events, CO2, checklists and training, and get answers, charts and follow-up suggestions from live data.
- Consumer Lending Branch Report Analytics. Lets lending staff upload branch daily report workbooks and then ask plain-English questions that are answered with generated SQL, a narrative answer and charts.
- Timesheet and Billing Data Chat Analyst. Lets users ask plain-English questions about projects, timesheets, utilization and billing and answers from the tenant Postgres database, restricted to the tables their role may see.
- Garment Cost Sheet Conversational Analytics. Lets costing and merchandising staff ask plain-English questions about cost sheets (margins, buyers, styles, materials, suppliers) and get an answer, the SQL used, a chart spec and follow-up questions.
- Ask-the-CRM Analytics. Answers managers' natural-language questions about leads, calls and sales by generating and running read-only SQL, then summarising and charting the result.
- Ask-the-ERP Shipping Data. Lets river-shipping staff ask questions in English or Spanish, by typing or speaking, and get grounded answers from the live ERP database or the help manuals, with follow-ups and charts.
- Safety Records Analyst. Turns a safety question into a plan, answers it with the app's own verified screen queries when possible, and otherwise runs a bounded tool loop that writes and checks read-only SQL.
- Campaign Finance KPI Analytics. Picks the right campaign finance KPIs for a question (e.g. top fundraisers, cash balance, contributions by month for a committee), runs vetted SQL and returns data ready for charts.
- Port Safety Analytics. Answers questions about incidents and observations by picking a vetted query template, running it, and replying with text, a table and a suggested chart, or navigating the user to the right screen.
Controls
- Scope. Queries run read-only. In most builds a guard checks each SQL statement before it runs.
- Scope. Where the build calls for it, queries are limited to the role, tenant or company of the person asking.
- Trace. Every answer comes with the query behind it.
- Decision gate. A person asks and reads every answer. Liked answers go to a review queue and become the test set.
What changed
Before
- A report request, then a wait
- Numbers disputed because nobody saw the query
After
- An answer with the query and a chart
- The same engine reused on each new schema
Where it goes next
A new schema needs a knowledge pack and a semantic layer. The planner, the guard, the review queue and the test harness come from the library.