Sempleo Docs

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

ToolDescription
search_drive_filesSearch files across your Google Drive
get_drive_file_contentRead 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:

ScopeWhy
drive.readonlyRead 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:

  1. Open the Google Drive integration details
  2. Enter the Folder ID of the folder to sync
  3. Click Save

Finding your folder ID: Open the folder in Google Drive. The URL looks like:

https://drive.google.com/drive/folders/1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2wtTs

The folder ID is the last segment: 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2wtTs

Folder Sync

Supported File Types

TypeExtensions
Google DocsExported as plain text
Google SheetsExported as CSV
PDF.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

IssueSolution
"Access denied"Ensure you authorized the correct Google account
Files not syncingVerify the folder ID is correct and contains supported file types
Content is emptyBinary files (images, videos) are not supported for text extraction
Token expiredSempleo auto-refreshes; if persistent, reconnect the integration

On this page