Search

PythonReactSEOPDF
OpenClaw

google-chat

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).

darconada0 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install darconada/google-chat

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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:

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 ✅"
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):
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 \...

Source information

Source
github
Repository
openclaw/skills
Path
skills/darconada/google-chat
Version
—
Commit
4afcf9f8e017515d2aadf76855ced6c02938f856
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

README

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)
python3 scripts/send_webhook.py "$WEBHOOK_URL" "Your message"
OAuth (flexible)
# 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

Extracted content

SKILL.md
# 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 \...
README
# 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

Related skills

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

OpenClaw

0xarchive

0xfantommenace

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...

OpenClaw

1sec-security

cutmob

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...