gws-workflow-file-announce
googleworkspace/cli
Announce a Google Drive file in a Chat space with a single command.
What is gws-workflow-file-announce?
This skill automates sharing Drive file announcements to Google Chat spaces. Use it to notify team members about newly uploaded or important files with optional custom messages.
- Sends a formatted announcement message to a specified Chat space
- Automatically fetches and includes the Drive file name in the announcement
- Supports custom announcement messages for context
- Outputs results in multiple formats (JSON, table, YAML, CSV)
- Integrates with gws drive upload workflow for seamless file sharing
How to install gws-workflow-file-announce
npx skills add null --skill gws-workflow-file-announce- Google Workspace CLI (gws) installed and configured
- Valid Google Workspace authentication (see gws-shared skill)
- Drive file ID of the file to announce
- Target Chat space ID (format: spaces/SPACE_ID)
How to use gws-workflow-file-announce
- 1.Obtain the Drive file ID (from gws drive commands or Drive URL)
- 2.Identify the target Chat space ID
- 3.Run: gws workflow +file-announce --file-id <ID> --space spaces/<SPACE_ID>
- 4.Optionally add --message '<text>' for a custom announcement
- 5.Check the output to confirm the message was sent
Use cases
- Notify a team channel when a new report or document is uploaded to Drive
- Announce project deliverables to stakeholders in Chat
- Share important files with custom context or instructions
- Automate file distribution notifications in team workflows
- Team leads coordinating file sharing
- Project managers announcing deliverables
- Automation engineers building productivity workflows
- Google Workspace administrators managing team communication
gws-workflow-file-announce FAQ
Not necessarily, but the skill works best when combined with gws drive +upload. You just need a valid Drive file ID.
Yes, use the --message flag to add custom text. Without it, a default announcement with the file name is sent.
Use the full space ID format: spaces/SPACE_ID (e.g., spaces/ABC123). You can find this in Chat space settings.
The skill supports json (default), table, yaml, and csv formats via the --format flag.
No, this is a write command that sends a Chat message. Ensure you have permission to post in the target space.
Full instructions (SKILL.md)
Source of truth, from googleworkspace/cli.
name: gws-workflow-file-announce description: "Google Workflow: Announce a Drive file in a Chat space." metadata: version: 0.22.5 openclaw: category: "productivity" requires: bins: - gws cliHelp: "gws workflow +file-announce --help"
workflow +file-announce
PREREQUISITE: Read
../gws-shared/SKILL.mdfor auth, global flags, and security rules. If missing, rungws generate-skillsto create it.
Announce a Drive file in a Chat space
Usage
gws workflow +file-announce --file-id <ID> --space <SPACE>
Flags
| Flag | Required | Default | Description |
|---|---|---|---|
--file-id | ✓ | — | Drive file ID to announce |
--space | ✓ | — | Chat space name (e.g. spaces/SPACE_ID) |
--message | — | — | Custom announcement message |
--format | — | — | Output format: json (default), table, yaml, csv |
Examples
gws workflow +file-announce --file-id FILE_ID --space spaces/ABC123
gws workflow +file-announce --file-id FILE_ID --space spaces/ABC123 --message 'Check this out!'
Tips
- This is a write command — sends a Chat message.
- Use
gws drive +uploadfirst to upload the file, then announce it here. - Fetches the file name from Drive to build the announcement.
See Also
- gws-shared — Global flags and auth
- gws-workflow — All cross-service productivity workflows commands
Related skills
More from googleworkspace/cli and the wider catalog.
gws-workflow-meeting-prep
Prepare for your next meeting with agenda, attendees, and linked docs from Google Calendar.
gws-workflow-standup-report
Generate today's standup summary from Google Calendar meetings and open tasks.
gws-workflow-weekly-digest
Get a weekly summary of your meetings and unread email count from Google Workspace.
persona-content-creator
Create, organize, and distribute content across Google Workspace with integrated Docs, Drive, Gmail, Chat, and Slides.
persona-customer-support
Manage customer support tickets, respond to inquiries, and escalate issues using Gmail, Sheets, Chat, and Calendar.
persona-event-coordinator
Plan and manage events with scheduling, invitations, and logistics across Google Workspace.