Connect Google Workspace

Connect Google to enable Calendar, Gmail, Tasks, and more.
Prerequisites
- A Google account
- Access to Google Cloud Console (for creating OAuth credentials)
Step 1: Create a Google Cloud Project
- Go to console.cloud.google.com
- Click the project dropdown at the top and select New Project
- Enter a project name (e.g., "Orient Integration")
- Click Create
Step 2: Enable APIs
Important: Enable APIs First
You must enable each Google API before Orient can access it. Without enabling these APIs, you will get "API not enabled" or "unauthorized" errors even after successful OAuth authentication.
- Go to APIs and Services, then Library
- Search for and enable each of these APIs:
- Gmail API - Required for email access
- Google Calendar API - Required for calendar access
- Google Tasks API - Required for tasks access
- Google Sheets API (optional) - For spreadsheet access
- Google Slides API (optional) - For presentation access
- Google Drive API (optional) - For file access
tip
Click on each API and make sure you see "API enabled" with a green checkmark. If you see "Enable", click it to activate the API for your project.
Step 3: Configure OAuth Consent Screen
- Go to APIs and Services, then OAuth consent screen
- Choose External (or Internal if using Google Workspace)
- Fill in the required fields:
- App name: Orient
- User support email: your email
- Developer contact: your email
- Click Save and Continue
- On the Scopes screen, click Add or Remove Scopes and add:
https://www.googleapis.com/auth/gmail.readonlyhttps://www.googleapis.com/auth/gmail.sendhttps://www.googleapis.com/auth/calendarhttps://www.googleapis.com/auth/tasks
- Click Save and Continue through the remaining steps
Test Mode
If you chose "External", your app will be in test mode. You need to add your email as a test user under OAuth consent screen, then Test users.
Step 4: Create OAuth Credentials
- Go to APIs and Services, then Credentials
- Click Create Credentials, then OAuth client ID
- Choose Web application
- Set the name (e.g., "Orient Dashboard")
- Under Authorized redirect URIs, add:
http://localhost:8766/oauth/callback(for local development)- Your production callback URL if deploying
- Click Create
- Copy the Client ID and Client Secret
Step 5: Configure Orient
Add the credentials to Orient via the Dashboard Secrets panel or your .env file:
GOOGLE_OAUTH_CLIENT_ID=your-client-id.apps.googleusercontent.com
GOOGLE_OAUTH_CLIENT_SECRET=your-client-secret
Step 6: Connect Your Account
- Go to the Dashboard, then the Integrations tab
- Find Google in the catalog
- Click Connect
- A popup will open for Google OAuth
- Sign in with your Google account and grant permissions
Once connected, Orient can access your Calendar, Gmail, and Tasks!
Features Available with Google
- Calendar: View upcoming events, create meetings
- Gmail: Read emails, send messages
- Tasks: View and manage your task lists
Troubleshooting
| Problem | Solution |
|---|---|
| "API not enabled" or "unauthorized" | Go to Google Cloud Console → APIs & Services → Library, and enable each API (Calendar, Gmail, Tasks, etc.) |
| Calendar/Gmail not working after OAuth | Verify the specific API is enabled in Google Cloud Console. OAuth success doesn't mean APIs are enabled. |
| OAuth popup blocked | Allow popups for localhost in your browser |
| "Access denied" | Add your email as a test user in OAuth consent screen |
| Redirect URI mismatch | Ensure http://localhost:8766/oauth/callback is in authorized URIs |
| "App not verified" warning | Click "Advanced", then "Go to Orient (unsafe)" during testing |
| Token refresh fails | Disconnect and reconnect your Google account in Dashboard → Integrations |
Next Steps
- Learn about chatting with the AI
- Set up scheduled messages
- Configure webhooks for notifications