Tutorials 13

Lesson 13 — OpenClaw Gog Skill: Use AI to Auto-Manage Gmail, Calendar, and Google Drive (2026)

Goal: Install the Gog Skill so OpenClaw can control Gmail, Google Calendar, Drive, Contacts, Sheets, and Docs through natural language.


What Can the Gog Skill Do?

Gog is OpenClaw's most comprehensive Google Workspace integration Skill — one install unlocks six services:

Service Supported Operations
Gmail Read, search, compose, send, reply, mark as read
Google Calendar View schedule, create events, reschedule, set reminders, invite participants
Google Drive Search files, upload/download, create folders, manage sharing permissions
Google Contacts Find contacts, add contacts, update information
Google Sheets Read table data, write data, create new spreadsheets
Google Docs Read document content, create new documents, append content

AI managing Google Workspace for free — Gog Skill is completely free, requiring only your own Google account authorization. Compared to automation platforms like Zapier, Gog is driven by natural language and is more flexible, making it a lighter-weight choice for individuals and small teams.


Step 1: Install Gog Skill

/install @steipete/gog

Verify after installation:

pnpm openclaw skills list
# gog should appear in the list

Step 2: Google OAuth Authorization (Critical Step)

This is where most users get stuck. Here are the authorization steps:

After installation, send any Gmail-related command to automatically trigger the authorization flow:

List my latest 10 unread emails

The system returns an authorization link:

Google account authorization is needed to continue.
Please visit the following link to complete authorization:
https://accounts.google.com/o/oauth2/auth?...

After authorizing, paste the authorization code shown on the page:

Authorization step-by-step:

  1. Click the link and log in to your Google account in the browser
  2. Select the account you want to authorize (supports personal and Workspace enterprise accounts)
  3. Review the permissions Gog is requesting
  4. Click "Allow"
  5. Copy the authorization code shown on the page and paste it back into the OpenClaw chat
  6. Send it — authorization complete
[Paste authorization code]
4/0AX4XfWj...

After successful authorization, credentials are saved locally and future operations won't require re-authorization. To switch accounts or reauthorize:

/gog reauth

Step 3: Gmail Operation Examples

Common Gmail commands:

Read the latest 5 unread emails and give me a summary
Search for emails from boss@company.com in the last week
Send an email to Alice: subject "Code Review Feedback", content: Hi Alice, I've reviewed PR #234 for the payment module. I have a few suggestions — let's discuss in tomorrow's meeting.
Reply to the latest email from Bob: Sounds good, I'm available tomorrow afternoon at 2 PM.
Mark all emails under the "Project Reports" label as read

Step 4: Google Calendar Operation Examples

Common calendar commands:

What's on my schedule today?
Create a meeting this Friday at 3 PM, title "Payment System Review", invite zhangwei@company.com, duration 1 hour
Reschedule tomorrow's 2 PM meeting to 4 PM
Set a reminder for next Monday morning: check payment system deployment status
Check Alice's availability (requires she's shared her calendar)

Step 5: Google Drive Operation Examples

Search for files with "Q1 Report" in the name
List all files in the "Project Docs" folder
Create a new document titled "Payment System Refactor Technical Spec", place it in the "Project Docs" folder
Share the document with ID 1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgVE2upms with lina@company.com, read-only access

Step 6: Real Workflow Example

5-minute morning intelligence summary — just send one instruction:

Morning summary: check today's calendar events, last night's unread emails (important ones only), and tasks due this week

AI will automatically pull from three data sources and combine them into a concise morning report:

📅 Today's Schedule (2026-03-30)
  09:00 — Payment System Review (1 hour)
  14:00 — 1-on-1 with Alice

📧 Important Unread Emails (3)
  From boss@company.com: Q1 summary due by Friday
  From zhangwei@company.com: PR #234 merged
  ...

✅ Tasks Due This Week
  Payment Gateway Migration Doc (Friday, high priority)

If combined with Lesson 09's self-improving-agent, AI will also remember your reporting preferences (like "email summaries no more than 3 items"), getting smoother over time.


FAQ

Can OpenClaw auto-reply to Gmail?

Yes, but it needs an explicit instruction from you to trigger it. You can tell AI "reply to the email from XX saying I can't attend the meeting tomorrow" and AI will draft and send it. For setting up automatic reply rules (like out-of-office), manual triggering is currently required — the Gog Skill doesn't yet support fully unattended auto-triggers. Combined with OpenClaw's scheduled task feature, a semi-automated flow of periodically checking and replying is achievable.

Does the Gog Skill need a Google API Key?

No need to get your own API Key. The Gog Skill uses the standard OAuth 2.0 authorization flow — you only need to log in with your Google account. You don't need to go into Google Cloud Console or create any API project, making it very user-friendly.

Is authorizing my Google account safe? Can OpenClaw see my emails?

Authorization goes through Google's official OAuth flow — OpenClaw only gets the permissions you explicitly grant. Credentials (OAuth Token) are stored on your local device and don't pass through any third-party server. OpenClaw is a fully self-hosted solution — when AI processes your emails, the content isn't uploaded to Anthropic or the Gog author's servers. You can revoke authorization at any time from the "Security" section of your Google account settings.

Does the Gog Skill support Google Workspace enterprise accounts?

Yes. The authorization flow is identical to personal accounts — just log in with your enterprise Google account. Note that some enterprise Google Workspace accounts may have third-party OAuth authorization restricted by the administrator. If authorization fails, contact your IT admin to enable the relevant permissions. Personal Gmail accounts have no such restriction.


Next Steps

  • Lesson 14 — Use the GitHub Skill to let AI automatically manage Issues, submit PRs, and check CI results
  • Lesson 12 — Use the ontology Skill to build a structured knowledge graph for AI, remembering work information across sessions

Stay up to date with OpenClaw

Follow @lanmiaoai on X for tips, updates and new tutorials.

Follow