Most teams on BigQuery already have more data there than they realize, including the GA4 export, which lands as event tables in a dataset of your project. Contextflo connects that data to the Claude or ChatGPT your team already uses, so people ask in plain English and get an answer with the SQL behind it, instead of filing a ticket with the data team.
How it connects
Contextflo connects with a Google Cloud service account that has two roles: BigQuery Data Viewer to read tables and BigQuery Job User to run queries. You upload its JSON key in Contextflo's secure form, where it is stored encrypted and never shown again.
Queries run live in your project. We never store raw data from your tables, and we don't store query results. Contextflo checks every query and blocks writes.
What Contextflo adds
Connecting an AI tool to BigQuery is the easy part. Getting the same right answer every time is where the data team's hours go. Contextflo gives your team self-serve on the BigQuery you already have, with whichever AI they use, and gives the data team its time back:
- Table context. Descriptions for tables and columns, generated from your schema, a connected code repo or docs, then reviewed by your team.
- Saved queries and metrics. SQL your team has checked, which the AI reuses instead of re-deriving the logic each time.
- Group access control. Admins choose which tables each group of people can query.
- Audit log. Every question and query is logged per person.
Permissions
Two layers. The service account's IAM roles are the ceiling: Contextflo can only see the projects and datasets those roles cover. Inside that, groups in Contextflo narrow what each team sees, so marketing can query the GA4 dataset while finance sees billing tables, for example.
Set it up
- In Google Cloud, create a service account in the project that holds your datasets.
- Give it BigQuery Data Viewer and BigQuery Job User, and create a JSON key.
- Note your datasets' location, such as
US,EUorus-central1. - In Contextflo, go to Data Sources, choose Google BigQuery, and enter the project ID, location and key file.
- Pick the tables your team asks about, then ask your first question in Claude or ChatGPT.
FAQ
Who pays for the queries?
You do, in your own Google Cloud project. Queries run as jobs in the project you connect, under the service account you create, so they show up on your BigQuery bill like any other query. Contextflo does not charge per query.
Which roles does the service account need?
Two, and both are required: BigQuery Data Viewer to read your tables, and BigQuery Job User to run queries. Without Job User the connection test passes and tables list, but every query fails with a permission error. To limit access to some datasets, grant Data Viewer on those datasets only and keep Job User on the project.
Why do queries fail with 'Dataset not found in location'?
Each connection queries one BigQuery location, and the Location you enter has to match where your datasets live exactly. US and us-central1 are different locations. The test and table list still work with a wrong location, so check the dataset's Data location in the BigQuery console and update the connection.
Can I ask about my GA4 data?
Yes, if you use the GA4 BigQuery export. The export writes your events into daily tables in a BigQuery dataset, so once that dataset is connected, Claude or ChatGPT can query it like any other table. Table context and saved queries help here, because GA4 export tables store event parameters in nested fields.