Building Analytics Agents That Get the Numbers Right
Chapters5 chapters
About this session
Getting an analytics agent to answer is quick. Getting it to answer with your business’s own numbers, the ones the business already agreed on, is the hard part. Atlan’s forward-deployed engineers do that work alongside customers, and Zach Michel shares the playbook they’ve built from it, so your team can start its next agent from what’s already proven instead of from scratch.
TranscriptClick a time to jump there
Zach MichelThanks, Em. And now on to agents on the context layer, what it takes to build one and what it takes to build one that works. My name is Zach, and I head up solution architecture here at Atlan. I'm excited to take you through this. So to get started and a little callback to ContextCon, there are five main problems we've seen with AI adoption in the enterprise. And if you want to go deeper on this, we have all of ContextCon recorded. So as a refresher, though, the five main problems we've seen is context sprawl and discovery. It's really hard to find what you've built, and it's really hard to ensure that it's correct. Second is context modeling and retrieval, which is that the way you model context is really important when you think about how models not only retrieve it, but also infer it once they get it.
And you need to build a platform that can do retrieval at scale and across any harness.
Context lifecycle management. How we manage context needs to be more like code. If you think about it, context powers production workloads. Just like when code powers a production application, you want ownership, collaboration, you want to know the dependencies, you want to have review cycles, versioning, you want to be able to roll back. The fourth problem is context improvement loops. The volume of interactions with context is insurmountable by any person. And so you want to build programmatic ways to find new improvements to your context. And the only way to do that is through traces. I think of traces as what telemetry did for infrastructure is doing for agent development. And so you need a system that can capture and help you learn from traces.
And then the fifth is context portability. Today's harness that's leading may not be the harness for tomorrow. You as a business owner or as a team owner or as a developer want to be able to switch freely from model, from harness, and not be locked in to any one vendor. And so how you build your context needs to be portable, and for example, in an Iceberg format so it can go anywhere. And with all of that, all those problems, we learned that we needed to build a platform that could solve all of these holistically because any one solved alone is not enough, which is where we built Trident. Trident is the nervous system for AI. It connects artifacts like skills, tools, metrics, and ontologies to the actors, the people or the agents that use them, and then also helps capture and review and analyze the traces, so how the inference and the thinking happens around this context, what is created from it, the outputs, how users give it feedback, what conversations happen, and doing it in whatever harness your business decides.
And so with Trident, how do we help with analytical workloads specifically? So to go on this quest of what makes an analytics agent so hard, we built our own benchmark, which is on 107 questions across our entire business. And it's a simulated environment. However, it uses a near real data model and it's extremely messy, just like everyone else's data really is. And we started running a lot of experiments. So to give you an example, let's use the question, what's our Q3 sales pipeline? In that question, there's five different things that have to be an inference loop for any model to answer. So if I just ask that question and point to a bare schema, if I give it a foundational model like GPT 5.6, which will be outdated by the time you see this, it can hit something like 41%.
If I use it in open weight model, I hit something like 32% accuracy. That delta is only about 10 percentage points, and the ceiling is still pretty low. So a model alone on a bare schema is not enough. And that may not be revolutionary for some folks, but after we found that out, we said, okay, any model will work. Let's start testing across all models and just see what the variance is. We need to figure out what's the strongest piece of context we can give agents so that they can answer questions accurately and efficiently and reliably. And what we found through all of our research is there's three core objects. For the what questions, we use metrics.
So for example, in what's our Q3 open pipeline, open pipeline is a metric. And the model needs to understand how is it defined? So what's the SQL behind it? What's the formula? The way it focuses is a lot deeper than that though, and it needs to know population, the grain. It needs to know what dimensional splits are allowed, what filters are allowed, and what to do if it's not filtered. And it needs to also have saved queries so that the model can reason through how to think about a question that is provided and write the right SQL and do it in a semi-deterministic way. For the why questions ontology, this teaches, models how your business works.
So for why did viewership drop on our drama shows? What is viewership? What is a show? And how does drama relate to it? And then finally, for skills. This is how the agent does things once it has data. So this is your procedures, your rules, and your regulations. And after we found the right context, we wanted to find out how do we actually help customers build the context, manage it, and build learning loops on top of it. And so with Atlan's product, we have a concept of context agents. We also built plugins that you can use locally on your harness to mine things like query history, your existing BI, and your existing semantic models to bootstrap that first set of metrics, skills, and ontology, and evals as well.
And then once you have the context managed, you can retrieve it from whatever harness you want, whatever third-party agent you want. And every time there's retrieval, there is then traces, which help you build learning loops on that context, which then improves the next time an agent goes to ask. All of this runs on Trident, and I'd love to show you. So let me do a quick demo. So to get started, here's Trident, which is a native desktop application. And I'm going to go to a fresh workspace. Workspaces are the containers for all of the artifacts that we talked about. In this fresh workspace, I can see I have zero metrics, and I'm going to want to bootstrap.
So I can choose to bootstrap from query history, from a BI model, or just ask a general question. And what it's going to do is it's actually going to go run this plugin we've built, which you can access from anywhere, from any harness, and do metric generation. So I could run this from this harness. I could run it from inside Atlan's app. That was Claude, by the way. I could run it from Codex as well. It doesn't matter. The beauty of running it from my harness is that I can connect it to other business systems that I have access to that I may not want to give Trident to. I might have some local files, some MDs, some semantic views that I've been working on that I want to input into this to help curate the first set of metrics.
And this plugin also can help with eval generation. It can work backwards from a dashboard, and it can help you test your evals as well as you go. So once I have all the context created, in this case, I was creating a Customer 360 agent. So I'm going to go to my Customer 360 space. I can see here I have 31 metrics. And I am going to look up a metric about risk. So I have this ARR and at-risk accounts. And within this, sorry about that, weird little pixelation. Within this metric, I can see who owns it. This is my colleague, Ani, owns it. I can see what versions it's on. I can see what this metric is.
So I can see what it includes, the granularity, what to exclude, which is important. I can see how it's measured. I can see what parameters to apply if none are given in the query. And I can also see what the formula for the metric is. In this case, it's on a SQLite database, support any type of SQL. You could see the actual SQL underneath, which is very important for agents because as an agent retrieves this metric, having the SQL shape gives it some level of determinism because we know that models are not deterministic, but it gives it some level of determinism for reliability. And then we have other attributes that otherwise would probably overwhelm most systems is things like how to roll it up.
What do you do when there are missing values? What do you do when it's divided by zero, et cetera? And with each metric comes the dimensions that it can be split by, some SQL examples. So when a model retrieves this, it has some reference point and also the dependency. So how does this metric relate? Sorry about the version update there. How does this metric relate to other metrics, downstream, this is downstream, and upstream, and then other saved queries? And for saved queries, this is where we can store how the business shape looks for specific questions. And this helps because when models want to retrieve an answer, want to build SQL, what they're doing is they're inferring the human English or human language, excuse me, and then trying to write SQL for it.
Everyone asks questions a different way. So you can see your governed metrics, your managed metrics, and then you can see what the formula is underneath. And the model can reason through whether or not what it's building is reliable. And for reliability and accuracy comes the final piece for metrics, which is saved queries, which is evals, apologies. And in this case, I can see we have 36 golden questions, and each eval comes with what the answer is and what the expected SQL is. So this is stored separate from the agent. What these eval sets are used for is as your agent is running, you will use this to refer back to whether the question was right or not and do some hill climbing to improve your context in the metrics to then improve the next question.
And the final piece I'll show before showing you the retrieval part of this is ontology. And an ontology, like I said earlier, is for the why. And it helps a model understand how your business operates. So in this case, I have a customer 360 ontology, and I can see that I have definitions of what an active customer is, what a customer account is, what the concept of customer health is. And I can see how they all relate to each other. This is a relatively simple ontology for the sake of demo, but as we all in the ontology space know, this can get quite complex quite quickly. And then we also have data bindings to help the agent infer what data is related to what objects.
Knowledge records to know information about those objects, et cetera. And this is used on the retrieval side when an agent's asked a why question or a deeper question than just a simple what. So now let's see it in action. So here in Claude, I have Relay, which is the name of our internal Customer 360 agent. And I say with Atlan on, which is just for demo purposes, how much ARR renews in the next 90 days and how much of it is at risk. And I can see right away that it goes to Trident to pull some information. It pulls what are some verified queries, it pulls some metric definitions, and it gives me a good answer.
And I've built this agent to explain where it gets its context from so users can debate with it. I've also built this agent to where if it finds any issues that it raises it. So in this example, how many renewals slipped last quarter and what is our customer churn rate? I can see that it found customer churn rate as a certified metric. And I could see that it found a candidate metric named slipped renewals. And this is a candidate because it found, by looking at all the other saved queries and all the other usage, that the join logic seems off. And the join logic is off by just a simple day because of how the snapshot works underneath.
And in the agent, it can recommend to the user, hey, this is what I found. Would you like to recommend this change to the central CS operations team? This could also be autonomous. You can decide as the agent builder how you want the review flow to go. In this case, I want my users to make recommendations, so I'll click this button, which is an API call to Trident. And then I'll come back in here, and I'll go to metrics, and I'll go to the slipped renewals, which I own. And one more time, refresh for pixelation. And I'll see here that there's this recommendation now on slipped renewals, and it's calling out this exact point that the join logic needs to be changed.
And it's saying it found this over 27 runs on this Customer 360 analyst, and I can decide, do I want to dismiss or apply the suggestion? And so with that, that is our demo. And so I'd like to make a call out. If you want to come build with us, or if you want to just build on your own, we've published everything. On how we build with customers from start to finish, bootstrap all the way to learning loops in our FDE Playbook. This is open to the public. You can install it into a local session and get rolling. If you want to build with us, we do agent sprints starting every week on Monday. You get one-on-one time with an Atlan FDE, which is really exciting.
So thank you for the time. With that, over to a few of our customers to hear how they've built, both from AD Ports and BusPatrol. Thank you.
















