Google Drive
Connect Google Drive to let agents search, read, create, and update files.
The Google Drive integration lets your AI agents work with your files. Agents can search for documents, read file contents, create new files, and update existing ones.
Connecting Google Drive
- Go to Settings > Integrations.
- Click Connect next to Google Drive.
- Sign in with your Google account and grant VectorChat access.
- You'll be redirected back to VectorChat once the connection is complete.
What Agents Can Do
Search Files
Search your Drive by file name, content, or type. You can filter results by:
- File type -- Documents, spreadsheets, presentations, folders, PDFs, or images.
- Folder -- Limit the search to a specific folder.
- Result count -- Return up to 100 results (default 10).
Read Files
Agents can read the content of files in your Drive. The integration handles different file types automatically:
| File Type | Export Format |
|---|---|
| Google Docs | Plain text (default), HTML |
| Google Sheets | CSV (default), Excel |
| Google Slides | Plain text |
| Other files | Downloaded as-is |
For large files, content is delivered in chunks (50 KB at a time) with a continuation token for reading the next chunk. Files are limited to 10 MB.
Create Files
Create new files in Google Drive by specifying a name, content, and optional MIME type and folder. By default, files are created as plain text in the root folder.
Update Files
Replace the content of an existing file by providing the file ID and new content.
List Folders
Browse the contents of any folder in your Drive. Supports pagination for folders with many items.
Write operations (creating and updating files) require confirmation before the agent executes them.
Disconnecting
Go to Settings > Integrations, find Google Drive, and click Disconnect. This removes your stored credentials and prevents agents from accessing your files.