What is Google Suite?
Google Suite (now called Google Workspace) includes Gmail, Google Calendar, Google Drive, Sheets, Docs, and more. You can integrate these into your app. Perfect for:- Sending emails via Gmail
- Managing calendar appointments
- Storing files in Google Drive
- Reading/writing Google Sheets
- Accessing Google Docs
What You’ll Need
Step 1: Set Up Google Cloud Project
Create Project
- Go to console.cloud.google.com
- Click New Project (top right)
- Name it (like “My App”)
- Click Create
- Wait for project to be created
- Make sure you’re in the new project (check top navbar)
Enable APIs
Depending on what you need: For Gmail:- Search for “Gmail API” in search bar
- Click on it
- Click Enable
- Search for “Google Calendar API”
- Click Enable
- Search for “Google Drive API”
- Click Enable
- Search for “Google Sheets API”
- Click Enable
Create OAuth Credentials
- Go to APIs & Services → Credentials
- Click Create Credentials → OAuth client ID
- If prompted, Configure Consent Screen:
- Choose External
- App name: Your app name
- User support email: Your email
- Developer email: Your email
- Click Save and Continue
- Click Save and Continue through scopes
- Click Back to Dashboard
- Now create OAuth client:
- Click Create Credentials → OAuth client ID
- Application type: Web application
- Name: “My App”
- Authorized redirect URIs:
[emergent-preview-link]/auth/callback(Ask the agent which URI value to input) - Click Create
- Copy these credentials:
- Client ID
- Client Secret
Step 2: Tell the Agent What You Want
Describe which Google services you need:Example 1: Gmail Integration
Example 2: Google Calendar
Example 3: Google Drive
Example 4: Google Sheets as Database
Step 3: Test the Integration
After setup:Test Feature
Try the feature:
- Send a test email
- Create a calendar event
- Upload a file
- Read from sheet
Common Questions
Do I need a paid Google Workspace account?
Do I need a paid Google Workspace account?
No! A free personal Google account works fine.Google Workspace (paid) only needed if:
- You want to send from company domain (you@company.com)
- Need admin features
- Managing organization accounts
What are the API limits?
What are the API limits?
Gmail: 1 billion quota units per day (lots!)Calendar: 1 million queries per dayDrive: 1 billion queries per daySheets: 300 read requests per minuteMore than enough for most apps!
Is it free?
Is it free?
Yes! All Google APIs are free to use within the generous quotas.No charges unless you need enterprise features.
Can users use their own Google account?
Can users use their own Google account?
Yes! That’s what OAuth is for. Each user:
- Signs in with their Google account
- Authorizes your app
- Your app accesses their data
Something Not Working?
OAuth Error
Tell the agent:Permission Denied
Tell the agent:API Not Enabled
Tell the agent:Real Examples
Example 1: Appointment Booking System
Example 2: Email Campaign Tool
Example 3: Document Generator
Advanced Features
Service Account (No OAuth)
For server-to-server access:A spreadsheet ID can be extracted from its URL. For example, the spreadsheet ID in the URL
https://docs.google.com/spreadsheets/d/abc1234567/edit#gid=0 is “abc1234567”.Batch Operations
Webhooks
Going to Production
Update Redirect URIs
- In Google Cloud Console → Credentials
- Edit your OAuth client
- Add production redirect URI:
https://yourdomain.com/auth/callback
- Click Save
Verify Your Domain
- In OAuth consent screen
- Click Add domain
- Add your domain
- Complete verification
Submit for Verification (If Needed)
If requesting sensitive scopes:- Fill out security questionnaire
- Submit for Google review
- Usually takes 3-5 days
Quick Checklist
Before going live:- All needed APIs enabled
- OAuth working in test
- Tested core features
- Added production redirect URI
- Verified domain (if needed)
- Submitted for review (if needed)
- Tested with real Google account
Remember
Free to use - No API costs Generous limits - More than enough for most apps OAuth for user data - Secure access Service account for server - No user login needed Setup takes time - But worth it!Stuck? Tell the agent: “I need help with Google [Gmail/Calendar/Drive/Sheets] integration” and describe the issue.