Overview
Google BigQuery is the primary data source supported by Interact. Once connected, your agents can query any BigQuery table in the datasets you choose to expose. What you’ll need:- A Google Cloud project with BigQuery enabled
- A service account with the correct IAM roles (detailed below)
- The service account’s JSON key file
Step 1: Create a service account
Open Google Cloud IAM
Go to console.cloud.google.com and navigate to IAM & Admin → Service Accounts.
Create a new service account
Click Create Service Account, give it a name (e.g.
interact-reader), and click Create and Continue.Assign the required roles
Add the following two roles:
Click Continue, then Done.
| Role | Purpose |
|---|---|
BigQuery Data Viewer | Allows reading table data |
BigQuery Job User | Allows running query jobs |
Step 2: Connect BigQuery in Interact
Enter your project ID
Type in your Google Cloud Project ID (visible in the Google Cloud Console header).
Paste your service account credentials
Open the JSON key file you downloaded, copy the full contents, and paste it into the Service account credentials field.
Select datasets to expose
Interact will connect to BigQuery and list all available datasets in your project. Select the datasets you want your agents to be able to query.
Set a query cost limit (optional but recommended)
Enter a maximum cost per query in USD. Interact will estimate each query’s cost before running it and block any query that would exceed this limit, protecting you from unexpected BigQuery charges.
Step 3: Attach the connector to an agent
Once the connector is saved, you can use it in any agent:- Open an agent (or create a new one)
- In the Subagents section, add or edit a Database Query Agent
- Select your BigQuery connector from the dropdown
Permissions reference
| IAM Role | Why it’s needed |
|---|---|
roles/bigquery.dataViewer | Read access to table data |
roles/bigquery.jobUser | Permission to create and run query jobs |
You do not need
bigquery.dataEditor, bigquery.admin, or any write-level permission. Interact is read-only.Troubleshooting
Connection verification fails
Connection verification fails
Double-check that:
- The Project ID is correct (no typos, no spaces)
- The service account has both
BigQuery Data ViewerandBigQuery Job Userroles - The JSON key file is complete and unmodified
Agent says it can't find a table
Agent says it can't find a table
The table’s dataset may not be whitelisted. Go to Settings → Connectors, edit the connector, and check that the relevant dataset (or table) is selected.
Query was blocked due to cost limit
Query was blocked due to cost limit
The query the agent generated exceeded your configured cost limit. You can either:
- Raise the cost limit in the connector settings
- Ask the agent to query a smaller date range or fewer columns
Permission denied error
Permission denied error
Ensure the service account has been granted roles at the project level, or alternatively at the specific dataset level for each dataset you want to expose.