Back to Documentation
Data Sources10 min read
Connecting Google Drive
Learn how to connect Google Drive to Craveva AI for document analysis and AI agent creation.
Connecting Google Drive
Overview
Connect Google Sheets, Google Docs, and other Google Drive files to Craveva AI. Once connected, your AI agents can read and analyze content from your Google Drive files.
Prerequisites
- Google account with access to the files you want to connect
- Google Drive files or folders you want to connect
- OAuth setup (for OAuth connection method)
Step-by-Step Instructions
Method 1: OAuth Connection (Recommended)
- Go to Data Sources from the main navigation
- Click Connect New Data Source
- Select Google Drive from the available options
- Click Connect with Google
- Sign in to your Google account
- Grant permissions to access your Google Drive
- Select the files or folders you want to connect
- Click Connect
Method 2: Public Link Connection
- Go to Data Sources from the main navigation
- Click Connect New Data Source
- Select Google Drive from the available options
- Select Connect via Public Link
- Enter the public sharing link to your Google file
- Click Connect
Supported File Types
- Google Sheets (.gsheet)
- Google Docs (.gdoc)
- Google Slides (.gslides)
- PDF files (uploaded to Google Drive)
- CSV files (uploaded to Google Drive)
- Excel files (uploaded to Google Drive)
Connecting Specific Files
Google Sheets
- Open your Google Sheet
- Click Share → Get link
- Set sharing to "Anyone with the link can view"
- Copy the link
- Use the public link method to connect
Google Docs
- Open your Google Doc
- Click Share → Get link
- Set sharing to "Anyone with the link can view"
- Copy the link
- Use the public link method to connect
Troubleshooting
OAuth Connection Failed
- Ensure you're signed in to the correct Google account
- Check that you granted all necessary permissions
- Try disconnecting and reconnecting
Public Link Not Working
- Verify the file sharing settings allow "Anyone with the link can view"
- Check that the link is correct and not expired
- Ensure the file hasn't been deleted or moved
File Not Accessible
- Verify you have view permissions for the file
- Check that the file hasn't been moved or deleted
- For OAuth, ensure you're connected with the correct Google account
Processing Errors
- Large files may take time to process
- Check the file format is supported
- Verify the file isn't corrupted
Best Practices
- Use OAuth connection for multiple files or folders
- Use public links for one-time file connections
- Organize files in folders for easier management
- Keep file sharing permissions minimal (view-only when possible)
Next Steps
- Go to Agent Builder to create an AI agent using Google Drive files
- Configure your agent to analyze specific sheets or documents
- Set up automated workflows based on file updates
Related Guides
Connecting MongoDB Database
Complete guide to connect your MongoDB database, analyze collections, and create data analysis agent...
Using AI Assistant for Data Mapping
Leverage AI to automatically map database entities and relationships for your agents....
Connecting Database
Learn how to connect PostgreSQL, MySQL, MongoDB, and other databases to Craveva AI for data analysis...