Google Drive
Connect Google Drive to sync documents and search files from your knowledge base.
Connect Google Drive to sync documents to your knowledge base and search files directly from agents.
What Agents Can Do
| Tool | Description |
|---|---|
search_drive_files | Search files across your Google Drive |
get_drive_file_content | Read the text content of a Drive file |
Additionally, folder sync imports Drive documents into your knowledge base automatically.
Prerequisites
- A Google account with Drive access
- Sempleo workspace on any plan
Setup Steps
1. Navigate to Integrations
Go to Settings → Integrations in your Sempleo dashboard.
2. Find Google Drive
Find Google Drive in the catalog and click Connect.
3. Authorize
You'll be redirected to Google's OAuth page. Sempleo requests:
| Scope | Why |
|---|---|
drive.readonly | Read file listings and content (no write access) |
Sempleo requests offline access to obtain a refresh token. This allows automatic token refresh without re-authorization.
4. Configure Folder Sync (Optional)
After connecting, you can set up automatic document sync:
- Open the Google Drive integration details
- Enter the Folder ID of the folder to sync
- Click Save
Finding your folder ID: Open the folder in Google Drive. The URL looks like:
The folder ID is the last segment: 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2wtTs
Folder Sync
Supported File Types
| Type | Extensions |
|---|---|
| Google Docs | Exported as plain text |
| Google Sheets | Exported as CSV |
.pdf | |
| Word | .docx |
| Text | .txt, .md |
Incremental Sync
Sempleo tracks the modifiedTime of each file. On subsequent syncs:
- New files are added to the knowledge base
- Modified files are re-ingested
- Unchanged files are skipped
Sync Frequency
Sync can be triggered manually or runs automatically as part of the scheduler heartbeat (typically every few hours).
Troubleshooting
| Issue | Solution |
|---|---|
| "Access denied" | Ensure you authorized the correct Google account |
| Files not syncing | Verify the folder ID is correct and contains supported file types |
| Content is empty | Binary files (images, videos) are not supported for text extraction |
| Token expired | Sempleo auto-refreshes; if persistent, reconnect the integration |