TopRank Skills

Home / Claw Skills / Git / GitHub / Google Suite
Official OpenClaw rules 36%

Google Suite

Google Suite Skill

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Google Suite 技能。 若已安装,则直接安装 Google Suite 技能。

Overview

Skill Key
cenralsolution/google-suite
Author
cenralsolution
Source Repo
openclaw/skills
Version
-
Source Path
skills/cenralsolution/google-suite
Latest Commit SHA
a61eecd71427ebba836fad38821500c55176e5fd

Extracted Content

SKILL.md excerpt

# Google Suite Skill

**Version:** 1.0.0
**Category:** Productivity
**Description:** Unified access to Gmail, Google Calendar, and Google Drive APIs for sending, reading, deleting emails, managing calendar events, and handling files.

## Features

### Gmail
- Send emails
- Read emails (list, search, get details)
- Delete emails
- Mark as read/unread

### Google Calendar
- List events
- Create events
- Update events
- Delete events

### Google Drive
- List files
- Upload files
- Download files
- Delete files
- Search files

## Setup

### Prerequisites
- Python 3.8+
- Google Cloud project with OAuth2 credentials
- Enable Gmail, Calendar, and Drive APIs in Google Cloud Console

### Environment Variables
- `GOOGLE_OAUTH_CLIENT_ID` - OAuth2 client ID
- `GOOGLE_OAUTH_CLIENT_SECRET` - OAuth2 client secret
- `GOOGLE_OAUTH_REDIRECT_URI` - OAuth2 redirect URI (e.g., http://localhost:8080/callback)

### Required Scopes
- `https://www.googleapis.com/auth/gmail.readonly`
- `https://www.googleapis.com/auth/gmail.send`
- `https://www.googleapis.com/auth/gmail.modify`
- `https://www.googleapis.com/auth/calendar`
- `https://www.googleapis.com/auth/drive`

### Token Storage
- Tokens are stored in `google_suite_tokens.json` (by default)

### Installation
```bash
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
```

## Usage

### Authentication
1. On first use, the skill will prompt for OAuth2 authentication.
2. Visit the provided URL, log in, and paste the authorization code.
3. Tokens will be saved for future use.

### Example Calls

#### Send Email
```python
skill.execute({
    "service": "gmail",
    "action": "send",
    "to": "user@example.com",
    "subject": "Test Email",
    "body": "Hello from OpenClaw!"
})
```

#### List Emails
```python
skill.execute({
    "service": "gmail",
    "action": "list",
    "query": "from:boss@company.com"
})
```

#### Delete...

Related Claw Skills