AI Strategy · · 8 min read

How to Connect OpenClaw to Your Google Workspace: Full Setup Walkthrough

Tyler Mayberry walks through wiring OpenClaw to Gmail, Calendar, Drive, and Docs using the GOG skill and Google Cloud OAuth — live demo included.

What OpenClaw Actually Manages in Google Workspace

When Tyler named his new OpenClaw agent "Clove" and told it to take over his Google account, he wasn't exaggerating. The agent can read and send Gmail, create and organize Google Drive files, build Google Calendar events, and manage contacts in Google People — all through the GOG skill and a Google Cloud OAuth connection. What it cannot do, at least not yet, is edit existing Google Docs directly. That's a limitation worth knowing before you wire everything up.

The full setup, end to end, took Tyler about 40 minutes in real time. Here's exactly how it works.

Dictation Changes Everything About Prompting

Before touching any Google Cloud console, Tyler showed why he uses dictation to talk to his AI agent instead of typing. "I just hit my hotkey and start talking into the computer," he said. The difference in output quality is immediate. Short typed prompts produce shallow, generic results. Long dictation gives the model direction, nuance, and context — and that context is what makes an agent capable of navigating Google Workspace without hand-holding.

This matters for the Google Workspace integration specifically because OpenClaw's agent needs to understand multi-step workflows. A prompt like "check my email" gets basic results. A spoken explanation of what you need and why lets the agent figure out the right API calls on its own.

The GOG Skill: What It Is and What It Is Not

GOG is the OpenClaw skill that bridges your agent to Google Workspace. It uses Google's official APIs — Gmail API, Google Calendar API, Google Drive API, Google Sheets API, and Google People API — through a standard OAuth 2.0 flow. Once authenticated, the agent can perform actions like sending emails, creating calendar events, uploading files to Drive, exporting Google Docs as PDFs, and creating folders.

What GOG explicitly cannot do: edit existing Google Docs in place. Tyler called this out in the walkthrough. The skill supports export, copy, and create, but in-document editing via API is not available. That doesn't break most workflows — it just means you may need a human to do final edits on shared templates.

Google Cloud Project Setup: The APIs You Actually Need

The GOG skill documentation lists six Google Cloud APIs you should enable. Not all are mandatory for every use case, but here's the complete set from the walkthrough:

  • Gmail API — read, send, manage email
  • Google Calendar API — create, edit, and query calendar events
  • Google Drive API — create files, folders, copy files, move files
  • Google Docs API — export Docs to PDF, copy templates
  • Google Sheets API — read and write spreadsheet data
  • Google People API — manage contacts

Tyler enabled all six during the walkthrough. The exact steps: open Google Cloud Console, navigate to APIs & Services > Library, search each API by name, and click Enable with your project selected. Most of these APIs are free for standard personal or small business use under Google's quota limits.

OAuth Consent Screen: Desktop App vs. Web Application

During setup, Tyler had to choose an OAuth application type. GOG uses a desktop app flow, which means selecting "Desktop app" when creating your OAuth client ID in Google Cloud Console — not "Web application." Tyler specifically noted this because the option that appears default (web) leads to a different OAuth flow that won't work with GOG.

The consent screen itself requires:

  • An app name (Tyler's was "Clove GOG Access")
  • A support email address (can be any valid email)
  • No publisher verification is required for personal or internal use

If you hit the "test mode" prompt, Tyler mentioned the agent will tell you what to do. In practice, you may be able to skip test users if your app is in production-approved status.

Downloading and Loading Credentials

After creating the OAuth client, Google provides a JSON credentials file containing your client ID and client secret. This file is what GOG uses to initiate the OAuth handshake with your Google account. Tyler walked through downloading it directly from the Google Cloud Console OAuth clients screen.

Once the credentials file is on disk, GOG starts the real account authorization — a browser-based OAuth approval step where you log into your Google account and click "Allow." Tyler described this as the moment your OpenClaw agent officially gets access to your workspace. After approving, the agent ran a verification check confirming it could reach Gmail, Calendar, and Drive.

Demo: Sending a Birthday Party Invitation End-to-End

The real test of any Google Workspace integration is a complete, multi-step workflow. Tyler put GOG through this sequence:

  1. Write a birthday party invitation in Google Docs
  2. Export that Doc as a PDF
  3. Create a dedicated folder in Google Drive called "birthday invitations"
  4. Move the PDF into that folder
  5. Send the PDF as an email attachment to himself (Tyleranimasai.co)
  6. Create a Google Calendar event for the party on April 10th from 2pm to 6pm
  7. Add "Stacy" as a contact in Google People

The agent completed all of these steps autonomously. Tyler only had to dictate the instructions once, with full context. It did create two folders with the same name rather than organizing perfectly — a small UX quirk — but every substantive action executed correctly.

"I literally did not have to do any of this myself. The agent found the JSON file, loaded it, ran the authorization, created the document, exported it, sent the email, and made the calendar event. All I did was watch."

Where Agents Still Need a Human

The walkthrough surfaced honest limitations. GOG cannot open a Google Doc and edit existing content — only create new files or copy and reorganize existing ones. Tyler also mentioned he had to correct the agent when it used an invalid email address for Stacy. Like any automation system, the outputs still need a quick human review before they go live.

Agents also show a behavioral tendency: they avoid deleting things without asking, preferring to create new folders rather than overwrite or reorganize. Tyler called this "a good problem to have" — safer than accidentally deleting — but something to be aware of when you're designing workflows.

What Frontier Models Change About This Workflow

Tyler used GPT 5.4 as the underlying model for his OpenClaw agent. He specifically noted that frontier models — GPT 5.4, Claude Opus, Claude Sonic — can navigate Google Workspace UIs and API responses in ways that smaller models cannot. If you've been trying this kind of setup with a lower-tier model and getting inconsistent results, the model choice is likely the bottleneck, not the GOG skill itself.

The $20/month ChatGPT Plus plan, Tyler said, is sufficient to run OpenClaw effectively. You're not paying for enterprise-tier AI — you're paying for a model that can actually follow multi-step workspace instructions without hallucinating the steps.

The Step-by-Step Checklist for Your Own Setup

Based on Tyler's walkthrough, here is the sequence for wiring OpenClaw to your Google Workspace:

  1. Install OpenClaw and name your agent
  2. Set your identity and context files so the agent retains memory across sessions
  3. Verify the GOG skill is installed
  4. Create a Google Cloud project (give it a name like "OpenClaw Workspace")
  5. Enable Gmail API, Google Calendar API, Google Drive API, Google Docs API, Google Sheets API, and Google People API
  6. Create an OAuth consent screen (choose Desktop app type)
  7. Download the OAuth client credentials JSON
  8. Give the agent your Google email address and point it to the credentials file
  9. Complete the browser-based OAuth authorization
  10. Confirm the agent can read Gmail, Calendar, and Drive

Tyler completed this entire process live in one take. For most users, following the agent's own guidance step-by-step is the fastest path — paste what you see on screen, and the agent adjusts.

Tyler Mayberry
Tyler Mayberry
Founder, Animas AI

Want this automated for your business?

See your first custom automation live in 7 days, or it's free.

Email Tyler