Watch for Drive Changes for Openclaw

A specialized recipe for establishing real-time event subscriptions on Google Drive files and folders.

googleworkspace-bot
v1.0.12
Apr 1, 2026
0
1.1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install recipe-watch-drive-changes

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install recipe-watch-drive-changes using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Watch for Drive Changes?

The Watch for Drive Changes recipe is a powerful addition to the library of Openclaw Skills designed for developers working within the Google Workspace ecosystem. It provides a standardized method to subscribe to resource change notifications, allowing your agents to react immediately to file or folder updates. By utilizing the gws-events backend, it simplifies the complex process of managing Webhook and Pub/Sub subscriptions for cloud storage, making it a vital component for reactive automation within Openclaw Skills.

Watch for Drive Changes Use Cases

  • Automating file processing pipelines when new documents are uploaded to a specific folder.
  • Maintaining data consistency across platforms by watching for Google Drive metadata changes.
  • Implementing audit logs or security alerts for modifications in shared drives via Openclaw Skills.
  • Developing responsive applications that update UI elements based on live document edits.

How Watch for Drive Changes Works

  1. Identify the target Drive resource ID and your Google Cloud Pub/Sub topic details.
  2. Execute the subscription creation command with JSON parameters defining the event scope and notification endpoint.
  3. Verify the status and expiration date of the monitor using the subscription listing command.
  4. Maintain the lifecycle of the subscription by performing periodic renewals to prevent service gaps.

Watch for Drive Changes Setup

To begin using this recipe, ensure the gws CLI tool is installed and the gws-events skill is active in your Openclaw Skills environment.

# Create a subscription for a specific Drive ID
gws events subscriptions create --json '{"targetResource": "//drive.googleapis.com/drives/DRIVE_ID", "eventTypes": ["google.workspace.drive.file.v1.updated"], "notificationEndpoint": {"pubsubTopic": "projects/PROJECT/topics/TOPIC"}, "payloadOptions": {"includeResource": true}}'

# Confirm the subscription is active
gws events subscriptions list

# Renew an existing subscription before it expires
gws events +renew --subscription SUBSCRIPTION_ID

Watch for Drive Changes Data Schema & Taxonomy

This recipe utilizes the standard Google Workspace event subscription schema for data organization.

Parameter Type Description
targetResource String The Drive ID or resource path being monitored.
eventTypes Array Types of modifications (e.g., v1.updated) that trigger a notification.
notificationEndpoint Object The Pub/Sub destination for the event data payloads.
payloadOptions Object Configuration for what data is included in the event message.

Watch for Drive Changes Advanced Features

  • Deep integration with Google Cloud Pub/Sub for scalable notification handling and multi-agent processing.
  • Programmatic renewal capabilities to ensure long-running Openclaw Skills remain active without manual intervention.
  • Detailed payload options to include resource metadata in the initial notification for faster processing.
  • Support for monitoring shared drives and individual files across organizational Google Workspace instances.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*