Skip to main content
Google Drive actions let an agent work with files and folders directly in a flow. An agent can upload, download, copy, share, list, and delete files, and create folders, then pass the results to later steps.

Supported actions

Prerequisites

Connect a Google OAuth credential in Credential Management, then select it on every Google Drive action. To set up the OAuth client, follow the Google Cloud Console setup guide. These actions also support end user authentication, so a step can act on each user’s own Drive.

How to use these actions

  • Map text inputs from earlier steps. Inputs such as File Name, File ID, and Query accept a value mapped from a previous step.
  • Selections and toggles take fixed values. The Role, Permission Type, and File Return Mode selections, the Include Trashed and Send Notification Email toggles, and Max Results are entered directly rather than mapped from a previous step.
  • File content is base64 encoded. Pass uploaded file content as a base64 encoded string in File Content Base64.
  • Leave a parent folder empty for the root. When a parent folder input is empty, the file or folder is placed in the root of the Drive.
  • List filters with query syntax. The List action filters with Google Drive query syntax, such as name contains 'report'.

Actions

File

Google Drive File Upload

Uploads a new file to Drive.

Google Drive File Download

Downloads a file from Drive.

Google Drive File Copy

Copies an existing file.

Google Drive File Share

Shares a file with a person or creates a public link.

Google Drive File List

Lists files in Drive.

Google Drive File Delete

Deletes a file from Drive.

Folder

Google Drive Folder Create

Creates a new folder.

Example

An agent that files a generated report into Drive and shares it:
1

Create a folder

A Google Drive Folder Create action makes a folder named for the reporting period and returns its ID.
2

Upload the report

A Google Drive File Upload action sets File Name and File Content Base64 from the generated report, sets Content Type to application/pdf, and maps Parent Folder ID to the folder from the previous step.
3

Share it

A Google Drive File Share action maps File ID to the uploaded file, sets Email Address to the recipient, and sets Role to reader.

Troubleshooting

The File ID or Parent Folder ID does not exist or the connected account cannot see it. Confirm the item is owned by or shared with the authenticated user.
File Content Base64 must be a valid base64 encoded string. Encode the file content before mapping it into the action.
The Permission Type and Email Address combination is not valid. A user or group permission needs an email address, while anyone creates a public link with no email address.
The Google OAuth credential expired or was revoked. Reconnect the credential and confirm the OAuth client grants Drive access.
For issues common to every vendor, see the Actions overview.