See llms.txt for all machine-readable content.

Google BigQuery and Google Drive integration

Save yourself the work of writing custom integrations for Google BigQuery and Google Drive and use n8n instead. Build adaptable and scalable Data & Storage, Development, workflows that work with your technology stack. All within a building experience you will love.

How to connect Google BigQuery and Google Drive

Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

Google BigQuery and Google Drive integration: Create a new workflow and add the first step

Generate monthly BigQuery KPI PDF reports with Claude, Google Docs, Outlook and Teams

Quick overview This workflow runs monthly to query KPI data from Google BigQuery, generates a narrative with Anthropic Claude, fills a Google Docs report template, exports it as a PDF, archives it to OneDrive, emails it via Microsoft Outlook, and posts a summary to Microsoft Teams. How it works A schedule trigger fires on the 1st of every month at 07:00 and calculates the start and end dates of the previous full calendar month. Four parallel BigQuery queries fetch revenue KPIs, top product categories, weekly sales trend, and top customers for that period. Each result set is tagged with a source label before merging. All tagged rows are combined and aggregated into a single structured report payload containing KPI summaries, ranked tables, and company metadata. The payload is split across two concurrent branches: one sends it to a Claude Sonnet LLM chain to generate an executive narrative with five sections (summary, revenue analysis, category insights, customer insights, and recommendation), and the other creates a named copy of a Google Docs template in your reports folder. Once both branches complete, the narrative is merged into the report payload and the replacement requests for all template placeholders are constructed. The Google Docs node applies all replacements in a single batchUpdate call, then the file is exported as a PDF via Google Drive. The finished PDF is archived to OneDrive, emailed via Outlook with the report attached, and a formatted KPI summary card is posted to a Microsoft Teams channel. Setup Set the following n8n environment variables before activating: GCP_PROJECT_ID, BQ_DATASET, GDOCS_TEMPLATE_FILE_ID, GDRIVE_REPORTS_FOLDER_ID, ONEDRIVE_REPORTS_FOLDER_ID, REPORT_RECIPIENTS, TEAMS_TEAM_ID, and TEAMS_CHANNEL_ID. Connect a Google BigQuery credential and update the four SQL queries to match your dataset, table name, and column names. Connect an Anthropic API credential to the Claude Chat Model sub-node, then manually wire its output to the ai_languageModel input (bottom connector) of the Create AI Narrative with Claude node on the canvas. Connect Google Drive and Google Docs OAuth2 credentials. In Google Drive, create a master report template Doc containing the placeholder strings listed in the Customization section, note its file ID from the URL, and set GDOCS_TEMPLATE_FILE_ID accordingly. Connect Microsoft OneDrive, Outlook, and Teams OAuth2 credentials. Retrieve your Teams team ID and channel ID using the Microsoft Graph Explorer and set the corresponding environment variables. Requirements Google Cloud project with BigQuery enabled and an orders table matching the SQL schema in the workflow Google Workspace account (Drive and Docs OAuth2 access) Anthropic API key Microsoft 365 account with OneDrive, Outlook, and Teams access Customization To change the reporting cadence, update the cron expression in the schedule trigger: 0 7 * * 1 for weekly or 0 7 * * * for daily. To adapt the SQL queries to your schema, replace orders, order_total, customer_id, is_new_customer, created_at, and product_category with your actual column names. To change the AI model, update the model field in the Claude Chat Model sub-node. To add more KPI sections, extend the SQL queries, the aggregation code in Consolidate BigQuery Data, and the replacements array in Construct Replacement Requests.

Popular ways to use the Google BigQuery and Google Drive integration

Build your own Google BigQuery and Google Drive integration

Create custom Google BigQuery and Google Drive workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

Google BigQuery supported actions

Google Drive supported actions

Google BigQuery and Google Drive integration details

Google BigQuery

Google BigQuery

Many businesses use the Google Cloud service BigQuery for data reporting. BigQuery is categorized as an Advanced Data Connector. The amount of data that needs to be processed could be quite large (up to 10,000 columns and tens of millions of rows).

Google Drive

Google Drive

Google Drive is a storage and synchronization service offered by Google. It allows individuals and organizations to store all types of files on the cloud, sync it across different devices, and share it with others.

Save engineering resources

Reduce time spent on customer integrations, engineer faster POCs, keep your customer-specific functionality separate from product all without having to code.

Learn more

FAQ about Google BigQuery integrations

Need help setting up your Google BigQuery and Google Drive integration?

Discover our latest community's recommendations and join the discussions about Google BigQuery and Google Drive integration.

  • Karim Lameer

    Download a file from google drive and use in a http request

    Karim Lameer

    Describe the problem/error/question I am trying to download a file from Google Drive and upload it into a http request. I have created credentials and the node works well. The problem is that I cannot access the actual f…

    Open topic
  • Hameez Yaser

    Google drive set up

    Hameez Yaser

    Hi does anyone know How I can fix this? I hav e done everything in the set up docs yet it still wont work. Thanks.

    Open topic
  • hubschrauber

    Google Drive Search File/Folder Returns Folder Id, not Contents

    hubschrauber

    Goal Trying to use the Google Drive node to get the list of files / sub-folders in a specified folder. Workflow Setup Based on this I set up the Google Drive node with: Resource: File/Folder , Operation: Search , Sear…

    Open topic
  • Jon

    Connecting to Google on localhost

    Jon

    I am stuck on creating a Google Drive connection to my google account. I’ve been following guide in this Youtube video: https://www.youtube.com/watch?v=gZ6N2H3_vys&ab_channel=n8n I made sure the Google Drive API was en…

    Open topic
  • roundedhexagon

    Google drive node - Search folder: exact search results only

    roundedhexagon

    Hi guys! Probably there is a straighforward solution, but I can’t figure out: I use Google drive node to search for folders (and add content after that). The problem is if I search for “Bringa 23” and it shows “Bringa 23…

    Open topic

Looking to integrate Slack and VirusTotal in your company?

Trusted by teams building smarter workflows.

Why

Why use n8n to integrate Google BigQuery with Google Drive

Handle branching, merging and iteration easily. Pause your workflow to wait for external events.

Re-run single steps to test changes in no time. And pin your data to avoid generating trigger events every time you execute.

Your data is displayed alongside your settings, making edge cases easy to track down.

Use 1000+ workflow templates available from our core team and our community.

Copy and paste, easily import and export workflows.

Simple enough to 
understand + sophisticated 
enough to ship