packages/docs/plugin-registry/platform/googlechat.md
The Google Chat plugin connects Eliza agents to Google Chat via a Google Cloud service account, supporting spaces, DMs, and group conversations with webhook-based event delivery.
Package: @elizaos/plugin-google-chat
eliza plugins install google-chat
https://your-eliza-host/google-chat
{
"connectors": {
"googlechat": {
"enabled": true,
"serviceAccountFile": "./service-account.json",
"audienceType": "project-number",
"audience": "123456789",
"webhookPath": "/google-chat"
}
}
}
| Field | Required | Description |
|---|---|---|
serviceAccountFile | Yes* | Path to service account JSON key file |
serviceAccountJson | Yes* | Inline service account JSON (alternative to file) |
audienceType | Yes | app-url or project-number |
audience | Yes | App URL or project number (matches audienceType) |
webhookPath | No | Webhook endpoint path (default: /google-chat) |
webhookUrl | No | Full webhook URL override |
typingIndicator | No | none, message, or reaction (default: none) |
dmPolicy | No | DM handling policy |
* Provide either serviceAccountFile or serviceAccountJson.
accounts map| Variable | Required | Description |
|---|---|---|
GOOGLE_CHAT_ENABLED | No | Enable or disable the connector |
GOOGLE_CHAT_SPACES | No | Comma-separated Space IDs to join |
GOOGLE_CHAT_AUDIENCE | No | App URL or project number for JWT verification |
GOOGLE_CHAT_BOT_USER | No | Bot user identifier |
GOOGLE_CHAT_WEBHOOK_PATH | No | Webhook endpoint path |
GOOGLE_CHAT_AUDIENCE_TYPE | No | Audience type: app-url or project-number |
GOOGLE_CHAT_REQUIRE_MENTION | No | Only respond when @mentioned |
GOOGLE_CHAT_SERVICE_ACCOUNT | No | Inline service account JSON |
GOOGLE_APPLICATION_CREDENTIALS | No | Path to Google application credentials JSON |
GOOGLE_CHAT_SERVICE_ACCOUNT_FILE | No | Path to service account JSON key file |
The plugin auto-enables when the connectors.googlechat block contains botToken, token, or apiKey. Note that serviceAccountFile alone does not trigger auto-enable. Include "apiKey": "placeholder" to trigger auto-enable when using service account auth, or add the plugin to plugins.allow explicitly:
{
"connectors": {
"googlechat": {
"apiKey": "placeholder",
"serviceAccountFile": "./service-account.json",
"audienceType": "project-number",
"audience": "123456789"
}
}
}
Ensure the webhook URL is publicly accessible and matches the URL configured in the Google Chat API console.
Verify the service account JSON key is valid and the service account has the Chat Bot role assigned.