Zum Inhalt springen
DeutschlandGPT

Google Drive

Search, upload, and manage files in Google Drive from workflows

Connect Google Drive to search, upload, and manage files from your workflows.

Authentication: OAuth 2.0. Connect your Google account on the integrations page. Uses the same Google connection as other Google services.

Actions

Search Files

Searches for files in Google Drive.

InputRequiredDescription
QueryYesSearch query (supports Drive query syntax, e.g. name contains 'report')
OutputTypeDescription
filesarrayMatching file objects with id, name, mimeType, webViewLink

Get File

Downloads a file as a file other nodes can use. Google Docs, Sheets and Slides have no file of their own and are exported: to Word, Excel or PowerPoint by default, or to PDF. Files up to 100 MB (Google limits an export to 10 MB).

InputRequiredDescription
FileYesGoogle Drive file ID
Export Google Docs asNooffice (default) or pdf
OutputTypeDescription
fileWorkflowFileThe downloaded or exported file
fileNamestringFile name
mimeTypestringMIME type in Drive
sizenumberSize in bytes

Upload File

Uploads a file to Google Drive.

InputRequiredDescription
FileYesThe file to upload
File NameYesName to give the file in Drive
Parent Folder IDNoID of the folder to upload into (defaults to root)
MIME TypeNoFile type (inferred from file if not specified)
OutputTypeDescription
fileIdstringID of the uploaded file
webViewLinkstringURL to view the file

Copy File

Creates a copy of an existing file.

InputRequiredDescription
File IDYesFile to copy
NameNoName for the copy
Parent Folder IDNoTarget folder
OutputTypeDescription
fileIdstringID of the new copy

Create Folder

Creates a new folder in Google Drive.

InputRequiredDescription
NameYesFolder name
Parent Folder IDNoParent folder (defaults to root)
OutputTypeDescription
folderIdstringID of the created folder

Get Folder

Retrieves a folder by ID.

InputRequiredDescription
Folder IDYesFolder ID
OutputTypeDescription
folderobjectFolder info

List Files in Folder

Lists files within a specific folder.

InputRequiredDescription
Folder IDYesID of the folder to list
OutputTypeDescription
filesarrayFile objects in the folder

Get File Metadata

Returns detailed metadata for a file (same as Get File but emphasizes metadata fields).

InputRequiredDescription
File IDYesFile ID
OutputTypeDescription
metadataobjectDetailed file metadata

Get Recent Files

Returns recently modified files.

OutputTypeDescription
filesarrayRecently modified file objects

Get Current User

Returns information about the authenticated Google account.

OutputTypeDescription
userobjectUser info with email, displayName
Was this page helpful?