邮件与消息32k · #9157
gws-chat
它能做什么
这个智能体可以帮你管理 Google Chat 中的会话和空间。你可以创建空间、发送消息、上传或下载文件,还能管理自定义表情等。
适用场景
- ✓向群组发送消息。
- ✓创建一个新的聊天空间。
- ✓从某个会话中下载文件。
技能链接
https://github.com/googleworkspace/cli/blob/main/skills/gws-chat/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
请用这个技能帮我:https://github.com/googleworkspace/cli/blob/main/skills/gws-chat/SKILL.md
阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add googleworkspace/cli --skill gws-chat
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/googleworkspace/cli/main/skills/gws-chat/SKILL.md -o SKILL.md
可以这样问 AI
“请向“Project X”空间发送消息:“明天上午10点开会。””
每周 5 个新技能,1 分钟读完。
工作原理
它直接连接你的 Google Chat 账户。当你提出请求时,它会把你的请求转换成 Google Chat 能理解的指令,从而完成操作。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
chat (v1)
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws chat <resource> <method> [flags]
Helper Commands
| Command | Description |
|---|---|
+send |
Send a message to a space |
API Resources
customEmojis
create— Creates a custom emoji. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see Learn about custom emojis in Google Chat and Manage custom emoji permissions.delete— Deletes a custom emoji. By default, users can only delete custom emoji they created. Emoji managers assigned by the administrator can delete any custom emoji in the organization. See Learn about custom emojis in Google Chat. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization.get— Returns details about a custom emoji. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see Learn about custom emojis in Google Chat and Manage custom emoji permissions.list— Lists custom emojis visible to the authenticated user. Custom emojis are only available for Google Workspace accounts, and the administrator must turn custom emojis on for the organization. For more information, see Learn about custom emojis in Google Chat and Manage custom emoji permissions.
media
download— Downloads media. Download is supported on the URI/v1/media/{+name}?alt=media.upload— Uploads an attachment. For an example, see Upload media as a file attachment.
spaces
completeImport— Completes the import process for the specified space and makes it visible to users.create— Creates a space. Can be used to create a named space, or a group chat inImport mode. For an example, see Create a space.delete— Deletes a named space. Always performs a cascading delete, which means that the space's child resources—like messages posted in the space and memberships in the space—are also deleted. For an example, see Delete a space.findDirectMessage— Returns the existing direct message with the specified user. If no direct message space is found, returns a404 NOT_FOUNDerror. For an example, see Find a direct message. With app authentication, returns the direct message space between the specified user and the calling Chat app.get— Returns details about a space. For an example, see Get details about a space.list— Lists spaces the caller is a member of. Group chats and DMs aren't listed until the first message is sent. For an example, see List spaces.patch— Updates a space. For an example, see Update a space. If you're updating thedisplayNamefield and receive the error messageALREADY_EXISTS, try a different display name.. An existing space within the Google Workspace organization might already use this display name.search— Returns a list of spaces in a Google Workspace organization based on an administrator's search. In the request, setuse_admin_accesstotrue. For an example, see Search for and manage spaces.
…
常见问题
使用这个功能需要 Google Workspace 账户吗?
部分功能(比如自定义表情)需要 Google Workspace 账户,并且需要管理员启用该功能。
我如何查看所有可用的命令?
你可以输入 `gws chat --help`,查看智能体可以执行的所有功能和命令。
我怎么知道执行某个命令需要提供哪些信息?
使用命令 `gws schema chat.<resource>.<method>`,就能查看每个操作所需的详细参数。
详情
热度
- GitHub 星标
- 32k
- 排名
- #9157
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/6
评论
- …