Google Drive
What it is
Section titled “What it is”Google Drive integration lets you import documents directly from Google Drive into Foundry’s discovery pipeline. Connect your Google account via OAuth, browse files with the Google Picker, and import them for AI analysis — all without manual download and re-upload.
Why it matters
Section titled “Why it matters”Project documents often live in Google Drive. Direct import eliminates the friction of downloading files locally and re-uploading them, and it preserves the connection to the source for re-import.
Key concepts
Section titled “Key concepts”- Google Drive import button:
GoogleDriveImportButtontriggers the import flow from the Discovery page - Google Picker hook:
useGooglePickerlaunches the native Google file picker for file selection - Drive import queue:
useDriveImportQueuemanages the import pipeline with progress tracking - Duplicate detection:
DuplicateImportDialogwarns when an imported file matches a previously imported document - Google Drive connection settings:
GoogleDriveConnectionSettings(in Settings) manages OAuth connection and disconnection - Connect/disconnect buttons:
ConnectGoogleDriveButtonandDisconnectGoogleDriveDialoghandle OAuth lifecycle - Connection list:
GoogleDriveConnectionListshows all connected Google accounts
How to use it
Section titled “How to use it”- Navigate to [Program] > Settings and connect your Google account under the Google Drive section.
- Go to [Program] > Discovery > Documents.
- Click Import from Google Drive.
- Select files from the Google Picker.
- If duplicates are detected, choose whether to replace or skip.
- Files are imported and queued for AI analysis automatically.
- To disconnect, use the disconnect option in Settings.
Data model
Section titled “Data model”This feature uses the following tables:
documents— Imported files stored with source metadatadocumentAnalyses— AI analysis records for imported documents