Overview
Google Suite integration provides access to Google’s productivity tools including Calendar, Gmail, Drive, and other services.Supported Services
- Gmail - Send, read, and manage emails
- Google Calendar - Schedule events, check availability
- Google Drive - Access and manage files
- Google Search - Web search capabilities
- Google Lens - Visual search and recognition
Setup
1. Create Google Cloud Project
- Go to Google Cloud Console
- Create a new project
- Enable required APIs:
- Gmail API
- Google Calendar API
- Google Drive API
2. Configure OAuth Consent Screen
- Go to “OAuth consent screen”
- Choose “External” user type
- Fill in application details
- Add scopes (see below)
3. Create OAuth Credentials
- Go to “Credentials”
- Click “Create Credentials” > “OAuth client ID”
- Application type: “Web application”
- Add authorized redirect URIs:
- Download credentials JSON
4. Configure Praxos
Add to.env:
OAuth Scopes
Required scopes:Gmail
Calendar
Drive
User Authorization
Users must authorize Praxos to access their Google account:- User: “Connect my Google Calendar”
- Praxos: Provides authorization URL
- User clicks URL and grants permissions
- Tokens stored securely for user
- Praxos: “Successfully connected to Google Calendar”
Features
Gmail
Send EmailsGoogle Calendar
Schedule EventsGoogle Drive
Search FilesConfiguration
Environment Variables
Token Management
- Tokens stored per user in database
- Automatic refresh when expired
- Secure encryption at rest
- Revocable by user
Troubleshooting
Authorization Fails
- Check redirect URI matches exactly
- Verify all required scopes are requested
- Ensure OAuth consent screen is published
API Quota Exceeded
Google APIs have quotas:- Calendar: 1M requests/day
- Gmail: 1B quota units/day
- Drive: 20K requests/100 seconds
- Implement caching
- Batch operations
- Request quota increase
Token Refresh Issues
- Verify refresh token is valid
- Check token hasn’t been revoked
- Ensure OAuth client hasn’t changed
Security Best Practices
- Use HTTPS for redirect URIs
- Store tokens encrypted
- Implement token rotation
- Monitor suspicious activity
- Provide token revocation
Rate Limiting
Praxos implements:- Exponential backoff
- Request queuing
- Per-user rate limiting
- Quota monitoring