Skip to main content

Google Drive Operations Reference

Orkes Conductor integrates with Google Drive to let you interact with your files, folders, and shared drives directly from workflows. Once you configure the Google Drive integration, you can use the following operations to upload, download, create, move, search, share, and delete content in Google Drive, without leaving your workflow.

This page covers the parameters and expected output for each operation available in the Google Drive integration.

Create Folder

Create a folder in Drive, optionally under a parent folder. Use this to organize artifacts or create per-run directories.

ParameterDescriptionTypeRequired/Optional
NameThe name of the folder to be created.stringRequired.
Parent Folder IdThe ID of the parent folder under which the new folder will be created. If left empty/blank, it falls back to the default folder provided in the integration.
To get the folder ID, open the folder in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<FOLDER-ID>?ths=true.
stringOptional.

Delete Folder

Delete a folder in Drive. Use this when cleaning up obsolete directories. This is a permanent delete; the folder is removed directly from Google Drive without being moved to the trash.

ParameterDescriptionTypeRequired/Optional
Folder IDThe ID of the folder to be deleted.
To get the folder ID, open the folder in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<FOLDER-ID>?ths=true.
stringRequired.

Share Folder

Share a folder with a user. Use this when you need to grant access to folder contents.

ParameterDescriptionTypeRequired/Optional
Folder IDThe ID of the folder to share.
To get the folder ID, open the folder in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<FOLDER-ID>?ths=true.
stringRequired.
Email AddressThe email address of the user to share the folder with.stringRequired.
RoleThe access role. Supported values:
  • reader
  • commenter
  • writer
stringOptional.
Send Notification EmailWhether to send a notification email to the user.booleanOptional.
Email MessageA message to include in the notification email.stringOptional.

Upload File from Base64

Upload a file from base64-encoded content into Drive. Use this to persist generated PDFs, text reports, or other artifacts to a folder.

ParameterDescriptionTypeRequired/Optional
NameThe name of the file to be created.stringRequired.
Mime TypeThe MIME type of the file. For example, application/pdf.
For a full list, refer to the Google Drive MIME types documentation.
stringOptional.
Base64 ContentThe base64-encoded content of the file to upload.
To encode a file to base64, you can use tools such as a command-line utility (base64 on macOS/Linux, certutil on Windows), an online encoder, or a programming language of your choice (for example, Python's base64 module or JavaScript's btoa() function).
stringRequired.
Parent Folder IdThe ID of the folder to upload the file into. If left empty/blank, it falls back to the default folder provided in the integration.
To get the folder ID, open the folder in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<FOLDER-ID>?ths=true.
stringOptional.

Download File Base64

Download file content as base64 by file ID. Use this to feed file contents into LLM tools or other binary-capable systems.

ParameterDescriptionTypeRequired/Optional
File IdThe ID of the file to download.
To get the file ID, open the file in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/file/d/<FILE-ID>/view.
stringRequired.

Create File From Text

Create a new file in Drive from plain text content. Use this when you want to store generated text as a file.

ParameterDescriptionTypeRequired/Optional
NameThe name of the file to be created.stringRequired.
TextThe plain text content to place in the file.stringOptional.
Mime TypeThe MIME type of the file. Default is text/plain.stringOptional.
Parent Folder IDThe ID of the folder where the file will be created. If left empty/blank, it falls back to the default folder provided in the integration.
To get the folder ID, open the folder in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<FOLDER-ID>?ths=true.
stringOptional.

Create Google Doc

Create a Google Doc with a title and plain text content. Use this to quickly spin up a doc from text generated by an LLM or workflow.

ParameterDescriptionTypeRequired/Optional
TextThe plain text content to place in the Google Doc.stringOptional.
TitleThe title of the Google Doc.stringRequired.
Parent Folder IdThe ID of the folder where the Google Doc will be created. If left empty/blank, it falls back to the default folder provided in the integration.
To get the folder ID, open the folder in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<FOLDER-ID>?ths=true.
stringOptional.

Copy File

Copy a file in Google Drive. Use this when you need a duplicate for templating or safe edits.

ParameterDescriptionTypeRequired/Optional
File IDThe ID of the file to copy.
To get the file ID, open the file in Google Drive. The ID is the string of characters at the end of the URL: https://docs.google.com/document/d/<YOUR-DOC-ID>.
stringRequired.
New NameA new name for the copied file.stringOptional.
Parent Folder IDThe ID of the folder to copy files into. If left empty/blank, it falls back to the default folder provided in the integration.
To get the folder ID, open the folder in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<FOLDER-ID>?ths=true.
stringOptional.

Update File

Update a file's metadata or content. Use this when you need to rename or overwrite a file.

