Google Drive

App · File Storage · 22 actions · 1 trigger

Search, read, upload, and manage files in Google Drive.

Triggers

Start a workflow when something happens in Google Drive. See how triggers work.

Google Drive New File

Triggers when a new file is added to Google Drive.

Filters

Narrow which events start a run.

folder_id
mime_type
name_pattern

Event fields

What a run starts with. Later steps read each field with an @ reference.

idtext
nametext
mime_typetext
created_timetext
modified_timetext
web_view_linktext

Actions

ActionWhat it does
Create file from textSave text as a new file in Drive, such as a summary, a note or a log, as a plain text file or a Google Doc, and return a link to it.
Create folderCreate a folder and return a link to it.
Create shared driveMake a shared drive, a drive a team owns together rather than one person.
Delete fileMove a file to the Google Drive trash.
Delete folderMove a folder, and everything in it, to the Google Drive trash.
Delete shared driveDelete an empty shared drive for good.
Download fileSave a copy of a Drive file, from its link, for later steps to attach or upload elsewhere.
Duplicate fileDuplicate a file in its own folder and return a link to the duplicate.
Export fileSave a Google Doc, Sheet or Slides presentation as a PDF, Word, Excel, PowerPoint, CSV or text file, for later steps to attach or upload elsewhere.
Get shared driveRead a shared drive's name, color and link.
List shared drivesList the shared drives you're a member of, with their links.
List who has accessList everyone who can open a file or folder, and what each can do: people, groups, a whole organization, or anyone with the link.
Move fileMove a file to a different folder.
Read fileRead the text of a Google Doc, presentation, spreadsheet's first tab, PDF, Word document or text file, so later steps can use it.
Remove accessStop someone being able to open a file or folder, by their email address, or turn off link sharing, or both.
Rename fileGive a file or folder a new name.
Replace fileUpload new contents for a file already in Drive, keeping its name, link, sharing and folder; Drive keeps the old contents as an earlier version.
Search filesFind files by words in their names or indexed contents, across My Drive and shared drives.
Share by linkLet anyone with the link open a file or folder, and get the link to send.
Share fileGive someone access to a file or folder by their email address.
Update shared driveRename a shared drive or change its color.
Upload fileUpload a file to Drive and return a link to it.

Create file from text

Save text as a new file in Drive, such as a summary, a note or a log, as a plain text file or a Google Doc, and return a link to it.

Inputs

File namenametextRequired
The new file's name. For a text file, end it in .txt so it opens as one.
TexttexttextRequired
What to put in the file.
Folderfolder_urltext
The Google Drive folder to put it in. Leave blank for My Drive.
Make it a Google Docas_google_doctrue/false
Turn on to make a Google Doc instead of a plain text file.Default: false.

Outputs

file_idtext
Its id, for a Google Docs step when it's a Google Doc
file_linktext
A link to the new file
nametext
Its name
Example output
{
  "file_id": "abc123",
  "file_link": "https://drive.google.com/file/d/abc123/view",
  "name": "Call summary.txt"
}

Create folder

Create a folder and return a link to it.

Inputs

Folder namefolder_nametextRequired
The name of the folder to create.
Parent folderparent_folder_urltext
The folder to create the new folder in: pick one, or paste its link. Leave empty for the top of My Drive.
Use the folder if it already existsreuse_existingtrue/false
Beta. Turn on to get the link to a folder with this name that is already there, instead of making a second one, such as one folder per customer or sender.Default: false.

Outputs

Response envelope; the payload is in the "folder_link" field.

folder_linktext
A link to the created folder
Example output
{
  "folder_link": "https://drive.google.com/drive/folders/newfolder123"
}

Create shared drive

Make a shared drive, a drive a team owns together rather than one person. Only Google Workspace accounts that are allowed to make shared drives can.

Inputs

NamenametextRequired
What to call the shared drive, such as Client projects.

Outputs

colortext
Its color, as a color code such as #4285F4.
created_timetext
When it was made.
hiddentrue/false
Whether it's hidden from your list of shared drives.
idtext
The shared drive's ID.
linktext
A link that opens it in Drive.
nametext
The shared drive's name.
Example output
{
  "color": "#4285F4",
  "created_time": "2026-11-30T10:00:00.000Z",
  "hidden": false,
  "id": "0ABcdEFgh1234Uk9PVA",
  "link": "https://drive.google.com/drive/folders/0ABcdEFgh1234Uk9PVA",
  "name": "Client projects"
}

Delete file

Move a file to the Google Drive trash. It can be restored from the trash for 30 days, after which Google deletes it for good.

