gws-events
Skill này làm gì
Công cụ này cho phép bạn quản lý các thông báo sự kiện Google Workspace. Bạn có thể tạo, xem, cập nhật hoặc xóa đăng ký để nhận cảnh báo về những gì đang diễn ra trong tài khoản của mình.
Khi nào nên dùng
- ✓Khi bạn muốn được báo khi có email mới trong hộp thư chính.
- ✓Khi bạn muốn biết khi một tệp được chỉnh sửa trong Google Drive.
- ✓Khi bạn muốn nhận cảnh báo về sự kiện trong Google Calendar.
Liên kết skill
https://github.com/googleworkspace/cli/blob/main/skills/gws-events/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn được thông báo mỗi khi có email mới trong hộp thư chính của mình.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Bạn chỉ định loại sự kiện muốn theo dõi (như tin nhắn mới), và công cụ thiết lập Google Workspace để gửi thông tin đó cho bạn.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
events (v1)
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
gws events <resource> <method> [flags]
Helper Commands
| Command | Description |
|---|---|
+subscribe |
Subscribe to Workspace events and stream them as NDJSON |
+renew |
Renew/reactivate Workspace Events subscriptions |
API Resources
message
stream— SendStreamingMessage is a streaming call that will return a stream of task update events until the Task is in an interrupted or terminal state.
operations
get— Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
subscriptions
create— Creates a Google Workspace subscription. To learn how to use this method, see Create a Google Workspace subscription.delete— Deletes a Google Workspace subscription. To learn how to use this method, see Delete a Google Workspace subscription.get— Gets details about a Google Workspace subscription. To learn how to use this method, see Get details about a Google Workspace subscription.list— Lists Google Workspace subscriptions. To learn how to use this method, see List Google Workspace subscriptions.patch— Updates or renews a Google Workspace subscription. To learn how to use this method, see Update or renew a Google Workspace subscription.reactivate— Reactivates a suspended Google Workspace subscription. This method resets your subscription'sStatefield toACTIVE. Before you use this method, you must fix the error that suspended the subscription. This method will ignore or reject any subscription that isn't currently in a suspended state. To learn how to use this method, see Reactivate a Google Workspace subscription.
tasks
cancel— Cancel a task from the agent. If supported one should expect no more task updates for the task.get— Get the current state of a task from the agent.subscribe— TaskSubscription is a streaming call that will return a stream of task update events. This attaches the stream to an existing in process task. If the task is complete the stream will return the completed task (like GetTask) and close the stream.pushNotificationConfigs— Operations on the 'pushNotificationConfigs' resource
Discovering Commands
Before calling any API method, inspect it:
# Browse resources and methods
gws events --help
# Inspect a method's required params, types, and defaults
gws schema events.<resource>.<method>
Use gws schema output to build your --params and --json flags.
Câu hỏi thường gặp
“Subscriptions” là gì?
Subscriptions giống như một thỏa thuận để Google Workspace cảnh báo bạn khi một số sự việc xảy ra.
Tôi có thể chọn sự kiện nào mình muốn nhận không?
Có, bạn có thể chỉ định các loại sự kiện mà bạn quan tâm.
Làm sao để biết thông báo của tôi có đang hoạt động không?
Bạn có thể kiểm tra trạng thái đăng ký để đảm bảo chúng đang hoạt động và nhận được sự kiện.
Chi tiết
Độ phổ biến
- Sao GitHub
- 32k
- Vị trí xếp hạng
- #9165
- Giấy phép
- Apache-2.0
- Cập nhật
- 6/10/2026
Bình luận
- …
Thêm skill từ kho mã này
gws-admin-reports
32kGiúp agent của bạn lấy báo cáo hoạt động từ Google Workspace. Thu thập dữ liệu kiểm toán và sử dụng.
gws-calendar-agenda
32kGiúp agent của bạn xem các sự kiện sắp tới trên tất cả lịch. Hữu ích để sắp xếp lịch trình và biết những gì sắp diễn ra.
gws-calendar-insert
32kCho phép agent của bạn tạo sự kiện mới trong Google Calendar. Hữu ích để lên lịch hẹn và cuộc họp.
gws-calendar
32kCho phép agent của bạn quản lý lịch và sự kiện. Hữu ích để sắp xếp công việc và đời sống cá nhân.
Skill tương tự
knowledge-automation
394kGiúp agent của bạn thiết lập tác vụ định kỳ đưa nội dung mới vào kho Knowledge theo lịch, rồi kiểm tra tác vụ có chạy không.
knowledge-source-ingest
394kGiúp agent của bạn cập nhật Knowledge vault với các mục mới từ kênh chat, nguồn tin hoặc hộp thư, mà không thêm lại những gì đã có.
benchmark
280kGiúp agent của bạn đo tốc độ và hiệu suất của code, hữu ích để đảm bảo mọi thứ nhanh và tìm ra những chỗ chậm.