ParameterDescriptionTypeRequired/Optional
NameUpdated name of the file.stringOptional.
Mime TypeThe mime type of the updated file.stringOptional.
File IDThe ID of the file to be updated.
To get the file ID, open the file in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/file/d/<FILE-ID>/view.
stringRequired.
Base 64 ContentThe base64-encoded content to be updated.
To encode a file to base64, you can use tools such as a command-line utility (base64 on macOS/Linux, certutil on Windows), an online encoder, or a programming language of your choice (for example, Python's base64 module or JavaScript's btoa() function).
stringOptional.

Move File

Move a file to another folder. Use this when you need to reorganize Drive contents.

ParameterDescriptionTypeRequired/Optional
File IDThe ID of the file to move.
To get the file ID, open the file in Google Drive. The ID is the string of characters at the end of the URL: https://docs.google.com/document/d/<YOUR-DOC-ID>.
stringRequired.
Destination Folder IDThe folder ID of the destination folder to which the file is to be moved. If left empty/blank, it falls back to the default folder provided in the integration.
To get the folder ID, open the folder in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<FOLDER-ID>.
stringOptional.

Share File

Share a file with a user. Use this when you need to grant access to Drive files.

ParameterDescriptionTypeRequired/Optional
File IDThe ID of the file to share.
To get the file ID, open the file in Google Drive. The ID is the string of characters at the end of the URL: https://docs.google.com/document/d/<YOUR-DOC-ID>.
stringRequired.
Email AddressThe email address of the user to share the file with.stringRequired.
RoleThe access role. Supported values:
  • reader
  • commenter
  • writer
stringOptional.
Send Notification EmailWhether to send a notification email to the user.booleanOptional.
Email MessageA message to include in the notification email.stringOptional.

List Files

List files matching an optional Drive query and/or restricted to a parent folder. Use this to locate documents for downstream tools.

ParameterDescriptionTypeRequired/Optional
QueryThe Drive query to filter files. For example, mimeType='application/pdf'.
Leave empty to list all the files.
stringOptional.
Page SizeThe number of files to return per page.integerRequired.
Parent Folder IdThe ID of the folder to list files from. If left empty/blank, it falls back to the default folder provided in the integration.
To get the folder ID, open the folder in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<FOLDER-ID>?ths=true.
stringOptional.

Delete File

Delete a file by file ID. Use this when cleaning up temporary content or obsolete artifacts. This is a permanent delete; the file is removed directly from Google Drive without being moved to the trash.

ParameterDescriptionTypeRequired/Optional
File IdThe ID of the file to delete.
To get the file ID, open the file in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/file/d/<FILE-ID>/view.
stringRequired.

Search Files and Folders

Search files and folders in Google Drive. Use this when you need a quick filtered list.

ParameterDescriptionTypeRequired/Optional
QueryThe Drive query string to filter files and folders. For example, mimeType='application/pdf' or name='report.pdf'. Leave empty to return all files.
For supported query fields and operators, refer to the Google Drive query string documentation.
stringOptional.
Page SizeThe number of results to return per page.integerOptional.
Parent Folder IDThe ID of the folder to search in. If left empty/blank, it falls back to the default folder provided in the integration.
To get the folder ID, open the folder in Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<FOLDER-ID>?ths=true.
stringOptional.

Create Shared Drive

Create a shared drive. Use this when you need a shared workspace for a team.

ParameterDescriptionTypeRequired/Optional
NameThe name of the shared drive.stringRequired.
Request IDA unique request ID for idempotency. Auto-generated if left empty.stringOptional.

Update Shared Drive

Update shared drive metadata. Use this when you need to rename a shared drive.

ParameterDescriptionTypeRequired/Optional
Drive IDThe ID of the shared drive to update.
To get the drive ID, open the shared Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<YOUR-DRIVE-ID>?ths=true.
stringRequired.
NameThe updated name of the drive.stringRequired.

Get Shared Drive

Retrieve a shared drive by ID. Use this when you need shared drive metadata.

ParameterDescriptionTypeRequired/Optional
Drive IDThe ID of the shared drive to retrieve.
To get the drive ID, open the shared Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<YOUR-DRIVE-ID>?ths=true.
stringRequired.

Get Many Shared Drives

List shared drives available to the user. Use this when you need to enumerate team drives.

ParameterDescriptionTypeRequired/Optional
Page SizeThe maximum number of shared drives to return.integerOptional.
Page TokenThe page token for pagination. To paginate through results, pass the nextPageToken value from a previous response into this field.stringOptional.

Delete Shared Drive

Deletes a shared drive. Use this when decommissioning a team workspace. The drive must be empty before deletion.

ParameterDescriptionTypeRequired/Optional
Drive IDThe ID of the shared drive to delete.
To get the drive ID, open the shared Google Drive. The ID is the string of characters at the end of the URL: https://drive.google.com/drive/u/0/folders/<YOUR-DRIVE-ID>?ths=true.
stringRequired.