Sync CSV files from Box into BigQuery automatically

Document/FileMarketingDirectory ServicesCloud PlatformNLUArtificial Intelligence

What it does

When a CSV file is uploaded to a specified Box folder, this automation downloads it and streams it to Google Cloud Storage. The data then loads into BigQuery so someone can query it right away without manual steps.

Who it's for

Data and analytics teams who need fresh CSV data in BigQuery as soon as files arrive in Box.

How teams use this

Load daily reports into BigQuery

A team uploads a CSV report to Box each morning, and this automation loads it into BigQuery by the time the day starts. Analysts see fresh data without waiting or downloading files by hand.

Ingest data from multiple Box folders

Set up separate automations for different Box folders so each CSV lands in its own BigQuery table. The flow stays the same and only the folder path and table name change per automation.

Filter files before loading to BigQuery

Add a condition to check the file name or size before uploading to Google Cloud Storage so only matching CSVs proceed. Only files that meet the condition move forward to BigQuery for ingestion.

How it works

  1. Detect a new file in Box. Monitor a specified Box folder for new uploads in real time so this automation runs as soon as a CSV arrives in that location.
  2. Download the file from Box. Retrieve the CSV file contents from Box using the file download capability so the data is ready to move to Google Cloud Storage.
  3. Stream the file to Cloud Storage. Upload the CSV to Google Cloud Storage using file streaming so it sits in a staging location before loading into BigQuery for analysis.
  4. Load data into BigQuery. Import the CSV data from Google Cloud Storage into a BigQuery table so analysts can query the latest information immediately.