Skip to main content

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

  1. Go to Google Cloud Console
  2. Create a new project
  3. Enable required APIs:
    • Gmail API
    • Google Calendar API
    • Google Drive API
  1. Go to “OAuth consent screen”
  2. Choose “External” user type
  3. Fill in application details
  4. Add scopes (see below)

3. Create OAuth Credentials

  1. Go to “Credentials”
  2. Click “Create Credentials” > “OAuth client ID”
  3. Application type: “Web application”
  4. Add authorized redirect URIs:
  5. 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:
  1. User: “Connect my Google Calendar”
  2. Praxos: Provides authorization URL
  3. User clicks URL and grants permissions
  4. Tokens stored securely for user
  5. Praxos: “Successfully connected to Google Calendar”

Features

Gmail

Send Emails
Read Emails
Search Emails

Google Calendar

Schedule Events
Check Schedule
Find Available Slots

Google Drive

Search Files
Upload Files
Share Files

Configuration

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
Solutions:
  • 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

Next Steps

Microsoft 365

Calendar Tools

Email Tools

File Management