Problem
Business users at BGL, a provider of self-managed superannuation fund (SMSF) software, could not query data themselves and queued requests with the data team. Plain text-to-SQL gave inconsistent and inaccurate results. BGL keeps its data in over 400 analytics tables, each covering one business domain such as customer feedback, investment performance or compliance tracking. An agent that handles raw schemas, joins and business rules at once joins tables wrongly, misses edge cases and aggregates incorrectly.
Example from the article: questions such as "Which products had the most negative feedback last quarter?" or "Show me investment trends for high-net-worth accounts" asked in Slack.
Solution in brief
Keep business logic in the data pipeline. The agent only reads pre-aggregated tables, writes SELECT queries and processes results with Python. Domain knowledge sits in per-product skill files loaded on demand, and large results go through the file system, not the context window.
Questions this case answers
- How to build a natural-language analytics agent that gives consistent answers over hundreds of business tables for non-technical users
- How to give an LLM agent domain knowledge for many product areas without loading everything into its context at once
- How to let business users get answers from company data without waiting for the data team
- How to make a text-to-SQL agent give consistent and correct results on hundreds of tables
Tools and methods
- dbt and Amazon Athena — build the daily pre-aggregated analytics tables (single source of truth)
- Claude Agent SDK — runs the agent, executes SQL and Python, loads skills
- CLAUDE.md — global context: structure, environments, how to run SQL
- SKILL.md per product line — trigger, tables to use, multi-table guidance
- Amazon Bedrock AgentCore — hosts the agent in isolated sessions (up to 8 hours)
- Slack — the user interface
Google or a one-time email code. No password.