Skip to main content
Google Drive Logo
Google Drive actions

Cloud file storage and management

ReadyGoogle Workspace

Overview

The Google Drive action enables AI agents to manage files and folders in Google Drive.

Key Capabilities

  • List and search files across Drive
  • View file details and metadata
  • Create folders and organize content
  • Check file permissions and sharing settings
  • Access shared drives

Available Tools

Parameters marked ? are optional.

Setup

Step 1: Create Google Cloud Project

  1. Go to Google Cloud Console
  2. Create a new project or select an existing one
  3. Note your project ID

Step 2: Enable Google Drive API

  1. Navigate to APIs & Services > Library
  2. Search for “Google Drive API”
  3. Click “Enable”
Enable Drive API
  1. Navigate to APIs & Services > OAuth consent screen
  2. Configure the OAuth consent screen with your app information
  3. Add the required scopes (see Step 6)

Step 4: Get Redirect URI from PipesHub

  1. In PipesHub, go to Workspace settings → Actions
  2. Find Drive and click Set up
  3. Copy the Redirect URI shown in the dialog
Drive action setup drawer with the Redirect URI to copyDrive action setup drawer with the Redirect URI to copy

Step 5: Create OAuth Client ID

  1. Navigate to APIs & Services > Credentials
  2. Click “Create Credentials” > “OAuth client ID”
  3. Select “Web application”
  4. Set the Authorized redirect URI to the URI from PipesHub
  5. Click “Create”
  6. Copy your Client ID and Client Secret
The redirect URI must match exactly your PipesHub URL.

Step 6: Add Required Scopes

Add these OAuth scopes in the OAuth consent screen > Scopes section:Required Scopes:
  • https://www.googleapis.com/auth/drive - Full Drive access
  • https://www.googleapis.com/auth/drive.file - Access files created by the app
  • https://www.googleapis.com/auth/drive.metadata.readonly - Read file metadata

Step 7: Configure in PipesHub

  1. Return to the PipesHub Drive setup dialog
  2. Enter an OAuth app name (or pick a saved app), then your Client ID and Client Secret
  3. Click Create
Drive action setup drawer with the Client ID and Client Secret enteredDrive action setup drawer with the Client ID and Client Secret entered

Step 8: Authorize Access

  1. Open the Drive instance (in Actions or Your actions), click Authenticate, then Authenticate with OAuth. A popup opens to Google’s consent screen
  2. Sign in and grant permission for Drive access
  3. Click “Allow”
  4. You’ll be redirected back to PipesHub
  5. The action will show “Authenticated” status

FAQ

Example: Use Drive Connector to search and retrieve document content. Use Drive action to let agents create new documents or manage folders.

Usage Tips

How do I find files?
Ask your agent to “search Drive for [filename]” or “find my presentation about Q4 results”. The agent searches both file names and content.
How do I create folders?
Ask to “create a folder called Project Files” and specify the parent folder if needed. Folders help organize your Drive content.