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 read-only access to files, shared drives, permissions, comments, replies, revisions, and change tracking for data analysis and integration workflows.

CRM

Sales Analytics

Customer Data

cloud storage, file management, document collaboration

Version Information

Package version

0.1.41

Connector version

0.1.2

SDK commit

5b20f488dec0e8f29410823753106603c23a4b65

Support Open Source

Star us on GitHub to help grow 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), [Download](./REFERENCE.md#files-download) |\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 files modified in the last week - Get details for file abc123 - Download file abc123 from my Drive - Export Google Doc abc123 as PDF - Export Google Sheet xyz789 as CSV - Get the content of file abc123 - List all shared drives I have access to - Get shared drive xyz789 - Show permissions for file abc123 - List comments on file abc123 - Get all replies to comment def456 on file abc123 - Show revision history for file abc123 - What changes have been made since my last sync? - Get my Drive storage quota and user info - List files in a specific folder

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. You need to provide a refresh token, client ID, and client secret. Optionally, you can provide an access token (otherwise it will be obtained via the refresh token).

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?

No, the Google Drive connector currently focuses on read-only operations. Write operations like creating files, uploading documents, deleting files, updating permissions, adding comments, or moving files 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