Integration Guide · April 2026

OpenClaw + Google Workspace:
Calendar, Gmail & Drive

Connecting OpenClaw to Google changes it from a chatbot into an agent that actually knows your schedule, handles your email, and can find files. Here's exactly how to set it up — and what it can do once connected.

By ClawReady · 11 min read

Most OpenClaw users operate in a completely separate context from their actual work tools. Their agent doesn't know about tomorrow's meeting, hasn't seen their email, and has no idea what's in their Drive. That's a significant limitation — and it's fixable.

Google Workspace integration changes this. Your agent can check your calendar before suggesting meeting times, draft email replies in your voice, search Drive for relevant documents, and prep briefings that include what's actually on your plate today.

Here's the full setup — and the honest limits of what each integration can do.

How OpenClaw Connects to Google

OpenClaw uses OAuth 2.0 to connect to Google APIs — the same authentication standard Gmail and other apps use. You authorize specific scopes (read calendar, send email, etc.) through Google's standard consent flow. No passwords are shared; you can revoke access at any time.

The connection lives in your OpenClaw MCP (Model Context Protocol) tools configuration. Each Google service is a separate tool that your agent can call when needed.

Security first: Only grant the scopes you actually need. Read-only access to Calendar is safer than full Calendar + Gmail send. Start minimal and expand. Your agent can be prompted to never send email without your explicit approval — enforce this in your SOUL.md.

Setting Up Google OAuth

  1. Go to Google Cloud Console and create a new project (or use an existing one)
  2. Enable the APIs you need: Google Calendar API, Gmail API, Google Drive API — enable only what you'll use
  3. Go to APIs & Services → Credentials → Create Credentials → OAuth 2.0 Client ID
  4. Choose Desktop application as the application type
  5. Download the credentials JSON file — save it somewhere safe (not in your git-tracked workspace)
  6. Configure the Google MCP tool in OpenClaw with your credentials path and desired scopes
  7. On first use, OpenClaw will open a browser window for you to authorize — sign in and approve the scopes
  8. A refresh token is saved locally — future sessions use this automatically

One-time setup. Once authorized, the connection persists until you revoke it. The refresh token lives in your OpenClaw credentials directory (~/.openclaw/credentials/) — back this up and don't commit it to git.

Google Calendar Integration

📅
Google Calendar
Most popular Google integration · Read + write available

What Your Agent Can Do

Recommended Scopes

ScopeAccess LevelUse Case
calendar.readonlyRead onlyBriefings, conflict detection, schedule awareness
calendar.eventsRead + write eventsCreating and modifying events
calendarFull accessEverything — only if needed

Practical tip: Start with calendar.readonly. The awareness use case (morning briefing includes today's schedule) is immediately valuable and carries zero risk of accidental event creation or deletion.

Gmail Integration

📧
Gmail
High value, handle with care · Read + send scopes

What Your Agent Can Do

Recommended Scopes

ScopeAccess LevelUse Case
gmail.readonlyRead onlySummarizing, searching, action flagging
gmail.composeCompose + sendDrafting and sending (no read access)
gmail.modifyRead + label + archiveInbox management
gmailFull accessEverything — use cautiously

Important: Before giving your agent Gmail send access, add an explicit rule to your SOUL.md: "Never send an email without showing me the draft and receiving my explicit 'send it' approval. Drafting is automatic; sending always requires my confirmation." This prevents accidental sends.

Google Drive Integration

📁
Google Drive
Document access + search · Most useful for knowledge workers

What Your Agent Can Do

Recommended Scopes

ScopeAccess LevelUse Case
drive.readonlyRead onlySearching, reading, summarizing documents
drive.fileFiles created by app onlyCreating new docs without access to existing files
driveFull accessRead + write + delete all files

Practical Workflows Once Connected

The "Morning Briefing" workflow

Your heartbeat agent runs at 6:30 AM, checks Calendar for the day's events, scans Gmail for unread flagged emails, and compiles a briefing: "You have 3 meetings today starting at 10 AM. 2 emails need responses — I've drafted replies for both. Your 2 PM has a conflict with your contractor call — want me to reschedule one?"

The "Meeting prep" workflow

30 minutes before a calendar event, your agent searches Gmail and Drive for recent communication with the attendees, pulls relevant documents, and sends you a one-page brief: who's coming, what was discussed last time, open action items, relevant files.

The "Email triage" workflow

You message your agent: "What's sitting in my inbox that needs action?" It searches Gmail, categorizes by urgency, summarizes each thread in one sentence, and drafts replies for the ones you want to respond to. You review, approve, send.

The "Follow-up tracker" workflow

You tell your agent about an important email you sent. It monitors your Gmail for a reply and pings you if no response comes in X days — with a drafted follow-up ready to send.

The pattern: OpenClaw + Google Workspace works best when you treat your agent as a chief of staff who has read-access to your work tools and brings you a prepared briefing rather than forcing you to dig through everything yourself. Read-heavy, draft-heavy, action-light until you've tested it thoroughly.

Common Setup Problems

🦞 Want Google Workspace Connected Properly?

OAuth setup, scope configuration, SOUL.md guardrails for email send, and the morning briefing workflow — ClawReady sets all of this up as part of our full setup package. Book a call and we'll get your agent reading your calendar by tomorrow.

Book a Free 15-Min Call →