Skip to main content

Google actions setup

Use Google actions to let Glean Assistant and Agents export responses to Google Docs, Google Sheets, or as a draft in Gmail. With these actions, users can create documents and sheets with formatting preserved, or open a draft email in Gmail.

With this setup, you can:

  • Export assistant responses to Google Docs with formatting preserved.
  • Export tables to Google Sheets with headings preserved.
  • Export responses to Gmail as draft emails with formatting preserved.

Prerequisites

Before enabling Google actions:

  • The Google Drive datasource must be configured.
  • You must have admin access to the Glean Admin Console.
  • For Domain-wide Delegation: Google Workspace admin access to configure domain-wide delegation.
  • For custom OAuth: Sufficient permissions in Google Cloud Console to create OAuth credentials.

Setup instructions

Follow these steps to set up the Google action pack:

  1. In Glean, go to Admin Console → Platform → Actions.

  2. Click Add.

  3. From the list in the Add pre-set actions section, select Google Actions under Action templates.

  4. In the Configuration tab:

    1. Add the Instance Name.
    2. Select the Data Instance you want to link these actions to. This is the instance where docs and sheets will be created.
    3. Configure authentication. Google actions support two authentication modes, depending on how the actions are configured:
    • Domain‑wide Delegation (DWD): supported only when Google actions are configured to use a central service account that can act on behalf of users across the domain.
    • OAuth user authentication: used when Google actions run as the signed‑in user or on their behalf. The newer actions like Google Calendar, Google Docs, Google Sheets, and Gmail actions use OAuth user authentication and do not support Domain‑wide Delegation.

Choose an option below:

  1. Click Save.
  2. Click Edit settings under Enable Actions to control which users can use these actions in Glean Chat and Assistant.