Inputs

Filefile_urltextRequired
The Google Drive URL of the file to move to the trash.

Outputs

Response envelope; the payload is in the "deleted" field.

deletedtrue/false
Whether the file was moved to the trash
Example output
{
  "deleted": true
}

Delete folder

Move a folder, and everything in it, to the Google Drive trash. It can be restored from the trash for 30 days. A file's link is refused; use Delete file for a file.

Inputs

Folderfolder_urltextRequired
The folder to move to the trash: pick one, or paste its link.

Outputs

deletedtrue/false
Whether the folder was moved to the trash.
folder_idtext
The ID of the folder moved to the trash.
nametext
The folder's name.
Example output
{
  "deleted": true,
  "folder_id": "1Y1Z6cFr9abcDEF",
  "name": "Old invoices"
}

Delete shared drive

Delete an empty shared drive for good. Google refuses one that still has files in it, so move or delete them first.

Inputs

Shared driveshared_drivetextRequired
The shared drive: its link, or its ID as List shared drives gives it.

Outputs

deletedtrue/false
Whether the shared drive was deleted.
shared_drive_idtext
The ID of the shared drive deleted.
Example output
{
  "deleted": true,
  "shared_drive_id": "0ABcdEFgh1234Uk9PVA"
}

Download file

Save a copy of a Drive file, from its link, for later steps to attach or upload elsewhere. To use its text instead, use Read file.

Inputs

Filefile_urltextRequired
The sharing URL of the Google Drive file.

Outputs

