All connectors

Google Drive

Google Drive Connector for AI Agents

Give agents tools for secure, real-time access to fetch, search, write, and sync across every system, with replication, entity mapping, and auth built-in.

20,000+
community members
6,000+
daily active companies
2PB+
synced/month
900+
contributors

About this Connector

Google Drive is a cloud-based file storage and synchronization service that allows users to store files, share content, and collaborate on documents. This connector provides access to files, shared drives, permissions, comments, replies, revisions, and change tracking.

CRM

Sales Analytics

Customer Data

cloud storage, file management, Google Workspace

Version Information

Package version

0.1.87

Connector version

0.2.2

SDK commit

44677ecbb4b815bb4fb2a54c6e5339681bcf36a8

Support Open Source

Check us out on Github and join the Airbyte community

Github

Installation & Usage

Get started with the Google Drive connector in minutes

1

Install Package

Using uv or pip

bash

Copy
uv pip install airbyte-agent-google-drive

2

Import

Initialize and use

python

Copy
from airbyte_agent_google_drive import GoogleDriveConnector
from airbyte_agent_google_drive.models import GoogleDriveAuthConfig

connector = GoogleDriveConnector(
    auth_config=GoogleDriveAuthConfig(
        access_token="<Your Google OAuth2 Access Token (optional, will be obtained via refresh)>",
        refresh_token="<Your Google OAuth2 Refresh Token>",
        client_id="<Your Google OAuth2 Client ID>",
        client_secret="<Your Google OAuth2 Client Secret>"
    )
)

3

Tool

Add tools to your agent

python

Copy
@agent.tool_plain # assumes you're using Pydantic AI
@GoogleDriveConnector.tool_utils
async def google_drive_execute(entity: str, action: str, params: dict | None = None):
    return await connector.execute(entity, action, params or {})

Supported Entities & Actions

Access all your Google Drive data through a unified API

Lorem ipsum

Lorem ipsum

| Entity | Actions |\n|--------|---------|\n| Files | [List](./REFERENCE.md#files-list), [Get](./REFERENCE.md#files-get), [Create](./REFERENCE.md#files-create), [Update](./REFERENCE.md#files-update), [Delete](./REFERENCE.md#files-delete), [Download](./REFERENCE.md#files-download) |\n| Files Upload | [Create](./REFERENCE.md#files-upload-create) |\n| Files Export | [Download](./REFERENCE.md#files-export-download) |\n| Drives | [List](./REFERENCE.md#drives-list), [Get](./REFERENCE.md#drives-get) |\n| Permissions | [List](./REFERENCE.md#permissions-list), [Get](./REFERENCE.md#permissions-get) |\n| Comments | [List](./REFERENCE.md#comments-list), [Get](./REFERENCE.md#comments-get) |\n| Replies | [List](./REFERENCE.md#replies-list), [Get](./REFERENCE.md#replies-get) |\n| Revisions | [List](./REFERENCE.md#revisions-list), [Get](./REFERENCE.md#revisions-get) |\n| Changes | [List](./REFERENCE.md#changes-list) |\n| Changes Start Page Token | [Get](./REFERENCE.md#changes-start-page-token-get) |\n| About | [Get](./REFERENCE.md#about-get) |

Example Prompts

The Google Drive connector is optimized to handle prompts like these

Lorem ipsum

List all files in my Google Drive - Show me details for a recent file - Download a recent file from my Drive - Export a recent Google Doc as PDF - Export a recent Google Sheet as CSV - Show me the content of a recent file - List all shared drives I have access to - Show me details for a shared drive I have access to - Show permissions for a recent file - List comments on a recent file - Show replies to a recent comment on a file - Show revision history for a recent file - Get my Drive storage quota and user info - List files in a folder I have access to - Create a new file in Google Drive - Upload a document to Drive - Delete a file from Drive - Move a file to a different folder - Show me files modified in the last week - What changes have been made since my last sync?

Why Airbyte for AI Agents?

Built for production AI workloads with enterprise-grade reliability

Agent-Native Design

Structured, LLM-friendly schemas optimized for AI agent consumption with natural language query support.

Secure Authentication

Built-in OAuth 2.0 handling with automatic token refresh. No hard-coded credentials.

Production Ready

Battle-tested connectors with comprehensive error handling, logging, and retry logic.

Open Source

Fully open source under the MIT license. Contribute, customize, and extend freely.

Works with your favorite frameworks

Use the Google Drive connector with any AI agent framework

🦜

LangChain

🦙

LlamaIndex

🤖

CrewAI

AutoGen

🧠

OpenAI Agents SDK

🔮

Claude Agents SDK

Frequently Asked Questions

Didn't find your answer? Please don't hesitate to reach out.

How do I authenticate with Google Drive?

The Google Drive connector supports Google OAuth2 authentication. In open source mode, you provide an access token, refresh token, client ID, and client secret directly. In hosted mode, credentials are stored securely in Airbyte Cloud and you authenticate using your Airbyte client credentials instead.

Can I use this connector with any AI agent framework?

The connector is compatible with any Python-based AI agent framework including LangChain, LlamaIndex, CrewAI, Pydantic AI, and custom implementations.

Does this connector support write operations?

Yes, the Google Drive connector supports several write operations including creating new files, uploading documents, updating file metadata, deleting files, and moving files to different folders. Note that updating file permissions and adding comments are not currently supported.

How is this different from the Airbyte data connector?

Agent connectors are specifically designed for AI agents and LLM applications. They provide natural language interfaces, optimized response formats, and seamless integration with agent frameworks, unlike traditional ETL-focused connectors.

Will there be a platform for agent connectors?

The hosted version with secure credential storage through Airbyte Cloud is already available. See the hosted usage section in the documentation for setup instructions.

20,000+
community members
6,000+
daily active companies
2PB+
synced/month
900+
contributors