Google Chat Integration for Runbooks
Learn how to integrate Google Chat with Harness AI SRE Runbooks for automated incident communication in Google Workspace.
Harness AI SRE integrates with Google Chat at the organization level, enabling automated incident communication and team collaboration for organizations using Google Workspace.
Overview
Google Chat integration enables your runbooks to:
Send automated notifications to Google Chat spaces
Post incident updates to linked spaces
Coordinate response teams using Google Workspace tools
Maintain communication history in the incident timeline
Set up the integration
Before using Google Chat actions in runbooks, configure the organization-level Google Chat integration.
Prerequisites
Google Cloud Platform project: With Pub/Sub API enabled
Google Chat admin access: For your Google Workspace organization
Harness Organization Admin role: To configure third-party integrations
Setup steps
Connect the organization-level integration with these steps:
Go to Organization Settings, then Third-Party Integrations (AI SRE).
Click Connect for Google Chat.
Complete the OAuth authorization flow.
Configure GCP Project ID and Pub/Sub Topic Name.
Test the connection with a Space ID.
Click Save.
Go to Google Chat Integration to review complete setup instructions, including GCP Pub/Sub configuration.
Use Google Chat actions in runbooks
Google Chat actions are configured through the runbook action form in the UI:
In your runbook, click New Step, then Action.
In the Select Action dialog, go to the Communication category.
Select the Google Chat action you need from the available options.
Configure the action through a form-based interface.
Google Chat post message action
Sends a message to a specified Google Chat space.
Form fields:
Space ID: The Google Chat space identifier
Find this in the Google Chat space URL:
https://chat.google.com/room/SPACE_IDSupports Mustache variables:
{{incident.chat_space_id}}
Message: Message text to send
Supports Mustache variables:
{{Activity.title}},{{Activity.summary}}Plain text format (HTML formatting not currently supported)
Example configuration:
Available Mustache variables:
{{Activity.title}}: AI SRE incident title{{Activity.id}}: AI SRE incident ID{{Activity.severity}}: AI SRE incident severity{{Activity.status}}: AI SRE incident status{{Activity.summary}}: AI SRE incident summaryAny custom incident fields configured in your incident template
Best practices
Message structure
Structure Google Chat messages so responders can scan them quickly:
Use clear formatting: Break messages into sections with blank lines for readability.
Include severity indicators: Use emoji or text indicators for severity (🚨 Critical, ⚠️ High, ℹ️ Low).
Link to dashboards: Include links to monitoring dashboards, runbooks, or incident details.
Keep messages concise: Google Chat messages should be scannable; avoid large blocks of text.
Space management
Organize spaces so incident communication stays traceable:
Use dedicated incident spaces: Create a Google Chat space for each incident rather than posting to shared channels.
Document space IDs: Store frequently used space IDs as custom incident fields or runbook variables.
Link spaces to incidents: Use the Incident Details page to link Google Chat spaces so all messages appear in the timeline.
Runbook design
Design runbooks to post meaningful updates without overwhelming the space:
Send updates at key milestones: Post messages when status changes, mitigation is applied, or resolution is confirmed.
Avoid message spam: Do not send messages in tight loops; use conditional logic to limit frequency.
Test with a sandbox space: Validate runbook actions in a test Google Chat space before using in production incidents.
Common use cases
Incident notification
Send an initial notification when an incident is created:
Runbook action:
Action: Google Chat Post Message
Space ID:
{{incident.chat_space_id}}Message:
Status update broadcast
Send a status update when the incident status changes:
Runbook action:
Action: Google Chat Post Message
Space ID:
{{incident.chat_space_id}}Message:
Resolution notification
Notify the team when the incident is resolved:
Runbook action:
Action: Google Chat Post Message
Space ID:
{{incident.chat_space_id}}Message:
Troubleshooting
Permissions
The Google Chat integration requires these permissions:
chat.messages.create: Send messages to Google Chat spaces
chat.spaces.readonly: Read space metadata (for space ID validation)
These permissions are requested during the OAuth authorization flow.
Next steps
Google Chat Integration: Set up the organization-level integration.
Create a Runbook: Build automated response workflows.
AI Scribe Agent: Enable automatic capture of key events from Google Chat conversations.
Last updated
Was this helpful?