Google Chat Integration
Connect your agent to Google Chat for seamless communication within Google Workspace.
Overview
Google Chat integration provides:
- Direct messaging with your bot
- Google Workspace Spaces support
- Rich card formatting
- Enterprise-ready security
Prerequisites
- Google Workspace account
- Google Cloud Console access
- Admin permissions to install Workspace apps
Setup Steps
1. Create a Google Cloud Project
- Go to Google Cloud Console (opens in a new tab)
- Create a new project or select an existing one
- Enable the Google Chat API
2. Configure the Chat App
- In Google Cloud Console, go to APIs & Services → Google Chat API
- Click Configuration
- Fill in app details:
- App name — Your bot's display name
- Avatar URL — Icon for your bot
- Description — What the bot does
- Set Functionality:
- Enable "Receive 1:1 messages"
- Enable "Join spaces and group conversations" (if needed)
3. Set Up Authentication
- Go to APIs & Services → Credentials
- Create a Service Account
- Download the JSON key file
- Note the service account email
4. Connect to Cuneiform Chat
- Go to Agents → Select your agent
- Navigate to Integrations tab
- Click Google Chat
- Upload your service account JSON key
- Click Connect
5. Install in Google Workspace
- In Google Cloud Console, go to Google Chat API → Configuration
- Under Visibility, add your domain
- Users in your workspace can now find and message the bot
Using the Bot
Direct Messages
Users can start a conversation:
- Open Google Chat
- Click Start a chat → Find apps
- Search for your bot name
- Start chatting
In Spaces
Add the bot to a Space:
- Open the Space
- Click the Space name → Manage apps
- Add your bot
- Mention the bot with
@BotNameto interact
Features
Rich Cards
Responses can include formatted cards with:
- Headers and sections
- Buttons and links
- Images
Thread Support
The bot can respond in threads to keep conversations organized.
Slash Commands
Configure custom slash commands for quick actions.
Google Chat integration requires a Google Workspace account. Personal Gmail accounts cannot install custom Chat apps.
Troubleshooting
Bot Not Appearing
- Verify the Chat API is enabled
- Check visibility settings include your domain
- Ensure the service account has proper permissions
Authentication Errors
- Verify the service account JSON is valid
- Check the service account has Chat API access
- Re-upload credentials if needed
Messages Not Received
- Verify webhook URL is configured correctly
- Check Google Cloud Console logs for errors
- Ensure the bot is properly installed in your workspace
Security
- Service account credentials are encrypted
- Messages processed over secure connections
- Compliant with Google Workspace security standards
Disconnecting
To remove the Google Chat integration:
- Go to Agents → Select agent → Integrations
- Click Google Chat → Disconnect
To fully remove from Google Workspace:
- Go to Google Admin Console
- Remove the Chat app from your organization