Skip to main content

Google Drive

Google Drive is a cloud storage and file-sharing platform that allows you to share your work online and access documents from anywhere.

Google Drive is a popular integration with Tonkean as both a file storage provider and data source, as Tonkean can be assigned both read and write permissions, allowing you to create and update files in your Google Drive as part of your module workflows.

Authenticate with Google Drive

To authenticate with Google Drive, follow the steps below:

  1. Select the main nav icon, grid.png, in the upper left and select Enterprise Components. The Enterprise Components screen displays.

  2. Select + New Data Source in the upper right.

    connect_data_sources_add_data_source.png
  3. Select Cloud Application from the dropdown. The Add New Data Source window displays.

    add_cloud_application.png
  4. Enter "Google Drive" in the search field, then select Google Drive. The New Google Drive Connection window displays.

    add_data_source_select.png
  5. Select Create a new connection. The Set Up Google Drive window displays.

    new_gdrive_connection_select.png
  6. You have two options for authenticating with Google Drive:

    OAuth - Log in with your Google account username and password:

    1. Set Integration permissions:

      • Read/Write - Tonkean can both read, edit, and update your files and folders.

      • Read Only - Tonkean can only read your files and folders.

      Select the Include file content checkbox to allow AI integrations, like those that power the AI Front Door, to access the contents of the connected folders and retrieve requested data. The supported Google file types are Documents, Spreadsheets, and Presentations; other file types supported are DOCX, PPTX, XLSX, and PDF.

    2. Select OAuth and then select Authenticate with Google Drive. A Sign In window displays.

      set_up_gdrive_oauth.png
    3. Select the Google account you want to connect to, confirm the desired permissions are displayed, then Allow Tonkean access to that account.

      oauth_read_write_perms.png

    Service Account - Log in using your Google service account credentials:

    When available, we recommend using a service account to authenticate. Service accounts make your data source connections less susceptible to interruptions or other problems if roles change in your organization.

    1. If you don't already have a service account, create a Google service account and create credentials for the account.

    2. Select Service Account and enter the JSON credentials for your account.

      Enter the entire body of the JSON credentials file into the JSON credentials field.

      set_up_service_account_json_creds.png

      Select the Include file content checkbox to allow AI integrations, like those that power the AI Front Door, to access the contents of the connected folders and retrieve requested data. The supported Google file types are Documents, Spreadsheets, and Presentations; other file types supported are DOCX, PPTX, XLSX, and PDF.

    3. When finished, select Connect.

Select Drive and Folder to Connect

After authenticating with Google Drive, select which drive to connect and which folders within that drive.

  1. Select a drive. The contents of the selected drive display.

    set_up_select_drive.png
  2. Select the folder to connect, this select Use this Folder.

    set_up_select_folder.png

    If the folder contains inner folders, you can select an inner folder to connect.

Monitor Google Drive as an Intake Source

You can connect Google Drive as a module intake source and monitor a folder for new files and file updates:

  1. After creating a new module, select the item tile. The Item Details panel displays.

    item_request_tile_select.png
  2. In the Select Intake Source section, select External Data Source. The Select Data Source section displays.

    intake_source_ext_data_source_select.png
  3. Select the Google Drive data source you want to connect as the intake source. The connection configuration screen displays.

    select_intake_source_gdrive.png
  4. Select the entity you want to collect, where relevant.

    gdrive_intake_source_select_entity.png
  5. By default, Tonkean collects all entities of the selected type. If you want to filter the entities the module monitors, configure the conditions for the conditions group.

    When setting up a new intake source, we recommend always adding a custom filter instead of monitoring all entities of the selected type. This ensures there's a smaller amount of data to monitor and respond to. For example, configuring the filter to monitor files whose name matches a certain string (such as the purchase requester) is a good place to start.

    gdrive_intake_source_conditions.png
  6. Select who to set as the creator of the items synced from the data source:

    • The default actor of this module - The module actor, configured in the module settings. For more information about configuring the module actor, see Configure Module Settings.

      item_creator_default_actor.png
    • Specific person - Select a specific user from your board.

      item_creator_specific_person.png
    • Custom email - Enter a custom email. Enter the email address manually or dynamically create the address by selecting the insert field button, insert_field.png, and using existing fields from your module.

      item_creator_custom_email.png
  7. Select how to handle item deletion in the data source:

    • Delete the corresponding Tonkean item from the module - Delete the item that corresponds with the data source record.

      item_deleted_delete.png
    • Keep the corresponding Tonkean item in the module - Keep the item when the corresponding data source record is deleted.

      We recommend this option for most workflows, as deleting existing items can cause processes to break and make your metrics less helpful.

      item_deleted_keep.png
  8. When finished, select Save in the upper right.

Your module is monitoring the specified Google Drive files/folder.

Troubleshoot Common Issues

There are some common issues you may encounter with a Drive integration. You can usually address these issues by confirming your Drive data source is connected and configured correctly, and understanding how Drive and Tonkean interact.

Not Able to Access Files, or Files Not Updating as Expected

When chaining together multiple Google Drive data source actions in a module, workflow logic can quickly become complex, especially if your organization has multiple Drive instances connected. The most common issue is being unable to access files as expected, or a file or folder not updating properly.

The most common cause of Tonkean being unable to access files is users selecting the wrong Drive instance or the wrong folder when configuring a data source action. To avoid this issue, confirm that you're action is working on the correct Google Drive data source or the correct folder.

The next most common cause of this issue is not accounting for the way file and folder structure changes over the course of your workflow. For example, if you have a Rename File/Folder action followed immediately by a Comment on File action, the latter action may be unable to locate the newly renamed file or folder, depending on network speed and processing time. The appropriate solution for this issue varies on your unique workflow, but it's helpful to keep in mind the dynamic nature of your Drive files and folders and carefully map out the lifecycle of your module item.