Google BigQuery
Connect Contracts.ai to Google BigQuery, select the data and columns to export, configure a schedule, and run or troubleshoot data syncs.
The Google BigQuery integration exports Contracts.ai data into a BigQuery dataset for reporting, analytics, and downstream data workflows. Configuration is organization-wide and includes the Google account, destination project and dataset, exported data, columns, and sync frequency.
You must have permission to manage organization integrations in Contracts.ai and sufficient access to the destination Google Cloud project.
Before you begin
Prepare a dedicated Google Workspace integration account. In the destination Google Cloud project, grant that account:
- BigQuery Job User so it can run BigQuery jobs.
- BigQuery Data Editor so it can create or update exported tables in the selected dataset.
Also confirm that:
- The Google Cloud project is active.
- The destination BigQuery dataset exists.
- The account can access both the project and dataset.
- The dataset is in the required BigQuery location, such as
USorEU. - Your browser allows the Google sign-in flow to return to Contracts.ai.
Use a dedicated integration account instead of an individual employee’s account when possible. This reduces interruptions caused by role changes, account deactivation, or revoked access.
Open the BigQuery integration
- Open Admin.
- Go to the integrations or connections section.
- Select Google BigQuery.
The page shows the connected Google account, destination, export schedule, data selection, column selection, and last successful sync.
Connect a Google account
- In Google BigQuery destination, click Connect Google account.
- Sign in with the dedicated integration account.
- Review and approve the requested Google permissions.
- Return to Contracts.ai after authorization completes.
The connected account’s email address appears in the destination section. Contracts.ai stores the organization’s connection securely and uses it for manual and scheduled exports.
To use a different account, click Disconnect, then connect the replacement account. Disconnecting prevents new exports until another account is connected and verified.
Choose the destination
After connecting Google:
- Select the GCP project.
- Select the destination Dataset.
- Confirm the displayed dataset location.
- Click Save and test connection.
A successful test displays Connection verified. If the test fails, the page displays the error returned by BigQuery.
The connection must be verified before Sync now becomes available.
Select data to export
Under Datasets to export, select at least one data group. Use All or None to update the full selection quickly.
Available data groups include:
- Contracts: Titles, dates, parties, status, contract type, tags, and other contract fields.
- Counterparties: Counterparty records, corporate profile data, and linked contract counts.
- Obligations: Obligation types, criticality, due dates, and completion status.
- Risks: AI-identified contract risks and impact or likelihood scores.
- Custom Attributes: Custom field values across contracts. New custom fields become available for subsequent syncs.
- Departments: Organization department records.
- Contract Relationships: Links such as amendments, parent-child relationships, and master agreements.
- Users: Organization users and their roles.
- RFP & Bid Pipeline: RFPs, bids, win rates, pipeline values, and RFP-to-bid-to-contract relationships.
The exact records available depend on your organization’s Contracts.ai data.
Select columns
After choosing data groups, use Columns to export to control the fields included in each BigQuery table.
- Expand or review each table shown under Columns to export.
- Select the columns required for your reports and downstream workflows.
- Use All or None within a table to update its entire column selection.
Every selected table must contain at least one selected column. Save configuration and Sync now remain unavailable if a selected table has no columns.
When Contracts.ai adds an eligible column, it becomes available for selection. Existing destination tables can be extended with newly exported columns during a later sync.
Configure the export frequency
Choose an Export frequency:
- Once: Runs only when an administrator clicks Sync now.
- Hourly: Runs automatically every hour.
- Daily: Runs automatically once per day.
- Weekly: Runs automatically once per week.
- Monthly: Runs automatically once per month.
Recurring exports begin after you save the configuration. Use Once if you want complete manual control.
Save and run the first sync
- Confirm that the connection is verified.
- Select at least one data group.
- Select at least one column for every exported table.
- Choose the export frequency.
- Click Save configuration.
- Click Sync now to start an immediate export.
The export is queued and continues in the background. Large organizations or broad exports can take longer to finish. You do not need to keep the integration page open.
After a successful run, the page displays the last-sync time. When row counts are available, they are shown by destination table.
Understand the exported data
Contracts.ai writes the selected data into tables in the configured BigQuery dataset. Table names correspond to the selected data groups and their underlying export tables.
On subsequent exports:
- Selected source data is refreshed in the destination tables.
- Newly selected columns may be added to existing table schemas.
- Custom attribute changes become available on a later sync.
- Data groups or columns excluded from the configuration are not exported.
Use BigQuery permissions, authorized views, or downstream BI-tool controls to restrict access to exported data after it leaves Contracts.ai.
Change the configuration
You can update the destination, exported data, columns, or schedule at any time.
- Make the changes on the Google BigQuery integration page.
- If you change the project or dataset, run Save and test connection again.
- Click Save configuration.
- Optionally click Sync now to apply the new selection immediately.
Changing the Contracts.ai configuration does not automatically delete tables or data already stored in BigQuery. Manage obsolete destination data directly in Google Cloud if necessary.
Troubleshooting
The project or dataset is not listed
- Confirm that the connected Google account has access to the project.
- Confirm that the dataset exists and the account can view it.
- Reconnect the Google account if its permissions changed after authorization.
- Ask a Google Cloud administrator to verify the account’s IAM roles.
Connection testing fails
- Verify the selected project and dataset.
- Grant the connected account BigQuery Job User and BigQuery Data Editor.
- Confirm that the dataset location is valid and accessible.
- Review the connection error shown in Contracts.ai for the specific Google response.
Sync now is disabled
Confirm that:
- A Google account is connected.
- A project and dataset are selected.
- The connection test succeeded.
- At least one data group is selected.
- Every selected table has at least one column.
- No configuration save, connection test, or sync is currently running.
A sync is taking longer than expected
Exports run in the background and duration varies with the number of tables, columns, and records. Check the Last synced value later. If it does not update, test the connection and retry the sync.
Expected data or columns are missing
- Confirm that the relevant data group and columns are selected.
- Save the configuration after making changes.
- Run Sync now or wait for the next scheduled export.
- Confirm that the source records exist and are visible to the organization in Contracts.ai.
The integration stopped after an account change
The connected account may have been disabled, its consent revoked, or its IAM roles removed. Disconnect it, connect an active integration account, select the destination, and run Save and test connection again.
Security recommendations
- Use a dedicated integration account with only the required Google Cloud roles.
- Restrict access to the destination dataset using Google Cloud IAM.
- Export only the data groups and columns required for the intended analytics use case.
- Review access whenever administrators, integration accounts, or reporting tools change.
- Treat exported contract, user, counterparty, risk, and obligation data according to your organization’s security and retention policies.
Did this answer your question?