The New Job of the Data Team Is Providing Context to AI — George Fraser, Fivetran
Read full transcript 25 segments
-
I'm going to talk to you about the data team. So Five Tran serves data teams, Five Tran and DBT Labs. If you're in the data world, you probably heard earlier this year that these two companies merged. A match made in heaven. Now we can move your data and transform it. And we do it for thousands of companies. We've been doing it for over 10 years. This is almost the only job I've ever had. It's the only job after I was a scientist. So we've been doing this for a while, but this like many worlds is in an era of rapid change. And it's an era of rapid change for us as vendors, but it is also a era of rapid change for engineers who work with data in any way and for data teams in particular. AI agents are really good at writing SQL queries and making charts. And a lot of the activities of the data team are things that AI's can do. But there is good news, which is that data teams have a new job which is to connect that AI to context.
-
So their old job was business intelligence, but business intelligence is dead. We have artifacts now instead of dashboards. Don't call them dashboards, they're artifacts. And but this is not just vacuous marketing speak. Something really has changed. It's a lot of the dashboard work that used to be done by humans really can and should be done by AI's now. And we should probably have more dashboards that are shorter lived because they are so fast to make now. But those dashboards need to give correct answers. And not only do we need to build dashboards, but we want to connect autonomous AI agents to to data. And those autonomous AI agents have questions as well that they data grounded answers to. And so we have to ask, how do we make this possible? How do we make it so that your head of sales uh when he goes into uh their AI assistant Claude or Chat GPT or uh Slack and asks uh give me your three best ideas for improving pipeline conversion.
-
People love asking very open-ended questions of AI agents and actually that's a good pattern. That's a practice you want to encourage. Um how do we make sure that it will actually give real uh high quality answers to these kinds of questions? Well uh in the last six months a pattern has started to emerge of how to do this well. [clears throat] Uh and we've seen it in a bunch of different tech forward companies. So here are some examples. Uh uh Ramp uh company a lot of you probably know they make corporate credit cards and tools connected to that. Uh they have been out ahead on this area for a while. They started doing this last year. Um what they did is they made an agentic data analyst that is connected to their data in which they uh they model with DBT uh and they store in Snowflake. Um they made uh agent data analyst that connects to that data. Um Stripe has done something similar. People like to give their analysts fun names. They call it Kai. Uh and it's their knowledge AI agent. You know I just realized that Kai is an acronym. Uh five seconds ago I put that together.
-
Um so uh Kai similar to Ramp it connects to their data in Stripe's data platform. Uh DoorDash has one they call Vera uh which again connects to model data. DoorDash is actually a big FiveTran customer FiveTran and DBT. Uh they replicate their data, they model it and then they connect AI to that model data. Um and it's not just uh startups the AI AI labs are doing the same thing. Um so uh OpenAI and Anthropic both long time FiveTran customers since they set up their first data stack uh they have both built in-house data agents uh that connect to their data platforms. Uh and uh what all of these and they've written about it on their blog and I encourage you to go read about it as a way to learn about best practices. Um what all of these have in common is that they are connecting their AI's to the same data stack that they built for serving business intelligence. So the same data stack that has been serving humans for years at these companies, they are using as the source of truth for AI agents who have questions about data. It looks kind of like this. Um AI is from this point of view a new consumer of the data stack.
-
You have all of your business systems, you replicate the data into uh data warehouse or data lake and you used to connect your business intelligence tools to that data warehouse. You still do for a little while longer uh and uh now you connect your AI agents to that same data stack. And this turns out to work extremely well. One of the funny things about AI's is they are so anthropomorphic. Uh they act a lot like people. And so the very same things that make data uh work well for people make data work well for AI's. You have to take the data from all the the business systems. Um you want to put it in one database so that you can do joins across systems. Uh you want to model that data. You want to model that data in a way that is specific to your business. And modeling is fundamentally an exercise of simplification. You're presenting a simplified view of what is probably some very messy and complicated data that lives in the systems of record. So all of the investments that you've been making to organize your data estate for humans for years are the exact same ones that you want to build on for AI's. There are some new things you want to do.
-
AI's can traverse domains that uh previously were difficult for people. Uh the big one is unstructured data. You can actually do meaningful things with unstructured data with AI um because their ability to uh speed read is so extraordinary uh that they can actually go and read like a thousand transcripts of calls with customers who meet certain characteristics and things like that. So there's there's some new things that you need to do, but there's a lot of existing patterns that work well that you should build on when you want to connect AI to data. Now what you should not do and what none of these companies that I just mentioned are doing is the MCP web approach where you connect your AI assistant via MCP connections to all of your different systems of record. This is a little counterintuitive. You might ask if I want to connect my AI agent to my Salesforce data, shouldn't I connect it to the Salesforce connector? That would seem that sounds like a good idea. I agree.
-
This does not work well. And the reason it does not work well, think about a person. If you told an analyst, I want you to answer a question about what's happening in our business and I want you to do it by just logging into all these different systems and clicking around. They could do it. It would take them like a year and they would make a lot of mistakes. It's a very error-prone process. Trying to answer questions about data through MCP tools is kind of like that. You run into these problems. The data is very messy in these source systems. If you do not have a messy Salesforce, get the hell out of here. I am mad at you if you do not have a messy Salesforce. We have an especially messy Salesforce, but I would not claim to be the champion because that is a contest which has no champion. So the data is very messy. The data in the data warehouse has been cleaned up and organized according to the rules of your business. That's why we have data warehouses, but it is not that way in the systems of record. Also the query languages are terrible. If you ask questions about data to an agent and that agent is connected to these MCP servers, it's going to have to run so-called queries, which is Salesforce's dumb dialect of SQL. It's going to have to run JQL queries, which is so dumb it's not even a dialect of SQL.
-
If you know JQL, I'm sorry. I know JQL because I wrote our original Jira connector long ago. Um, or you, you know, if you connect to the Slack MCP server, all you have is the search uh terms that you type in the Slack bar. That's your tool for searching through the data. Uh, imagine trying to answer a data question with those query languages. And you can't even do joins across sources, right? The data all lives in different systems. So even though it sounds like a good idea to use MCP to solve this problem of getting context for your AI agents, it's actually a terrible idea because it fails in practice. MCP tools are still useful. They're useful for taking action uh or for retrieving individual records uh that have just been updated. MCPs are federated so they have no latency. Um, so they have a role to play in this system, but they are not the way that you should gather context about the world in your business for your AI agents. You should build it on your data stack like all those companies I just mentioned do. Uh, and this is how we do it at Fivetran. We've been doing it this way for a couple years. So this is a little diagram of how this actually looks at Fivetran.
-
Um, we have several different uh clients that read the data. Um, we have Slack. Actually, we have a data bot in Slack like a lot of those companies I mentioned earlier. We have Claude connected directly. Uh, so you can ask questions of Claude. I asked a question of Claude on the train on the way over here. Um, and uh it's still working on it. I don't know the answer yet. Uh, and and we you can connect autonomous agents to the same infrastructure. So at Fivetran, our uh autonomous support agent uh which will answer some of your questions. If you're a Fivetran user and you ask the right kind of question where the the agent uh can be highly confident that it knows uh the right answer, um it will just go ahead and answer your question. Uh, and the way it does that is it connects to this very same data stack. The same data stack we originally built to serve BI now supports an autonomous support agent and it works great. They all connect through an MCP server uh because MCP is at its bottom a protocol that you just use for connecting external tools of any kind.
-
There's nothing good or bad about MCP, even though I just said don't rely on MCP servers in the previous slide. It's not actually MCP that's the problem there. It's the the tools. Uh and they connect to our BigQuery data warehouse, um which has inside of it a giant DBT model that has been gradually evolved over the last 10 years uh that again is the same one that supports our BI tools. Um there are a couple of problems you have to find solutions to in order to uh bring in the unstructured domain and in order to give the agent a map of the database. You do not just want to connect the agent uh to the database and then say go look around and see what you find. You will not get good answers. We have tried that. Uh you will get better answers than you did 6 months ago because they are getting better at that. But in general that is not uh a good approach. You have to give it some kind of map of the database. So uh the way that we recommend that you solve this, there are a lot of of vendors that will sell you tools to give you some kind of context catalog uh to put in front of your database. And I am here to tell you that you do not need any of them. Uh it is a database.
-
Metadata is a kind of data. Do you know where you could put that metadata about what's in your database? Also in your database. Uh and this is our modest proposal for solving it. It has a website. It's a standard. It's the world's simplest standard. Uh kind of like it's agents.md but for databases. We suggest that a great way to solve this problem, the way that we solve this problem is you make a special schema in your database called agents. And then you put in it a table called root which literally has a column of markdown blobs uh that describe the rest of the tables in in the agent schema. And the rest of the tables are going to be user dependent. I'm going to show you a demo here where it looks like this. But the FiveTran production instance actually has a bunch of metadata from Looker in it. So the the tables after the root table are uh are a representation of the Looker model because that's the best source of metadata at Fivetran right now. Um. And uh this uh this pattern works extremely well because agents and databases are just like this perfect combination.
-
They have uh exactly the mirror image of each other's strengths and weaknesses. Um so agents uh they are kind of crazy if you're used to deterministic software. They can interpret open-ended questions, which is not really a thing that any other kind of software can do. Um they they can actually exhibit some kind of comprehension of ideas. Uh and they can explain answers back to you in plain language. Um those are amazing attributes. However, they cannot remember literally anything. They're like the guy in Memento who has to write notes for himself. I don't know if you ever saw that movie. If you haven't, great movie. Uh who has to write notes for him. This is kind of the one that made Christopher Nolan famous. Um there's probably some Christopher Nolan fan here who's like that is not the one. There was this other movie before it. So um the the agents can't remember anything. Uh and they are very non-deterministic. Um databases are like the exact opposite. They only remember things. They can't do anything else. Uh and so they represent this perfect marriage uh to agents. You can store the data about your business in there and then you can also store in a bunch of little tables in a special schema, a map of the rest of the database that acts as a guide for that agent. Um and you haven't even had to buy anything you didn't already have if you're a user of the modern data stack. Uh so I'm going to show you a little demo of Oh and one last thing about unstructured data, which I showed you in this previous slide. Um uh the unstructured domain, which is
-
kind of new uh in the world of analytics. Usually we didn't really bother with unstructured data if we're just building dashboards because dashboards can't really do anything with unstructured data. But now you can. Agents can just read it. Uh you need a way to make that unstructured data searchable. Uh and another thing that you do not need to buy uh is a separate vector database because all of the major data platforms are now offering built-in vector indexes and they also work great. And it's really convenient to have everything in one database, a theme I will return to again and again. Even even if there are other vector indexes that are slightly better, having it all in a single system where you can write hybrid queries is really helpful as you will see. So use the vector indexes of the database. So I'm going to give you a little demo of how we can actually put this together. And the we need a we need a use case. I'm not actually going to show you five trans internal data, which is very large and would take a long time to explain.
-
I'd have to onboard you to the company first. Instead, I'm going to give a demo of some data from F1. Hopefully there's some F1 fans in the audience who can ask questions. There we go. There's always a couple. And the F1 data set is really nice because first of all, there's a great public data portal that has all of the F1 data. It's very detailed. It has even things like telemetry of where each car is at each moment in time. So it's a size it's like a meaty structured data set, but then it also has an unstructured domain. So there's the rules of F1 and the glossary of all the terminology which is on the F1 website, which we're also going to ingest to the database. Fun fact, you can put unstructured text in SQL databases unless you are in 1975 and you're using Oracle from 1975, you can put giant blobs of text in databases. They are great at that now. Sometimes people seem to think that they need to like anytime you have a file, a long string of text, you got to put it over in S3 or something. Not so. Text columns work great. So we're going to put that unstructured data right in the same database.
-
And we also have the transcripts of the press conferences. So it's a nice meaty data set, but it's something everyone knows something about. Everyone knows what are and what races are. Um, so our sources are there on the left. Uh, we uh we have the Open F1 API which has all the structured data. Uh, we have the uh F1 website uh which has all of the unstructured domain and all the transcripts of all the post-match press conferences. Uh, and then we're going to use FiveTran uh to uh write and run a couple of connectors that replicate all this data. So I and by I I mean my friend Codex uh made uh two connectors using the FiveTran connector SDK, which is a way to write the the capture portion of a FiveTran connector that you can then run on the FiveTran platform. Um, it reflects all the lessons that we've learned over the years about how to make great connectors in a nice Python API. And um I recommend that you don't use it. I recommend that you just have your AI agent use it with our connector SDK skill and it will write you beautiful connectors to any data source you desire. Um, and that lands all the data in uh BigQuery. In this demo I used BigQuery uh and a bunch of source tables and then we use DBT uh to model that data.
-
Uh, the data it comes out of the API in a little bit of a funky format. APIs are often kind of funky and so we have to normalize uh the data uh some uh to make it easy for the agent to navigate and understand. And that's where we do our vectorization. Um, so we just use a regular DBT model in the data warehouse uh to incrementally uh vectorize the unstructured domain so that we can search it. Uh, and then we're going to use um a Gemini agent just cuz it was convenient when I set this up uh to set it up in Google Cloud, but you could use anything. It could be your own agent, it could be Cloud, it could be Chat GPT. None of these components are really proprietary. This is really just a pattern of how you put this things together and the system prompt of that agent just says go look at agents.root and you'll find out everything else you need to know there. Um, so as the data in the database evolves, the agent is automatically going to pick up those changes cuz it's its system prompt is like this long. Uh, and then we're we have a bunch of evals.
-
All agentic systems need evals. They're the equivalent of performance benchmarks. These are just questions that have known correct answers that you use to make sure you don't break it after you build it in the first place. Um so a quick whirlwind tour of what these pieces look like. This is a little snippet of the connector, you know, it calls the APIs, it extracts the it it interprets the responses, it sticks the rows into the destination. Um this is an example of what a DBT model looks like. Um if you are not a DBT user, DBT models are basically just SQL queries um with some little sort of pragmas in in uh Jinja blocks that tell it things like how to turn this into a data pipeline. Uh and you can see that what we're basically saying here is I want to uh vectorize uh the text of the um this is of the uh F1 glossary. Uh I want to vectorize it into embeddings and then another part of the DBT model says please create a vector index so that I can search this thing.
-
And then the evals look like this. Uh they're just a bunch of questions uh in a Python uh in a simple uh bit of Python code that runs in CI uh that uh have correct answers. I set it up as like a 10 options and then one of them is correct. There's multiple ways people do evals, but this works well for this demonstration. And then the agent is going to write queries that look like this. Um so uh the queries this is a fun example of a query because we're we're trying to find out what did people say about tire problems in 2025? And like a lot of queries, it's hybrid. It has both structured and unstructured elements. A lot of the questions that people ask and agents ask end up they have got one predicate that's like a uh uh a unstructured search looking for content about a topic. And that's what you see uh higher up there um in uh the vector search function, which is just the big query function for doing a vector search, and all of the major data platforms have this now.
-
Uh and uh then at the bottom, it says, okay, I want post post-race transcripts, and I want them from 2025. So that's a structured predicate. And that's a very common pattern. And one of the advantages of putting everything in one database is very easy to do stuff like this. This is what it looks like uh as tables. The schemas are are reasonably large, so this is kind of a zoomed-in view of pieces of the schemas. But basically, you've got a source schema. That's what comes out of the connectors. You've got a normalized schema. That's what DBT produces. That's the one that has the um vectorization and indexes on it. And then you have agent schema, which is just three tables in this example. Uh it's just tables, joins, and columns, which is basically just descriptions of what's in the tables. This is the normalized tables that get described uh descriptions of what's in the columns uh and how to join these things together. If you tell the agent those three things, it will take you a long way. We're still experimenting with what is like the best amount of information to give the agent in order to make this work well. It's still kind of an open question, but it doesn't take much.
-
Um and I think I spent about 5 hours in total building this thing. Um I uh spent about 2 hours building it without really looking at it, and then I gave the talk once, and then I went back and looked at the code, and I was like, oh man, this needs a little architecture. Uh and I spent about another 3 hours cleaning it up. Uh so let's let's ask some questions of our friend the data agent here. Uh where is my cursor? So this is what it looks like in Gemini. This is just uh Google uh Google Gemini's basic interface. Like I said, you could do this with any uh oops. Come here. This is my little F1 analyst agent. And why Mm disappeared.
-
The cursive demos. Oh, I'm not on the Wi-Fi. That's why. Slight problem. Um All right. We're going to use my iPhone as a hotspot here. Is there a conference Wi-Fi here? What is it? >> On the side to your right. >> Oh, you know what? Uh Oh, it's right there. Okay, cool. I think I think my phone might be getting the job done here. Yeah, yeah. For some reason BigQuery F1 Sorry, Gemini has been giving me error messages today, but it is working. So let's say who is most improved driver this year? All right. Let's see what it's got. So you can see the thinking trace of this thing.
-
And the first thing it does, because this is what we told it to do, is it goes and looks at those 30 tables. It Well, it looks at the the three tables in agent schema, and that tells us about tells us about the 30 tables in the normalized schema. And then it's thinking about how to interpret that. It does a little reconnaissance query to understand what's in the database. That's what that was, which is a common thing for it to do. It'll often do these little queries to kind of probe and find out what's in there. And let's say it wants us to clarify the question. Let's say it's race positions gained. All right? And it's thinking again. And it's going to write probably a more complicated query this time. And there's our longer query. Lots of joins in there. These look a lot like the queries that human analysts write.
-
Um, that's what happens when you have a big schema. Uh, let's see. Here we go. So, the most improved driver by this metric is Lance Stroll. I'm not an F1 nerd, so I don't actually know a lot about F1. I chose this cuz it's such a good data set. Yeah? Is he? But but most improved, right? Like that often is the worst. It's like your fastest growing product, right? Is always kind of a questionable endorsement right? Uh, and that poor guy has gone way down. Um, and I've got zillions more examples of questions here I asked recently. Uh, so you know I asked it like uh, what are the toughest corners this season?
-
And it'll go and it'll look at the actual crash data and the press conference transcripts and say which are the hardest corners. Um, and uh, I asked it who the handsomest F1 driver was. Very important question. Uh, and at first it refused to answer, which I think is AI safety run amok. Uh, and then I really had to push it. Uh, and it said Charles Leclerc, which we all know is a correct answer. Uh, so you can see it has structured data, it has unstructured data. Uh, it's ultimately a very simple pattern. And as the AI models have gotten smarter, uh, this uh, pattern has worked better and better. This is a this way of connecting AI to data works better the smarter the models get um, because you're really putting them in charge um, rather than trying to hamstring them with some elaborate uh, over-engineered uh, context assistant. And my takeaway for you is that you should really think about this as a responsibility of your data team.
-
The data team should own your context. The exact same skills that made them good at delivering analytics are going to make them good at delivering context. And keep use standard components to do this. Don't get locked in to anyone's walled garden. Agents and databases are really all you need. You can go a long way with that pattern and keep keep your definitions in code because then the agents can write the code for you. And that's it. And we're at time. Thank you very much.
Summary
The presentation explores how the merger of FiveTran and DBT reflects a broader industry shift where traditional business intelligence is giving way to AI-driven artifacts and agents. Key subjects include the integration of AI agents with structured data stacks at companies like Ramp, Stripe, and DoorDash, as well as the handling of unstructured data. The practical takeaway is that data teams must pivot from building static dashboards to grounding autonomous AI agents in a unified, modeled data stack rather than connecting them directly to individual systems of record.