gws-events-subscribe
यह क्या करती है
यह tool आपको Google Workspace सेवाओं में होने वाली गतिविधियों की real-time notifications देता है, जैसे Google Chat में नए message। यह notifications ऐसे format में भेजता है जिसे दूसरे प्रोग्राम आसानी से समझ सकें।
कब इस्तेमाल करें
- ✓जब किसी खास Google Chat channel में कोई message पोस्ट हो, तब सूचना पाना।
- ✓किसी shared document में नई गतिविधि की alert पाना।
- ✓Calendar events में होने वाले बदलावों पर नज़र रखना।
Skill का लिंक
https://github.com/googleworkspace/cli/blob/main/skills/gws-events-subscribe/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“जब 'Project X' Google Chat channel में कोई नया message आए, तो मुझे बताओ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
आप बताते हैं कि किस Google Workspace सेवा से notifications चाहिए और किस तरह की घटना में आपकी दिलचस्पी है। इसके बाद tool एक communication channel सेट करता है, जो घटना होते ही यह जानकारी आपको भेजता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
events +subscribe
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Subscribe to Workspace events and stream them as NDJSON
Usage
gws events +subscribe
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
--target |
— | — | Workspace resource URI (e.g., //chat.googleapis.com/spaces/SPACE_ID) |
--event-types |
— | — | Comma-separated CloudEvents types to subscribe to |
--project |
— | — | GCP project ID for Pub/Sub resources |
--subscription |
— | — | Existing Pub/Sub subscription name (skip setup) |
--max-messages |
— | 10 | Max messages per pull batch (default: 10) |
--poll-interval |
— | 5 | Seconds between pulls (default: 5) |
--once |
— | — | Pull once and exit |
--cleanup |
— | — | Delete created Pub/Sub resources on exit |
--no-ack |
— | — | Don't auto-acknowledge messages |
--output-dir |
— | — | Write each event to a separate JSON file in this directory |
Examples
gws events +subscribe --target '//chat.googleapis.com/spaces/SPACE' --event-types 'google.workspace.chat.message.v1.created' --project my-project
gws events +subscribe --subscription projects/p/subscriptions/my-sub --once
gws events +subscribe ... --cleanup --output-dir ./events
Tips
- Without --cleanup, Pub/Sub resources persist for reconnection.
- Press Ctrl-C to stop gracefully.
[!CAUTION] This is a write command — confirm with the user before executing.
See Also
- gws-shared — Global flags and auth
- gws-events — All subscribe to google workspace events commands
अक्सर पूछे जाने वाले सवाल
notifications लेना कैसे बंद करूँ?
keyboard पर Ctrl+C दबाकर रोक सकते हैं। अगर आपने tool को अस्थायी resources बनाने के लिए सेट किया है, तो वे अपने आप हट जाएँगे।
'NDJSON' क्या है?
NDJSON एक text format है, जिसमें हर लाइन एक पूरा और अलग JSON object होती है। इसे कंप्यूटर लाइन-दर-लाइन आसानी से पढ़ और प्रोसेस कर सकता है।
क्या पहले से कुछ सेट करना होगा?
हाँ, Google Workspace सेवाओं के इस्तेमाल के लिए authentication और सुरक्षा नियम पहले से सेट होने चाहिए। ज़्यादा जानकारी के लिए `gws-shared/SKILL.md` दस्तावेज़ देखें।
जानकारी
लेखक का मूल विवरण
Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.
repo: googleworkspace/cli
लोकप्रियता
- GitHub स्टार
- 32k
- रैंकिंग में स्थान
- #9164
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 6/10/2026
कमेंट
- …
इस repository की और skills
gws-admin-reports
32kआपके एजेंट को Google Workspace से गतिविधि रिपोर्ट लाने में मदद करता है। यह ऑडिट और उपयोग का डेटा इकट्ठा करता है।
gws-calendar-agenda
32kआपके एजेंट को सभी कैलेंडर में आने वाले इवेंट दिखाने में मदद करता है। अपना शेड्यूल व्यवस्थित करने और आने वाली चीज़ें जानने में उपयोगी है।
gws-calendar-insert
32kआपके एजेंट को Google Calendar में नए इवेंट बनाने देता है। अपॉइंटमेंट और मीटिंग तय करने के लिए उपयोगी है।
gws-calendar
32kआपके एजेंट को कैलेंडर और इवेंट मैनेज करने देता है। अपने काम और जीवन को व्यवस्थित करने के लिए उपयोगी है।
मिलती-जुलती skills
knowledge-automation
394kयह आपके एजेंट को एक नियमित काम सेट करने देती है जो समय-सारणी पर Knowledge vault में नई सामग्री जोड़ता है, फिर जांचता है कि काम चल रहा है।
knowledge-source-ingest
394kयह आपके एजेंट को चैट चैनल, फ़ीड या मेलबॉक्स से आई नई चीज़ों से Knowledge vault अपडेट रखने देती है, बिना वह दोबारा जोड़े जो पहले से है।
benchmark
280kयह आपके एजेंट को code की speed और performance नापने में मदद करता है। यह पक्का करने और धीमेपन की समस्याएँ ढूँढने में काम आता है।