Skip to main content
Google Actions

Create Google Docs, Sheets and Emails using Glean

A
Written by Anusha Jain
Updated today

Glean is launching Google Actions in Assistant. This feature will allow users to export any assistant response to Google Docs, Google Sheets and as a draft in Gmail.

Key Features

  1. Export to Google Docs: All assistant responses will have an option to export to google docs, clicking on which a google doc will be created containing the entire assistant response, with the formatting preserved.

  2. Export to Google Sheets: All tables generated in Google Assistant will have an option to Export to Google sheets, clicking on which a google sheet will be created containing the table response, with headings preserved.

  3. Export to Email: All assistant responses will have an option to export to email, clicking on which users will be taken to Gmail where they can view the assistant response as a draft email, with the formatting preserved.

Setup

Admins can enable this feature by going to Glean and navigating to Admin -> Actions

  1. Click on Add Action and select Google Actions

  2. Select the Google Drive datasource they want to link these actions to, this is the instance where docs/sheets would get created.

  3. Setup authentication.

Authentication Setup:

There is a new Service Account that is created only for the Google actions, which is separate from the service account used for Google Drive connector. The Client ID for this new service account for you should be visible in the Google actions setup instructions.

Google’s DWD allows Glean to act on behalf of the logged-in Glean user to create documents/sheets or emails. Only the 2 scopes limited to creating new documents/sheets and drafting new emails are to be added here.

Documents are created on behalf of the logged-in Glean user, stored in the user’s drive and respect the default org settings for a new document (generally this is: create with Restricted access, only visible to the user/creator of the document)

Setup Instructions

  1. Go to the Domain-wide Delegation section in Google Admin Console. You’ll need to be signed in as an admin.

  2. Click “Add new” and paste the 21-digit Unique ID from below into the Client ID field. Here is your Client ID:

    [Your client ID will be available inside the setup document in your Glean account]

  3. Copy and paste the following into the OAuth scopes (comma-delimited) field and then click Authorize: https://www.googleapis.com/auth/drive.file,https://www.googleapis.com/auth/gmail.compose

  4. That’s it, you can now save this Action pack to enable these actions.

Did this answer your question?