google-workspace

Automate Google Calendar and Gmail workflows via official APIs with OAuth2.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/mrdanjohnson/Production-ai-editor --skill google-workspace-mrdanjohnson
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: google-workspace
Source: https://github.com/mrdanjohnson/Production-ai-editor/tree/main/skills/google-workspace
Command: npx skills add https://github.com/mrdanjohnson/Production-ai-editor --skill google-workspace-mrdanjohnson

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-api-python-client, google-auth, google-auth-oauthlib, google-auth-httplib2, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables programmatic access to Google Calendar, Gmail, and other Google Workspace services via official APIs.

Core Features & Use Cases

  • Authentication and API access to Google Calendar and Gmail for automated workflows.
  • Calendar: list, create events, check availability to streamline scheduling.
  • Gmail: read, search, and send emails to manage communications at scale.
  • Use Case: Automatically fetch calendar events and respond to emails to coordinate meetings across teams.

Quick Start

Run the authentication flow to obtain OAuth tokens:

  • python3 ~/.openclaw/workspace/skills/google-workspace/scripts/google_auth.py
  • After authentication, list calendar events: python3 scripts/calendar_ops.py list --max-results 5
  • List emails: python3 scripts/gmail_ops.py list --max-results 5

Frequently Asked Questions about google-workspace

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate Google Calendar and Gmail tasks using Python APIs?

You can automate Google Calendar and Gmail tasks by using Python scripts that authenticate via OAuth2 and call the official Google Workspace APIs to read, create, and manage events and emails programmatically.

What OAuth2 setup is required to access Google Workspace APIs?

Accessing Google Workspace APIs requires setting up OAuth2 credentials in Google Cloud Console and placing a client_secret.json file at ~/.config/openclaw/google-workspace/ to generate and store the necessary access token.

Can I use Python to search and send Gmail messages at scale?

Yes, you can use Python to search and send Gmail messages at scale by executing the provided gmail operations script, which leverages the official Gmail API for automated email management workflows.

Does this Google Workspace automation skill support checking calendar availability?

Yes, the Google Workspace automation skill supports checking calendar availability, listing events, and creating new calendar events to streamline scheduling across teams and projects via the Calendar API.

Why does my Python script for Google APIs fail to authenticate?

Python scripts for Google APIs fail to authenticate if the OAuth2 token is missing or invalid; you must run the authentication flow to generate and store token.json in the designated config directory.