Skip to main content

Google Docs tools

With Google Docs tools, you can create, update, copy, and edit documents directly from Glean without switching to Google Docs.

This allows users to create, update, copy, and edit documents without switching between applications.

Google Docs tools are part of the broader Google tool suite.

When building a workflow agent, the Google Docs tools are available within the Plan and Execute step. For agents with auto mode, the Google Docs tools are available for all steps. This allows the agent to dynamically determine when to create or update documents to fulfill a complex user request.

Supported tools

The Google Docs tools are enabled as a unified bundle.

The following tools are included:

Document creation and discovery

  • Copy document: Creates a copy of an existing Google Docs document, including its content and formatting.
  • Search documents: Searches for Google Docs documents so agents can find the right file before reading or updating it.
  • Get document by ID: Retrieves a specific Google Docs document by its document ID.

Document editing

  • Replace all text: Finds and replaces all occurrences of a specified text string in a Google Docs document.
  • Update document section from Markdown: Updates a specific section of an existing Google Docs document using Markdown-formatted content.

Example use cases

Google Docs tools support several common workflow patterns:

  • Markdown-to-Docs creation: An agent can turn Markdown content into a formatted Google Doc for sharing with stakeholders.
  • Template-based document creation: A workflow can copy an existing document and reuse its structure for a new deliverable.
  • Targeted document updates: An agent can update a specific section of a document without rewriting the entire file.
  • Content standardization: An agent can replace outdated terms, product names, or repeated text across a document.
  • Document lookup and retrieval: A workflow can search for the right document, retrieve it by ID, and use that context in later steps.

Setup and configuration

Prerequisites

Before configuring tools, ensure you have the following:

  • You must have administrative access to the Glean Admin console.
  • Your organization must have an existing Google Drive connector configured in Glean.
  • You must have access to the Google Cloud Console to enable the required APIs and configure OAuth credentials.
  • The Google Drive API must be enabled in the Google Cloud project linked to your Google tools configuration.

Administrator steps

  1. Enable the tools: In Glean, go to Admin consolePlatform → Tools and add Google Docs extension tools from the template library.
  2. Select the connector instance: Link the tools to your existing Google Drive connector instance.
  3. Configure authentication: Google Docs tools use OAuth user authentication.
    • Central: Use the Glean-managed Google OAuth app when it is available in your environment.
    • Custom OAuth app: If using a customer-managed app, register it in the Google Cloud Console, enable the Google Drive API, configure the OAuth consent screen, and enter the client credentials in Glean.
  4. Save the tools after authentication is complete.
  5. Enable the pack for users: Use Edit settings under Enable Tools to make the pack available to the relevant users and supported Glean surfaces.
note

Google Docs tools use OAuth user authentication exclusively. Domain-wide Delegation is not supported for Google Docs extension tools.

For detailed setup steps, see Google tools setup.

FAQ