Installation & Usage
[01]
Install Package
Using uv or pip
BASH
uv pip install airbyte-agent-google-drive
[02]
Import
Initialize and use
PYTHON
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>"
)
)[03]
Tool
Add tools to your agent
python
@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
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
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
Secure Authentication
Built-in OAuth 2.0 handling with automatic token refresh. No hard-coded credentials.
Agent-Native Design
Heading
Structured, LLM-friendly schemas optimized for AI agent consumption with natural language query support.
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
LangChain
CrewAI
LlamaIndex
AutoGen
OpenAI Agents SDK
Claude Agents SDK
Frequently Asked Questions
Didn't find your answer? Please don't hesitate to reach out.
The Google Drive connector supports Google OAuth2 authentication. You provide an access token (optional, obtained via refresh), a refresh token, a client ID, and a client secret. 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 write operations. It can create, update, delete, and upload files. However, updating file permissions and adding comments to 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.
Get started in minutes with our open-source connector.