Grok Business / Enterprise
Google Drive Integration with Grok
Overview: Connect Google Drive to Grok
Seamlessly search and reference your Google Drive files directly in Grok chats. This integration lets Grok access your team’s shared files and your personal files to provide more accurate, grounded responses—reducing hallucinations and helping you work faster.
Powered by xAI’s Collections API, the connector indexes files securely while respecting Google Drive permissions. Grok only retrieves content you can view. Files you don’t have permission to view are never indexed or returned.
Key benefits :
- Get summaries, analyses, or answers with direct citations to your files.
- No need to manually upload or attach files. Grok searches automatically when relevant.
- Query files by content or metadata (filename, folder, owner, modification dates).
This feature is available in Grok Business and Enterprise plans. xAI doesn’t use customer Google Drive data to train its models.
Using Google Drive Files in Grok Chats
Once connected, Grok automatically searches relevant files—no extra steps needed.
Examples of what to ask :
- “Summarize the Q4 sales report from the Finance team documents.”
- “What does our employee handbook say about remote work policies according to our company documents?”
- “Summarize my Go-to-market strategy document.”
Grok will:
- Search content and metadata.
- Provide answers with inline citations linking back to the source file.
- Reason over multiple files when needed.
Setting Up the Integration
Setup combines admin configuration for team shared files and optional user connections for personal files.
Admin Setup: Enable for Shared Files
Team admins configure the connector once at the workspace level.
Prerequisites :
- You must be a Grok Business or Enterprise team admin.
- You must have purchased Grok Business or Enterprise licenses for your team.
Steps :
- Log in to the xAI Console and go to Grok Business Apps
- Click Add to team for the Google Drive app.
- Specify your Google Workspace domain.
- Choose who can use the connector: everyone in the workspace or specific allowed users.
- Sign in with your Google account and grant permissions. The OAuth authentication provides a secure way to allow access without sharing passwords.
Once connected, Grok immediately begins syncing files accessible to the admin’s account. Shared files become available to authorized users right away.
Admins can later edit allowed users or remove the connector entirely from the same settings page.
User Setup: Connect Your Personal Drive
End users can optionally connect their own Google Drive for searching their private files.
Steps :
- On grok.com, go to Settings> Connected apps.
- Select Google Drive > Connect.
- Sign in with your Google account and grant permissions.
- Your private files will sync and become searchable in your Grok chats.
To disconnect: Return to Settings> Connected apps and revoke access.
Managing Your Integration
- Admins can view sync status and the list of users who have authenticated with Google Drive from Apps Settings page.
- Admins or members can disconnect anytime to stop syncing their files.
How Indexing and Syncing Works
- Initial sync starts immediately after admin setup.
- Ongoing: Grok checks for changes (new/updated/deleted files, permission changes) every hour.
- Permissions are always enforced. Grok only shows you files you can view in Google Drive.
- No inclusion/exclusion rules beyond the admin’s initial access scope and user permissions.
Supported file formats :
Grok indexes a wide range of common file types from Google Drive, including native Google formats, Microsoft Office documents, PDFs, code files, and more.
| Category | File Formats |
|---|---|
| Documents & Presentations | Google Docs, Sheets, and Slides, Microsoft Word (.doc, .docx), Microsoft Excel (.xls, .xlsx, including macro-enabled workbooks), Microsoft PowerPoint (.ppt, .pptx, including macro-enabled presentations and slideshows), Microsoft Outlook (.msg, .pst), PDFs, OpenDocument Text (.odt), Rich Text Format (.rtf), EPUB e-books |
| Data & Structured Files | CSV (comma-separated values), JSON, XML |
| Web & Markup | HTML, CSS, Markdown (.md) |
| Code Files | Python, JavaScript, TypeScript, C/C++ header and source files, SQL, YAML, TOML, Shell scripts, Ruby, Scala, Swift, Kotlin, Lua, PHP, Perl |
| Notebooks | Jupyter Notebooks (.ipynb), Google Colab notebooks |
| Email & Other | Email messages (.eml, RFC822 format), Plain text (.txt), TeXmacs |
Limitations
- For files exceeding 128MB, Grok only indexes the first 128 MB of content.
- Sync checks hourly. Some recent changes may take up to an hour to appear.
- Only supported file types are indexed and are searchable (see list above)
Frequently Asked Questions
1. Why aren’t my files appearing?
Wait up to an hour for sync, or check permissions in Google Drive.
2. Do I need to connect my personal Drive?
No, shared files work via admin setup. Connect personal for your private files only.
3. Can Grok edit files?
No, read-only access for search and reference.
4. How do I see which files were used?
Grok includes citations in responses.
For troubleshooting or white-glove onboarding, please contact xAI support via support@x.ai.