gws-chat-send

Send plain-text messages to Google Chat spaces via the gws CLI.

Updated Nov 9, 2023
One-click install
npx skills add https://github.com/oresttokovenko/dot-files --skill gws-chat-send-oresttokovenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gws-chat-send
Source: https://github.com/oresttokovenko/dot-files/tree/main/chezmoi/dot_agents/skills/gws-chat-send
Command: npx skills add https://github.com/oresttokovenko/dot-files --skill gws-chat-send-oresttokovenko

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It removes the need to manually open Google Chat or write raw API calls when you want to post a message to a space from the command line or an automated workflow. ## Core Features & Use Cases - Direct Message Sending: Post plain-text messages to any Google Chat space using the space name and message text. - CLI Integration: Works through the gws command-line tool with simple required flags for space and text. - Use Case: A DevOps engineer wants to notify a team space when a deployment finishes; they run the send command with the space ID and a status message directly from their script. ## Quick Start Ask the assistant to send the message 'Deployment complete' to your Google Chat space using gws chat +send with your space name.

Frequently Asked Questions about gws-chat-send

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I send a message to a Google Chat space from the command line?

Run gws chat +send with the --space flag set to the space name (for example spaces/AAAAxxxx) and the --text flag containing your message. Both flags are required for the command to execute.

How do I find my Google Chat space name for gws?

Use the command gws chat spaces list to enumerate available spaces and retrieve their names. Space names follow the format spaces/ followed by an identifier string.

Can gws chat +send post cards or threaded replies?

No, this command only sends plain-text messages. For cards, rich formatting, or threaded replies, you must use the raw Google Chat API instead of the +send helper.

What prerequisites are needed before using gws chat commands?

You need the gws binary installed and configured with authentication. Read the gws-shared skill documentation for auth setup and global flags, or run gws generate-skills if that file is missing.

Is gws chat +send safe to run in automated scripts?

It is a write operation that posts messages visible to space members, so confirm the content before executing. In automation, validate the space name and message text to avoid posting to the wrong space.