Google Chat
Access Google Chat via the Google Chat API with OAuth authentication. Manage spaces, members, messages, attachments, and threaded conversations.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure Google Chat API access yourself.
Setup in 3 Steps
| Step 1: Install | Step 2: Pair Account | Step 3: Connect Google Chat |
|:---:|:---:|:---:|
|
|
| App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect Google Chat |
How It Works
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ Google Chat API │
│ (User Chat) │ │ (OAuth) │ │ (REST) │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect Google Chat │
│ │ 4. Secure Token │
│ │ 5. Proxy Requests │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │ Google │
│ File │ │ Auth │ │ Chat │
└──────────┘ └──────────┘ └──────────┘
Install
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for Google Chat again."
Quick Start
# List spaces the user is member of
clawlink_call_tool --tool "google_chat_list_spaces" --params '{}'
# List members in a space
clawlink_call_tool --tool "google_chat_list_members" --params '{"parent": "spaces/space-id"}'
# Send a message to a space
clawlink_call_tool --tool "google_chat_create_message" --params '{"parent": "spaces/space-id", "text": "Hello from OpenClaw!"}'
Authentication
All Google Chat tool calls are authenticated automatically by ClawLink using the user's connected Google account.
No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every Google Chat API request on the user's behalf.
Getting Connected
- Install the ClawLink plugin (see Install above).
- Pair the plugin with
clawlink_begin_pairingif it is not configured yet. - Open https://claw-link.dev/dashboard?add=google-chat and connect Google Chat.
- Call
clawlink_list_integrationsto verify the connection is active.
Connection Management
List Connections
clawlink_list_integrations
Response: Returns all connected integrations. Look for google-chat in the list.
Verify Connection
clawlink_list_tools --integration google-chat
Response: Returns the live tool catalog for Google Chat.
Reconnect
If Google Chat tools are missing or the connection shows an error:
- Direct the user to https://claw-link.dev/dashboard?add=google-chat
- After they confirm, call
clawlink_list_integrationsto verify - Then call
clawlink_list_tools --integration google-chat
Security & Permissions
- Access is scoped to Google Chat spaces and messages accessible to the connected Google account.
- All write operations require explicit user confirmation. Before executing any message send, space create, or member change, confirm the intended effect with the user.
- Destructive actions (deleting spaces, removing members) are marked as high-impact and must be confirmed.
- Message size is limited to 32,000 bytes. Card-based messages require bot authentication.
Tool Reference
Spaces
| Tool | Description | Mode |
|------|-------------|------|
| google_chat_list_spaces | List spaces the authenticated user is a member of | Read |
| google_chat_get_space | Get details for a specific space | Read |
| google_chat_create_space | Create a new space | Write |
| google_chat_update_space | Update space name, description, or settings | Write |
| google_chat_delete_space | Delete a space | Write |
Members
| Tool | Description | Mode |
|------|-------------|------|
| google_chat_list_members | List all members in a space | Read |
| google_chat_get_member | Get details for a specific member | Read |
| google_chat_create_membership | Add a user or group to a space | Write |
| google_chat_delete_membership | Remove a member from a space | Write |
Messages
| Tool | Description | Mode |
|------|-------------|------|
| google_chat_list_messages | List messages in a space | Read |
| google_chat_get_message | Get a specific message | Read |
| google_chat_create_message | Send a message to a space (supports threading) | Write |
| google_chat_update_message | Update a message's text or content | Write |
| google_chat_delete_message | Delete a message | Write |
Reactions
| Tool | Description | Mode |
|------|-------------|------|
| google_chat_list_reactions | List reactions to a message | Read |
| google_chat_create_reaction | Add an emoji reaction to a message | Write |
| google_chat_delete_reaction | Remove an emoji reaction | Write |
Attachments & Custom Emoji
| Tool | Description | Mode |
|------|-------------|------|
| google_chat_list_attachments | List attachments in a space | Read |
| google_chat_create_custom_emoji | Create a custom emoji for the organization | Write |
Sections
| Tool | Description | Mode |
|------|-------------|------|
| google_chat_create_section | Create a custom section in a space | Write |
Code Examples
List spaces
clawlink_call_tool --tool "google_chat_list_spaces" \
--params '{}'
Send a message to a space
clawlink_call_tool --tool "google_chat_create_message" \
--params '{
"parent": "spaces/space-id",
"text": "Hello team! Just wanted to share an update on the project status."
}'
Reply in a thread
clawlink_call_tool --tool "google_chat_create_message" \
--params '{
"parent": "spaces/space-id",
"text": "Thanks for the update!",
"thread": {
"thread_key": "original-message-id"
}
}'
Add a reaction to a message
clawlink_call_tool --tool "google_chat_create_reaction" \
--params '{
"parent": "spaces/space-id/messages/message-id",
"emoji_unicode": "👍"
}'
Discovery Workflow
- Call
clawlink_list_integrationsto confirm Google Chat is connected. - Call
clawlink_list_tools --integration google-chatto see the live catalog. - Treat the returned list as the source of truth. Do not guess or assume what tools exist.
- If the user describes a capability but the exact tool is unclear, call
clawlink_search_toolswith a short query and integrationgoogle-chat. - If no Google Chat tools appear, direct the user to https://claw-link.dev/dashboard?add=google-chat.
Execution Workflow
┌─────────────────────────────────────────────────────────────┐
│ READ OPERATIONS (Safe) │
│ list → get → search → describe → call │
│ │
│ Example: List spaces → Get space → Show members │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WRITE OPERATIONS (Require Confirmation) │
│ list → get → describe → preview → confirm → call │
│ │
│ Example: Preview message → User confirms → Execute send │
└─────────────────────────────────────────────────────────────┘
- For unfamiliar tools, ambiguous requests, or any write action, call
clawlink_describe_toolfirst. - Use the returned guidance, schema,
whenToUse,askBefore,safeDefaults,examples, andfollowupsto shape the call. - Prefer read, list, search, and get operations before writes when that reduces ambiguity.
- For writes or anything marked as requiring confirmation, call
clawlink_preview_toolfirst. - Execute with
clawlink_call_tool. Pass confirmation only after the preview matches the user's intent. - If the tool call fails, report the real error. Do not invent results or restate the failure as a missing capability unless the live catalog supports that conclusion.
Notes
- Space names use format
spaces/space-idin API calls. - Message threading uses
thread_keyto reply to existing threads. - Custom emojis are only available for Google Workspace accounts and require admin enablement.
- With user authentication, only plain text messages are supported. Card-based messages require bot authentication.
- Message size limit is 32,000 bytes.
Error Handling
| Status / Error | Meaning |
|----------------|---------|
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration google-chat. |
| Missing connection | Google Chat is not connected. Direct the user to https://claw-link.dev/dashboard?add=google-chat. |
| 404 Not Found | Space, message, or member does not exist. Verify the IDs. |
| 403 Forbidden | Insufficient permissions or the space requires bot authentication. |
| Write rejected | User did not confirm a write action. Always confirm before executing writes. |
Troubleshooting: Tools Not Visible
- Check that the ClawLink plugin is installed:
openclaw plugins list - If the plugin is installed but tools are missing, tell the user to send
/newas a standalone message to reload the catalog. - If a fresh chat does not help, run:
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json openclaw gateway restart - After restart, tell the user to send
/newagain and retry.
Troubleshooting: Invalid Tool Call
- Ensure the integration slug is exactly
google-chat. - Use
clawlink_describe_toolto verify parameter names and types before calling. - For write operations, always call
clawlink_preview_toolfirst.
Resources
Related Skills
Powered by ClawLink — an integration hub for OpenClaw

微信扫一扫