See llms.txt for all machine-readable content.

Google Drive and One AI integration

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

How to connect Google Drive and One AI

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 Drive and One AI integration: Create a new workflow and add the first step

Nightly n8n backup to Google Drive

Description This template creates a nightly backup of all n8n workflows and saves them to a Google Drive folder. Each night, the previous night's backups are moved to an “n8n_old” folder and renamed with the corresponding date. Backups older than a specified age are automatically deleted using a precise code-based verification. This ensures your cloud storage remains organized without manual intervention. What's New in v5 (Optimized) Lightning-Fast Search: Optimized Google Drive nodes with specific queries (name contains 'n8n_') and limits. This prevents the workflow from scanning your entire Drive, reducing execution time from minutes to seconds. Dynamic ID Mapping: Updated the Code node to map folder IDs on the fly. The workflow now "remembers" IDs for n8n_backups and n8n_old, allowing for seamless transitions even if folders are newly created. Modernized Loops: Fully migrated from legacy "Split In Batches" to the modern "Loop Over Items" architecture for better stability and readability. Smart Purge Logic: Uses a Javascript-based Code node (you can delete) to extract timestamps from filenames and strictly delete files older than 30 days. Auto-Healing Infrastructure: Intelligent check-and-create logic. If the system detects a missing folder, it creates it and immediately passes the new ID to the rest of the flow. Prerequisites Google Drive Account: OAuth2 credentials required. Console Cloud Setup n8n Version: Recommended v1.70.1 or higher (Required for modern Loop nodes). n8n API Key: Required for the "Get many workflows" node to fetch your local data. API Key Guide Permissions: Ensure the Google Drive API is enabled in your Google Cloud Project. Configuration Credentials: Update all Google Drive nodes with your OAuth2 credentials and the "Get many workflows" node with your n8n API Key. Folder Detection: The "GET CURRENT FOLDER" node is pre-configured to find folders starting with n8n_. Do not rename the base folders unless you update the search query. Dynamic Paths: The node "MOVE INTO OLD FOLDER" now uses a smart fallback expression: {{ $node["Code"].json.ids.n8n_old || $node["Create n8n_old"].json.id }} This ensures it always finds the correct destination. Automated Purge Settings: Retention Policy: Open the "you can delete" Code node. You can modify const THIRTY_DAYS_IN_MS to change your retention period. Activation: Enable the "PURGE DAYS" Schedule Trigger (set to 30 days by default) to start the cleanup cycle. Last updated March 2026 (v5.2 Optimized)

Build your own Google Drive and One AI integration

Create custom Google Drive and One AI 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 Drive supported actions

Supported methods for One AI

Delete
Get
Head
Options
Patch
Post
Put

To set up One AI integration, add the HTTP Request node to your workflow canvas and authenticate it using a generic authentication method. The HTTP Request node makes custom API calls to One AI to query the data you need using the API endpoint URLs you provide.

See the example here

Requires additional credentials set up

Use n8n's HTTP Request node with a predefined or generic credential type to make custom API calls.

Google Drive and One AI integration details

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.

One AI

One AI

One AI is an API designed primarily for developers, allowing them to integrate it into their projects to analyze, process, and manipulate text using language AI capabilities. Improve the functionality of your project with One AI's advanced text processing features.

Other integrations with Google Drive and One AI

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 Drive integrations

Need help setting up your Google Drive and One AI integration?

Discover our latest community's recommendations and join the discussions about Google Drive and One AI 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 Drive with One AI

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