Google Drive Connection

Connect Google Drive for seamless file sync

Google Drive Connection#

Connect your Google Drive to automatically sync documents and spreadsheets with your AI agent.


Why Connect Google Drive?#

BenefitDescription
Auto-syncChanges in Drive automatically update your AI
No re-uploadsEdit files in Drive, AI stays current
CollaborationTeam members can contribute to knowledge
OrganizationUse Drive's folder structure
SpreadsheetsSync Google Sheets for dynamic data

Connecting Your Account#

Step 1: Navigate to Connections#

  1. Go to your agent dashboard
  2. Click SettingsConnections
  3. Find Google Drive in the list

Step 2: Authorize Access#

  1. Click Connect
  2. Sign in with your Google account
  3. Review permissions requested
  4. Click Allow

Permissions Needed#

  • Read files you select
  • Access file metadata
  • View your Drive structure

We only access files you explicitly select - never your entire Drive.


Selecting Files#

After connecting:

  1. Go to SourcesGoogle Drive
  2. Browse your Drive folders
  3. Click checkboxes to select files
  4. Click Link Selected Files

Supported File Types#

TypeExtensionsNotes
DocumentsGoogle Docs, .docx, .pdfText extracted automatically
SpreadsheetsGoogle Sheets, .xlsxConfigure column mapping
PresentationsGoogle Slides, .pptxText from slides extracted
Text.txt, .md, .csvImported as-is

Syncing Behavior#

Automatic Sync#

  • Files check for updates every 4 hours
  • Modified files are re-processed automatically
  • Deleted files are removed from knowledge base

Manual Sync#

  1. Go to SourcesGoogle Drive
  2. Click Sync Now button
  3. Wait for processing to complete

Spreadsheet Configuration#

For Google Sheets and Excel files, configure:

Header Row#

Select which row contains column headers.

Sheet Selection#

Choose which sheets to include.

Column Mapping#

Map columns to data types:

  • Question columns
  • Answer columns
  • Category columns
  • Metadata columns

Chunk Format#

Choose how rows are processed:

  • Key-Value - Each row as Q&A pair
  • CSV - Preserve full structure
  • JSON - Structured data format

Managing Connection#

View Connected Files#

  1. Go to SourcesGoogle Drive
  2. See all linked files with status
  3. Click any file for details

Disconnect a File#

  1. Select the file(s)
  2. Click Unlink
  3. Confirm removal

Disconnect Entirely#

  1. Go to SettingsConnections
  2. Find Google Drive
  3. Click Disconnect
  4. Confirm (this removes all linked files)

Sharing & Permissions#

Personal Drive Files#

Your own files are accessible immediately.

Shared Drive Files#

  1. You must have "Viewer" access minimum
  2. AlonChat inherits your access level
  3. If your access changes, sync may fail

Organizational Drives#

Check with your IT admin - some organizations restrict API access.


Troubleshooting#

"Access denied" error#

  • Re-authorize the connection
  • Check file sharing permissions
  • Ensure file still exists

Files not syncing#

  • Click Sync Now to force update
  • Check last sync time
  • Verify file hasn't been moved/deleted

"Token expired" message#

  • Disconnect and reconnect Google Drive
  • Re-authorize with fresh login

Best Practices#

  1. Use dedicated folders - Organize AI knowledge in specific folders
  2. Name files clearly - Descriptive names help management
  3. Version control - Drive's history helps track changes
  4. Review regularly - Check sync status weekly
  5. Clean up - Unlink files no longer needed

Google Drive Connection | AlonChat Docs