Read along with the audio summary
An artificial intelligence agent can write valid code and still hand you the completely wrong business metric. In a podcast episode released on April 9, 2026, a builder working on the data platform Hex explores the unique challenges of creating AI agents for data analytics rather than software engineering. By the end of this summary, you will learn how to manage context, govern company definitions, and build data agents that your business users can actually trust.
Why single-shot data tools fail to deliver real insights.
Forcing a powerful AI model into a single prompt and response is like driving a high horsepower beast at twenty-five miles an hour in a school zone. Early data tools relied on generating a single query from one prompt, which failed because real data analytics is an iterative process of discovery and rabbit-holing. You get one answer, find it interesting, and immediately want to ask a follow-up question. Move your data tools away from single-shot generation features toward conversational interfaces that support multi-turn, exploratory workflows.
Why data analytics agents are harder to build than coding agents.
Software coding often has a simple binary pass or fail state, while data analytics is deeply subjective. When you build software, you lay out a defined specification up front, and the agent either executes it or fails. In data science, an agent can write valid SQL yet still return the wrong number because it missed subtle organizational nuances and decision points along the journey.
How to solve the new core bottleneck in AI architecture.
AI model reasoning is no longer the primary limitation, because the main architectural challenge now is how you dynamically retrieve and filter context. If you inject conflicting information or too much context into a large language model, the core technology behind modern AI, it can spend thirty minutes pondering the contradiction and enter a crazy collapse mode or hallucinate. Prevent this context collapse by consolidating tool access and using intermediate retrieval agents rather than overwhelming the model with thousands of options.
Why showing the code fails to build trust with business users.
Simply displaying the generated SQL or Python code does not make a non-technical stakeholder trust the numbers on their screen. Build stronger, governed ways for your agents to verify accuracy and prove confidence against official organizational definitions.
How to turn inevitable AI mistakes into a continuous training loop.
Because data truth is subjective, your agents will inevitably make mistakes, and that error exhaust is actually your best training tool. On the Hex platform, the core feedback loop is driven by surfacing the exhaust of user work to the data team so they can notice mistakes and improve the guides, semantic models, and warehouse context. Implement observability systems that capture AI failures, allowing your data team to continuously review errors and update the core documentation.
Why letting an AI remember individual user preferences is dangerous.
Allowing an AI to remember a single user's personal definition of a business metric is a scary prospect for enterprise data teams. If one person teaches the AI a flawed definition within their local memory, it creates conflicting truths across the entire organization. Restrict user-level AI memory regarding business logic, and centrally govern all metric definitions to ensure systemic accuracy.
How to test data agents for the real world.
As a general rule, most static, point-in-time evaluation sets are bad unless they are being actively worked on. Traditional single-turn benchmarks cannot measure how a data agent handles real discovery work. Abandon static benchmarks in favor of custom, long-horizon evaluations that simulate how an agent explores an environment, encounters errors, and self-corrects over time.
Building reliable enterprise data AI requires moving beyond simple code generation to governed, multi-turn systems, and hiring engineers with deep domain empathy rather than pure machine learning expertise. The best person is someone who really cares about the problem that you're trying to solve.