Google Chat: Workspace AI Agent Integration
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 POCKETPAW_GCHAT_PROJECT_ID="your-project-id"export POCKETPAW_GCHAT_SERVICE_ACCOUNT_KEY="/path/to/service-account-key.json"Start
pocketpaw --gchatConfiguration
| Setting | Env Variable | Description |
|---|---|---|
| Project ID | POCKETPAW_GCHAT_PROJECT_ID | Google Cloud project ID |
| Service account key | POCKETPAW_GCHAT_SERVICE_ACCOUNT_KEY | Path to JSON key file |
| Mode | POCKETPAW_GCHAT_MODE | webhook or pubsub |
| Subscription | POCKETPAW_GCHAT_SUBSCRIPTION | Pub/Sub subscription name |
| Allowed spaces | POCKETPAW_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.
Related
Microsoft Teams Setup
Bot Framework SDK integration for enterprise collaboration.
Slack Bot Setup
Socket Mode integration with thread support and no public URL needed.
Integrations Overview
Connect PocketPaw to Gmail, Calendar, Drive, and more Google services.
All Channels
Compare all 9+ supported messaging platforms.