Fivetran co-founder George Fraser shows AI Engineer how to make an existing data warehouse usable by agents. His Formula 1 example puts the database map, race data and searchable transcripts behind the same query interface.
Keep business definitions in the warehouse
- Agents can write SQL and draw charts. They still need someone to decide which tables, joins and definitions answer a question such as “How can we improve pipeline conversion?”
- Start from the data stack that already serves reporting: copy records into a warehouse and use dbt to turn them into business-specific tables that people and agents can join.
- Fraser cautions against making an analytics agent piece together answers from raw Salesforce, Jira and Slack tools. The tools expose different query languages and leave the agent to reconcile messy records across systems.
- Model Context Protocol (MCP), a standard for connecting agents to tools, still has a place. Fivetran uses it to expose its curated BigQuery warehouse to several clients; Fraser keeps source-system tools for actions and fresh single-record lookups.
Give the agent one place to start
- Point the system prompt at
AGENTS.ROOT, a directory in the warehouse. From there the agent reads guidance on available tables, what their columns mean and how to join them. - Fraser says Fivetran’s internal catalog draws on its Looker model. The Formula 1 walkthrough uses simpler table, column and join descriptions. The published Gemini deployment also reads those same tables at deploy time to build the agent’s configuration, so refreshing that version requires a deployment.
- Store text alongside structured data when the warehouse supports it. To find what drivers said about tire problems in 2025, use vector search for passages about the topic and ordinary SQL filters for year and post-race transcript type.
Test the answer, not just the SQL
- The demo project ingests OpenF1 data and Formula 1 documents, models them with dbt in BigQuery, and gives a Gemini agent access. It runs questions with known answers in continuous integration to catch regressions.
- Asked for the “most improved driver,” the live agent first explored the tables and asked what “improved” meant. Fraser supplied “race positions gained” before it ran a larger query and returned Lance Stroll. That was the demo’s answer under the chosen definition, not an independently checked ranking.
- The demo shows a query pattern, not an accuracy comparison. The amount of guidance to give the agent is still an open question; test metric definitions and ambiguous prompts alongside straightforward lookups.
“The data team should own your context.” — George Fraser, 26:35