Skip to main content

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

1

Google Account

Any Google account works
2

Google Cloud Console

Create a project (free!)
3

Enable APIs

Turn on the Google services you need
4

Get Credentials

Create OAuth credentials
5

20-30 Minutes

A few key steps involved, but we’ll guide you!
Here’s a helpful video to get you started.

Step 1: Set Up Google Cloud Project

Create Project

  1. Go to console.cloud.google.com
  2. Click New Project (top right)
  3. Name it (like “My App”)
  4. Click Create
  5. Wait for project to be created
  6. Make sure you’re in the new project (check top navbar)

Enable APIs

Depending on what you need: For Gmail:
  1. Search for “Gmail API” in search bar
  2. Click on it
  3. Click Enable
For Google Calendar:
  1. Search for “Google Calendar API”
  2. Click Enable
For Google Drive:
  1. Search for “Google Drive API”
  2. Click Enable
For Google Sheets:
  1. Search for “Google Sheets API”
  2. Click Enable
Only enable what you need! You can always add more later.

Create OAuth Credentials

  1. Go to APIs & ServicesCredentials
  2. Click Create CredentialsOAuth client ID
  3. 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
  4. Now create OAuth client:
    • Click Create CredentialsOAuth 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
  5. Copy these credentials:
    • Client ID
    • Client Secret
Keep Client Secret safe! Don’t share it publicly.

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

OAuth Authentication: Users will click “Sign in with Google” to authorize your app.

Step 3: Test the Integration

After setup:
1

Click Preview

In Emergent, click Preview
2

Sign in with Google

Click the “Sign in with Google” button
3

Authorize

Google will ask for permissionsClick Allow
4

Test Feature

Try the feature:
  • Send a test email
  • Create a calendar event
  • Upload a file
  • Read from sheet
5

Check Google

Verify in Gmail/Calendar/Drive that it worked!

Common Questions

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
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!
Yes! All Google APIs are free to use within the generous quotas.No charges unless you need enterprise features.
Yes! That’s what OAuth is for. Each user:
  1. Signs in with their Google account
  2. Authorizes your app
  3. 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

  1. In Google Cloud Console → Credentials
  2. Edit your OAuth client
  3. Add production redirect URI:
    • https://yourdomain.com/auth/callback
  4. Click Save

Verify Your Domain

  1. In OAuth consent screen
  2. Click Add domain
  3. Add your domain
  4. Complete verification

Submit for Verification (If Needed)

If requesting sensitive scopes:
  1. Fill out security questionnaire
  2. Submit for Google review
  3. 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.