humanpages
Search and hire real humans for tasks — photography, delivery, research, and more
Send messages to Google Chat spaces and users via webhooks or OAuth. Use when you need to send notifications, alerts, or messages to Google Chat channels (spaces) or direct messages to specific users. Supports both incoming webhooks (for predefined channels) and OAuth 2.0 (for dynamic messaging to any space or user).
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install darconada/google-chat打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Send messages to Google Chat using two methods:
Send to a pre-configured channel:
python3 scripts/send_webhook.py "$WEBHOOK_URL" "Your message here"
Example with threading:
python3 scripts/send_webhook.py "$WEBHOOK_URL" "Reply message" --thread_key "unique-thread-id"
Configuration: Store webhooks in google-chat-config.json:
{
"webhooks": {
"acs_engineering_network": "https://chat.googleapis.com/v1/spaces/...",
"general": "https://chat.googleapis.com/v1/spaces/..."
}
}
Read config and send:
WEBHOOK_URL=$(jq -r '.webhooks.acs_engineering_network' google-chat-config.json)
python3 scripts/send_webhook.py "$WEBHOOK_URL" "Deploy completed ✅"
First-time setup:
google-chat-oauth-credentials.json)python3 scripts/send_oauth.py \
--credentials google-chat-oauth-credentials.json \
--token google-chat-token.json \
--space "General" \
"Test message"
Send to a space by name:
python3 scripts/send_oauth.py \
--credentials google-chat-oauth-credentials.json \
--token google-chat-token.json \
--space "Engineering Network" \
"Deploy completed"
Note: OAuth messages automatically include 🤖 emoji prefix. Use --no-emoji to disable this:
python3 scripts/send_oauth.py \
--credentials google-chat-oauth-credentials.json \
--token google-chat-token.json \
--space "Engineering Network" \
"Message without emoji" \
--no-emoji
List available spaces:
python3 scripts/send_oauth.py \
--credentials google-chat-oauth-credentials.json \...
这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
Send messages to Google Chat spaces and users via webhooks or OAuth 2.0.
✅ Webhook support - Send to predefined channels (messages appear as configured bot)
✅ OAuth support - Send to any space dynamically (messages appear from your Google Chat App)
✅ Space discovery - List all available spaces and DMs
✅ Automatic emoji prefix - OAuth messages include 🤖 emoji (configurable)
✅ Message threading - Support for threaded conversations
python3 scripts/send_webhook.py "$WEBHOOK_URL" "Your message"
# First time: authenticate
python3 scripts/send_oauth.py \
--credentials oauth-creds.json \
--token token.json \
--space "Channel Name" \
"Your message"
# List spaces
python3 scripts/send_oauth.py \
--credentials oauth-creds.json \
--token token.json \
--list-spaces
For webhooks:
For OAuth:
See references/config-example.json for a config template with multiple webhooks.
--list-spaces to discover available DM space IDsSee SKILL.md for complete usage, examples, and troubleshooting.
Created: 2026-01-25
Tested with: Google Workspace
# Google Chat Messaging
Send messages to Google Chat using two methods:
1. **Webhooks** - Fast, pre-configured channels (messages appear as a bot)
2. **OAuth** - Dynamic messaging to any space or user (requires authentication)
## Quick Start
### Method 1: Webhooks (Recommended for Known Channels)
Send to a pre-configured channel:
```bash
python3 scripts/send_webhook.py "$WEBHOOK_URL" "Your message here"
```
Example with threading:
```bash
python3 scripts/send_webhook.py "$WEBHOOK_URL" "Reply message" --thread_key "unique-thread-id"
```
**Configuration:** Store webhooks in `google-chat-config.json`:
```json
{
"webhooks": {
"acs_engineering_network": "https://chat.googleapis.com/v1/spaces/...",
"general": "https://chat.googleapis.com/v1/spaces/..."
}
}
```
Read config and send:
```bash
WEBHOOK_URL=$(jq -r '.webhooks.acs_engineering_network' google-chat-config.json)
python3 scripts/send_webhook.py "$WEBHOOK_URL" "Deploy completed ✅"
```
### Method 2: OAuth (For Dynamic Messaging)
**First-time setup:**
1. Save OAuth credentials to a file (e.g., `google-chat-oauth-credentials.json`)
2. Run initial authentication (opens browser, saves token):
```bash
python3 scripts/send_oauth.py \
--credentials google-chat-oauth-credentials.json \
--token google-chat-token.json \
--space "General" \
"Test message"
```
**Send to a space by name:**
```bash
python3 scripts/send_oauth.py \
--credentials google-chat-oauth-credentials.json \
--token google-chat-token.json \
--space "Engineering Network" \
"Deploy completed"
```
**Note:** OAuth messages automatically include `🤖` emoji prefix. Use `--no-emoji` to disable this:
```bash
python3 scripts/send_oauth.py \
--credentials google-chat-oauth-credentials.json \
--token google-chat-token.json \
--space "Engineering Network" \
"Message without emoji" \
--no-emoji
```
**List available spaces:**
```bash
python3 scripts/send_oauth.py \
--credentials google-chat-oauth-credentials.json \...# Google Chat Skill Send messages to Google Chat spaces and users via webhooks or OAuth 2.0. ## Features ✅ **Webhook support** - Send to predefined channels (messages appear as configured bot) ✅ **OAuth support** - Send to any space dynamically (messages appear from your Google Chat App) ✅ **Space discovery** - List all available spaces and DMs ✅ **Automatic emoji prefix** - OAuth messages include 🤖 emoji (configurable) ✅ **Message threading** - Support for threaded conversations ## Quick Start ### Webhook (fastest) ```bash python3 scripts/send_webhook.py "$WEBHOOK_URL" "Your message" ``` ### OAuth (flexible) ```bash # First time: authenticate python3 scripts/send_oauth.py \ --credentials oauth-creds.json \ --token token.json \ --space "Channel Name" \ "Your message" # List spaces python3 scripts/send_oauth.py \ --credentials oauth-creds.json \ --token token.json \ --list-spaces ``` ## Setup Requirements **For webhooks:** - Create incoming webhook in Google Chat space settings **For OAuth:** 1. Google Cloud Console → Create OAuth 2.0 credentials (Desktop app) 2. Enable Google Chat API 3. Download credentials JSON 4. Run authentication flow (opens browser) ## Configuration Example See `references/config-example.json` for a config template with multiple webhooks. ## Limitations - **OAuth cannot create new DMs by email** - This is a Google Chat API limitation - To send DMs via OAuth, you need the space ID of an existing conversation - Use `--list-spaces` to discover available DM space IDs ## Full Documentation See `SKILL.md` for complete usage, examples, and troubleshooting. --- **Created:** 2026-01-25 **Tested with:** Google Workspace
Search and hire real humans for tasks — photography, delivery, research, and more
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...
Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...