content_typetext
document_reftext
The saved file, to pass to a later step that takes a file (an email attachment, an AI step's files).
filenametext
size_bytesnumber
Example output
{
  "content_type": "application/pdf",
  "document_ref": "doc_0123456789abcdef0123456789abcdea",
  "filename": "downloaded_file.txt",
  "size_bytes": 1024
}

Duplicate file

Duplicate a file in its own folder and return a link to the duplicate.

Inputs

Filefile_urltextRequired
The Google Drive URL of the file to duplicate.
Destination folderdestination_folder_urltext
The folder to put the copy in: pick one, or paste its link. Leave empty to keep it beside the original.
New namenew_nametext
The name for the copy.

Outputs

Response envelope; the payload is in the "duplicate_link" field.

duplicate_linktext
A link to the duplicated file
Example output
{
  "duplicate_link": "https://drive.google.com/file/d/xyz789/view"
}

Export file

Save a Google Doc, Sheet or Slides presentation as a PDF, Word, Excel, PowerPoint, CSV or text file, for later steps to attach or upload elsewhere. Up to 10 MB. For files that aren't Google files, use Download file.

Inputs

Filefile_urltextRequired
The Google Drive link of the Google Doc, Sheet or Slides presentation.
Save asfile_formattext
The kind of file to make. A Doc can be a PDF, Word or text file; a Sheet a PDF, Excel or CSV file (its first tab); a presentation a PDF, PowerPoint or text file.One of: pdf, word (Word document (.docx)), excel (Excel spreadsheet (.xlsx)), powerpoint (PowerPoint (.pptx)), csv, text (Plain text). Default: pdf.

Outputs

content_typetext
The saved file's type
document_reftext
The saved file, to pass to a later step that takes a file (an email attachment, an AI step's files).
filenametext
The saved file's name
size_bytesnumber
Its size in bytes
Example output
{
  "content_type": "application/pdf",
  "document_ref": "doc_0123456789abcdef0123456789abcdeb",
  "filename": "Quarterly report.pdf",
  "size_bytes": 20480
}

Get shared drive

Read a shared drive's name, color and link.

Inputs

Shared driveshared_drivetextRequired
The shared drive: its link, or its ID as List shared drives gives it.

Outputs

colortext
Its color, as a color code such as #4285F4.
created_timetext
When it was made.
hiddentrue/false
Whether it's hidden from your list of shared drives.
idtext
The shared drive's ID.
linktext
A link that opens it in Drive.
nametext
The shared drive's name.
Example output
{
  "color": "#4285F4",
  "created_time": "2026-11-30T10:00:00.000Z",
  "hidden": false,
  "id": "0ABcdEFgh1234Uk9PVA",
  "link": "https://drive.google.com/drive/folders/0ABcdEFgh1234Uk9PVA",
  "name": "Client projects"
}

List shared drives

List the shared drives you're a member of, with their links. Gets one page; to see more, run it again with the next page it gives.

Inputs

Name containsname_containstext
Only shared drives whose name has these words. Leave empty for all.
Page sizepage_sizenumber
Shared drives per page, from 1 to 100.From 1 to 100. Default: 50.
Next pagepage_tokentext
The next page an earlier list gave, to see more.

Outputs

countnumber
How many shared drives this page holds.
next_page_tokentext
The next page to ask for. Empty when there are no more.
shared_driveslist
The shared drives on this page.
Example output
{
  "count": 1,
  "next_page_token": "",
  "shared_drives": [
    {
      "color": "#4285F4",
      "created_time": "2026-11-30T10:00:00.000Z",
      "hidden": false,
      "id": "0ABcdEFgh1234Uk9PVA",
      "link": "https://drive.google.com/drive/folders/0ABcdEFgh1234Uk9PVA",
      "name": "Client projects"
    }
  ]
}

List who has access

List everyone who can open a file or folder, and what each can do: people, groups, a whole organization, or anyone with the link.

Inputs

File or folderfile_urltextRequired
The Google Drive link of the file or folder.

Outputs

countnumber
peoplelist
Example output
{
  "count": 2,
  "people": [
    {
      "access": "owner",
      "email": "owner@example.com",
      "inherited": false,
      "name": "Avery Owner",
      "type": "user",
      "who": "owner@example.com"
    },
    {
      "access": "can view",
      "email": "",
      "inherited": false,
      "name": "",
      "type": "anyone",
      "who": "Anyone with the link"
    }
  ]
}

Move file

Move a file to a different folder.

Inputs

Filefile_urltextRequired
The Google Drive URL of the file to move.
Destination folderdestination_folder_urltextRequired
The folder to move the file to: pick one, or paste its link.

Outputs

Response envelope; the payload is in the "file_link" field.

file_linktext
A link to the moved file
Example output
{
  "file_link": "https://drive.google.com/file/d/abc123/view"
}

Read file

Read the text of a Google Doc, presentation, spreadsheet's first tab, PDF, Word document or text file, so later steps can use it. Use a link from Search files or a sharing link. Does not change the file. To keep the file itself, use Download file. Up to 10 MB. A long text is read in parts: to read on, run it again from where it stopped.

Inputs

Filefile_urltextRequired
File link from Search files or a Google Drive sharing link.
Max charsmax_charsnumber
Maximum characters to return, from 1 to 100000. Only the first 30,000 are read unless you raise this, so set 100000 when something needs the whole of a long document, such as a contract to summarize.From 1 to 100000. Default: 30000.
Start fromoffsetnumber
Where in the text to start reading, as a character count. To read on, use where an earlier read stopped.At least 0. Default: 0.

Outputs

idtext
mime_typetext
nametext
next_offsetnumber
notetext
texttext
truncatedtrue/false
web_view_linktext
Example output
{
  "id": "qa-file",
  "mime_type": "text/plain",
  "name": "Security policy.txt",
  "next_offset": null,
  "note": "",
  "text": "Staff use multifactor authentication.",
  "truncated": false,
  "web_view_link": "https://drive.google.com/file/d/qa-file/view"
}

Remove access

Stop someone being able to open a file or folder, by their email address, or turn off link sharing, or both. Someone who has no access already is left as they are. The owner can't be removed.

Inputs

File or folderfile_urltextRequired
The Google Drive link of the file or folder.
Emailemailtext
The email address of the person or group to remove. Leave blank to only turn off link sharing.
Turn off link sharinglink_sharingtrue/false
Turn on to also stop anyone with the link opening it.Default: false.

Outputs

countnumber
removedlist
Whose access was removed; empty when they had none
Example output
{
  "count": 1,
  "removed": [
    "someone@example.com"
  ]
}

Rename file

Give a file or folder a new name.

Inputs

File or folderfile_urltextRequired
The Google Drive link of the file or folder to rename.
New namenew_nametextRequired
The new name, with the file's ending if it has one (such as .pdf).

Outputs

file_linktext
A link to the renamed file or folder
nametext
Its new name
Example output
{
  "file_link": "https://drive.google.com/file/d/abc123/view",
  "name": "Invoice 42 (paid).pdf"
}

Replace file

Upload new contents for a file already in Drive, keeping its name, link, sharing and folder; Drive keeps the old contents as an earlier version. For uploaded files such as PDFs and Word documents, not Google Docs, Sheets or Slides.

Inputs

File to replacefile_urltextRequired
The Google Drive link of the file to replace.
New filefile_pathtextRequired
The file with the new contents, chosen with the file picker or from an earlier step.
File typemime_typetext
The new file's format, for example 'application/pdf'. Leave blank to keep the file's own type.

Outputs

file_linktext
A link to the file, the same as before
nametext
Its name
Example output
{
  "file_link": "https://drive.google.com/file/d/abc123/view",
  "name": "Price list.pdf"
}

Search files

Find files by words in their names or indexed contents, across My Drive and shared drives. No file link is needed. Returns file names and links; use Read file to answer questions from their contents. Gets one page; to see more, run it again with the next page it gives.

Inputs

Queryquerytext
Words to find in file names or contents. All words must match. Leave empty to list recent files.
Folderfolder_urltext
The folder to search only the files directly in: pick one, or paste its link. Leave empty to search across Drive.
Page sizepage_sizenumber
Files per page, from 1 to 100.From 1 to 100. Default: 25.
Next pagepage_tokentext
The next page an earlier search with the same words gave, to see more results.

Outputs

fileslist
incomplete_searchtrue/false
True when Drive could not search every shared drive. Narrow to a folder before claiming no matching files exist.
next_page_tokentext
Empty when there are no more pages.
Example output
{
  "files": [
    {
      "description": "Company security policy",
      "id": "qa-file",
      "mime_type": "text/plain",
      "modified_time": "2026-01-01T00:00:00Z",
      "name": "Security policy.txt",
      "web_view_link": "https://drive.google.com/file/d/qa-file/view"
    }
  ],
  "incomplete_search": false,
  "next_page_token": ""
}

Let anyone with the link open a file or folder, and get the link to send. The file doesn't show up in searches. Some organizations don't allow sharing outside them; Google then refuses.

Inputs

File or folderfile_urltextRequired
The Google Drive link of the file or folder to share.
Accessaccesstext
What anyone with the link can do with it.One of: view (Can view), comment (Can comment), edit (Can edit). Default: view.

Outputs

accesstext
What they can do: view, comment or edit
linktext
The link to send: anyone with it can open the file
Example output
{
  "access": "view",
  "link": "https://drive.google.com/file/d/abc123/view?usp=sharing"
}

Share file

Give someone access to a file or folder by their email address. Sharing a folder shares everything in it.

Inputs

File or folderfile_urltextRequired
The Google Drive link of the file or folder to share.
EmailemailtextRequired
The email address of the person to share with.
Accessaccesstext
What they can do with it.One of: view (Can view), comment (Can comment), edit (Can edit). Default: view.
Email themnotifytrue/false
Send them Google's email saying it was shared. Turn off to share without telling them; someone without a Google account can only be shared with by email.Default: true.

Outputs

accesstext
What they can do: view, comment or edit
emailtext
Who it was shared with
linktext
A link to the shared file or folder, to send to the person
Example output
{
  "access": "view",
  "email": "someone@example.com",
  "link": "https://drive.google.com/drive/folders/newfolder123"
}

Update shared drive

Rename a shared drive or change its color. Only what you fill in changes.

Inputs

Shared driveshared_drivetextRequired
The shared drive: its link, or its ID as List shared drives gives it.
New namenametext
A new name for the shared drive.
Colorcolortext
A new color, as a color code such as #4285F4.

Outputs

colortext
Its color, as a color code such as #4285F4.
created_timetext
When it was made.
hiddentrue/false
Whether it's hidden from your list of shared drives.
idtext
The shared drive's ID.
linktext
A link that opens it in Drive.
nametext
The shared drive's name.
Example output
{
  "color": "#4285F4",
  "created_time": "2026-11-30T10:00:00.000Z",
  "hidden": false,
  "id": "0ABcdEFgh1234Uk9PVA",
  "link": "https://drive.google.com/drive/folders/0ABcdEFgh1234Uk9PVA",
  "name": "Client projects"
}

Upload file

Upload a file to Drive and return a link to it.

Inputs

Filefile_pathtextRequired
The file to upload: upload one here, or use a file an earlier step saved, by giving that step's document_ref (such as the document_ref from PandaDoc's 'Download a document' or an email attachment). Despite the name, this is not a path on a computer or a link.
Folderfolder_urltext
The folder to upload the file to: pick one, or paste its link. Left out, the file goes to the top of My Drive, so when the request names a folder ("our contracts folder") write this as "" and the person is asked to pick it.
File namefile_nametext
What to call the file in Drive, with its ending, such as Acme contract (signed).pdf. Leave empty to keep the file's own name.

Outputs

Response envelope; the payload is in the "upload_link" field.

upload_linktext
A link to the uploaded file
Example output
{
  "upload_link": "https://drive.google.com/file/d/abc123/view"
}

On this page