Google Chat
PocketPaw integrates with Google Chat via the Chat API v1, supporting both webhook and Pub/Sub modes.
Setup
Create a Google Cloud project
- Go to console.cloud.google.com
- Create a new project or select an existing one
- Enable the Google Chat API
Create a service account
- Go to IAM & Admin → Service Accounts
- Create a new service account
- Download the JSON key file
Configure the Chat app
- Go to the Google Chat API configuration
- Configure the app with either webhook or Pub/Sub connection
Configure PocketPaw
export POCKETCLAW_GCHAT_PROJECT_ID="your-project-id"export POCKETCLAW_GCHAT_SERVICE_ACCOUNT_KEY="/path/to/service-account-key.json"Start
pocketpaw --gchatConfiguration
| Setting | Env Variable | Description |
|---|---|---|
| Project ID | POCKETCLAW_GCHAT_PROJECT_ID | Google Cloud project ID |
| Service account key | POCKETCLAW_GCHAT_SERVICE_ACCOUNT_KEY | Path to JSON key file |
| Mode | POCKETCLAW_GCHAT_MODE | webhook or pubsub |
| Subscription | POCKETCLAW_GCHAT_SUBSCRIPTION | Pub/Sub subscription name |
| Allowed spaces | POCKETCLAW_GCHAT_ALLOWED_SPACE_IDS | Comma-separated space IDs |
Connection Modes
Webhook Mode
In webhook mode, Google Chat sends HTTP requests to your server. The dashboard exposes a webhook endpoint that handles these requests.
Pub/Sub Mode
In Pub/Sub mode, PocketPaw subscribes to a Google Cloud Pub/Sub topic. This doesn’t require a public URL — the connection is outbound.
Features
No Streaming
Google Chat messages are accumulated and sent as a complete response.
Session Keys
Each space gets a unique session: gchat:{space_name}
Installation
curl -fsSL https://pocketpaw.xyz/install.sh | sh
# Or add the Google Chat extra manuallypip install pocketpaw[gchat]This installs google-api-python-client as an optional dependency.
Was this page helpful?