Skip to main content
Connect Google Docs to Rootly so workflows can automatically generate retrospectives, runbooks, and other incident documents from your templates. Setup takes 2 minutes via OAuth or about 10 minutes via a service account.

Before You Begin

You must be an Admin or Owner in Rootly to install integrations.
  • OAuth: Requires a Google account with access to Google Drive
  • Service Account: Requires Google Workspace admin access and a Google Cloud project
Choose your setup method based on your environment:

OAuth (Personal Account)

Best for: Testing, evaluation, or personal useConnects your personal Google account. If that account loses access or the person leaves, the integration breaks.

Service Account (Recommended)

Best for: Teams and production environmentsUses a dedicated service account that isn’t tied to any individual. More resilient and easier to manage at scale.

Quick Setup (OAuth)

OAuth connects your personal Google account in about 2 minutes.
1

In Rootly, go to Configuration → Integrations

Use the search bar to find Google Docs among the available integrations.
Rootly sidebar showing Configuration and Integrations menu
Integrations page with Google Docs search result
2

Click Setup and choose OAuth

Select the OAuth connection method, then choose which Google account to connect.
Google Docs setup button
3

Approve the requested permissions

Google will ask Rootly to access Google Drive and Docs on your behalf. Approve to complete the connection.You’ll be redirected back to Rootly once the authorization completes.
Google Docs is now connected. You can create templates and wire them up in workflows — head to the Workflows page to get started.

Production Setup (Service Account)

A service account keeps the integration running independent of any individual’s Google account. This setup involves creating the account in Google Cloud, uploading its credentials to Rootly, and granting it domain-wide delegation.
1

In Google Cloud Console, go to IAM & Admin → Service Accounts

If you don’t have a project yet, create one first. You’ll create the service account inside an existing project.
Google Cloud IAM Service Accounts page
2

Create a new Service Account

Click Create Service Account, fill in a name and description, then click Done.
Create service account form in Google Cloud
Service account created confirmation
After creating the account, click on its email address to open its details.
Service account list — click email to open details
3

Create a JSON key for the service account

Go to the Keys tab → Add KeyCreate new key. Select JSON as the key type and click Create.
Keys tab in service account details
Create new JSON key dialog
A .json file will download automatically — keep it safe, you’ll need it in the next step.
4

Upload the JSON key to Rootly

In Rootly, go to Configuration → Integrations → Google Docs → Setup. Choose the Service Account connection method and upload the JSON file you just downloaded.
Upload JSON key to Rootly setup screen
You should see a success message confirming the integration is active.
5

Enable Domain-wide Delegation

The service account needs domain-wide delegation to create documents on behalf of users in your Google Workspace.In Google Admin Console, go to Security → API Controls → Domain-wide Delegation and click Add new. Enter your service account’s Client ID (found in GCP Console under the service account details), then add these OAuth scopes:
https://www.googleapis.com/auth/drive.file
https://www.googleapis.com/auth/drive.appdata
https://www.googleapis.com/auth/documents
Click Authorize.
Domain-wide delegation setup in Google Admin Console
Without domain-wide delegation, the service account can’t create documents on behalf of users. If you skip this step, document creation will fail silently in workflows.

Verify the Connection

Once connected, confirm the integration is working before building templates and workflows.
  1. The integration should show Connected status with your Google account email
  2. Try creating a test document in Google Drive to confirm access is working

Troubleshooting

OAuth: Try signing in again using a different browser or an incognito window.Service Account: Verify the JSON key file is valid and hasn’t been corrupted or truncated.
This is almost always a domain-wide delegation issue. Check that:
  • The Client ID in Google Admin matches your service account exactly
  • All three OAuth scopes are entered as shown (no extra spaces or typos)
  • You’ve waited at least 15 minutes for Google to propagate the changes
OAuth: Re-authenticate to refresh your access token.Service Account: Confirm the service account has Editor access to the target folder in Google Drive.

Uninstall

To remove the Google Docs integration, go to Configuration → Integrations, find Google Docs, and click the Connected button to reveal the disconnect option.
Click the Connected button to reveal the Disconnect option
Disconnecting stops Rootly from creating new documents. Documents already generated by Rootly are not affected.

Next Steps

Create Templates & Workflows

Set up a Liquid template and wire it to a workflow to auto-generate documents on incident events

View Examples

Browse ready-to-use template examples for retrospectives and executive summaries