Google Suite Skill — Google Suite 技能
v1.0.0Provides unified 访问 to GmAIl, Google Calendar, and Drive APIs for managing emAIls, calendar 事件, and files with OAuth2 authentication.
运行时依赖
安装命令
点击复制技能文档
Google Suite 技能
Version: 1.0.0 Category: Productivity Description: Unified 访问 to GmAIl, Google Calendar, and Google Drive APIs for 发送ing, reading, deleting emAIls, managing calendar 事件, and handling files.
Features GmAIl 发送 emAIls Read emAIls (列出, 搜索, 获取 detAIls) 删除 emAIls Mark as read/unread Google Calendar 列出 事件 创建 事件 更新 事件 删除 事件 Google Drive 列出 files 上传 files 下载 files 删除 files 搜索 files 设置up Prerequisites Python 3.8+ Google Cloud project with OAuth2 凭证s Enable GmAIl, Calendar, and Drive APIs in Google Cloud Console 环境 Variables GOOGLE_OAUTH_命令行工具ENT_ID - OAuth2 命令行工具ent ID GOOGLE_OAUTH_命令行工具ENT_SECRET - OAuth2 命令行工具ent 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.发送 https://www.googleAPIs.com/auth/gmAIl.modify https://www.googleAPIs.com/auth/calendar https://www.googleAPIs.com/auth/drive 令牌 Storage 令牌s are stored in google_suite_令牌s.json (by default) 安装ation pip 安装 --升级 google-API-python-命令行工具ent google-auth-httplib2 google-auth-oauthlib
Usage Authentication On first use, the 技能 will prompt for OAuth2 authentication. Visit the provided URL, 记录 in, and paste the authorization code. 令牌s will be saved for future use. Example Calls 发送 EmAIl 技能.执行({ "服务": "gmAIl", "action": "发送", "to": "user@example.com", "subject": "Test EmAIl", "body": "Hello from OpenClaw!" })
列出 EmAIls 技能.执行({ "服务": "gmAIl", "action": "列出", "查询": "from:boss@company.com" })
删除 EmAIl 技能.执行({ "服务": "gmAIl", "action": "删除", "message_id": "XYZ123..." })
列出 Calendar 事件 技能.执行({ "服务": "calendar", "action": "列出", "days": 7 })
创建 Calendar Event 技能.执行({ "服务": "calendar", "action": "创建", "summary": "Team Meeting", "启动": "2024-03-01T10:00:00", "end": "2024-03-01T11:00:00" })
列出 Drive Files 技能.执行({ "服务": "drive", "action": "列出", "查询": "name contAIns '报告'" })
上传 File to Drive 技能.执行({ "服务": "drive", "action": "上传", "file_path": "./myfile.pdf" })
Security OAuth2 令牌s are stored 安全ly and never 记录ged. All 凭证s are loaded from 环境 variables. No sensitive data is printed or 记录ged. Troubleshooting Ensure all required APIs are enabled in Google Cloud Console. 检查 that OAuth2 凭证s are correct and match the redirect URI. 删除 google_suite_令牌s.json to force re-authentication if needed. References Google API Python 命令行工具ent GmAIl API Docs Calendar API Docs Drive API Docs