Overview
TL;DR: Create a Google Cloud project, enable Chat API, create a service account, run
openclaw channels login google-chat --keyfile path/to/key.json, and invite the bot.
Applies to: Windows, macOS, Linux
Audience: Power users, developers, security-conscious, enterprise
Audience: Power users, developers, security-conscious, enterprise
1. Create Google Cloud Project
- Go to Google Cloud Console
- Click the project dropdown and select “New Project”
- Enter a project name (e.g., “OpenClaw Bot”)
- Click “Create”
2. Enable Chat API
- In the sidebar, go to “APIs & Services” > “Library”
- Search for “Google Chat API”
- Click “Enable”
3. Create Service Account
- Go to “IAM & Admin” > “Service Accounts”
- Click “Create Service Account”
- Enter a name (e.g., “openclaw-bot”)
- Click “Create and Continue”
- Grant the role “Chat API App” (or “Project > Editor” for testing)
- Click “Done”
- Click the service account email > “Keys” > “Add Key” > “Create new key”
- Choose JSON and click “Create”
- Save the JSON key file securely
4. Login Command
Run the Google Chat login command:
openclaw channels login google-chat --keyfile path/to/key.json
Replace path/to/key.json with the path to your downloaded key file.
5. Add Bot to Spaces
- In Google Chat, open a space or DM
- Type
@and search for the service account email - Select the bot to add it to the space
FAQ:
Q: Do I need a Google Workspace account?
A: No. A regular Google account with a Cloud project works.
Q: What if the bot doesn’t respond?
A: Ensure the Chat API is enabled and the service account has permissions.
Q: Do I need a Google Workspace account?
A: No. A regular Google account with a Cloud project works.
Q: What if the bot doesn’t respond?
A: Ensure the Chat API is enabled and the service account has permissions.