Skip to content
Google Drive

How to use Google Drive

Content & filesCost: 1 credit per runTop 100 · #3Full guide

What it is for

The Google Drive component lets you create folders, upload and download files, share them and move them from inside a flooows flow. Common uses include archiving email attachments, generating documents from data, or starting a process whenever a new file lands in a folder.

The triggers (New File, New Folder and New or Updated File) are polling triggers: flooows checks the selected folder every few minutes, so a new file may take a short while to start the flow.

Set up the connection

Authentication type: OAuth 2.0 (sign in with your account) · Custom credentials

  1. 1Add a Google Drive step to your flow and click "Connect".
  2. 2Recommended (OAuth2): sign in with your Google account and allow access to Drive.
  3. 3Service account option: in Google Cloud Console open IAM & Admin > Service Accounts, create an account, add a new JSON key and paste its contents into "Service Account JSON Key".
  4. 4With a service account, share the folders you need with its email address, or set up Google Workspace domain-wide delegation and enter the user in "User Email".
  5. 5Give the connection a recognizable name and save it.
Connection fieldTypeRequired
Service Account JSON KeyLong textYes
User EmailTextNo

Credentials are stored encrypted in your isolated database, in Spain, and are never shown in plain text.

How to use it in a flow

  • Upload File: set "File Name" and map the "File" from a previous step (for example a Gmail attachment); choose the destination in "Parent Folder".
  • Create File from Text: type or map the "Content" and pick a "File Type" to create, for instance, a Google Doc from AI-generated text.
  • Find File or Folder: use "Search By", "Match" and "Search Text" to locate an item and reuse its ID in steps like Move File or Share File or Folder.
  • Share File or Folder: map the file ID, the "User Email" and the "Role" (reader, commenter or writer).
  • Turn on "Include Team Drives" when working with shared drives.

Tips

  • •Pick folders from the dropdowns instead of typing IDs by hand.
  • •Enable "Include File Content" on triggers only when you need to process the file, since it makes the payload larger.
  • •To turn a Google Doc into a PDF, use Save Document as PDF rather than downloading and converting.

Triggers (3)

Events that can start a flow. Expand each one to see its fields.

New FilePeriodic check3 fields
FieldTypeRequired
FolderList (from your account)No
Include Team DrivesYes / NoNo
Include File ContentYes / NoNo
New FolderPeriodic check2 fields
FieldTypeRequired
FolderList (from your account)No
Include Team DrivesYes / NoNo
New or Updated FilePeriodic check4 fields
FieldTypeRequired
FolderList (from your account)No
Include Team DrivesYes / NoNo
File TypesMulti-selectNo
Include File ContentYes / NoNo

Actions (17)

Operations available as flow steps. Expand each one to see its fields.

Create Folder3 fields
FieldTypeRequired
Folder NameTextYes
Parent FolderList (from your account)No
Include Team DrivesYes / NoNo
Create File from Text5 fields
FieldTypeRequired
File NameTextYes
ContentLong textYes
File TypeFixed listYes
Parent FolderList (from your account)No
Include Team DrivesYes / NoNo
Upload File4 fields
FieldTypeRequired
File NameTextYes
FileFileYes
Parent FolderList (from your account)No
Include Team DrivesYes / NoNo
Download File2 fields
FieldTypeRequired
File IDTextYes
File NameTextNo
Get File Information2 fields
FieldTypeRequired
File or Folder IDTextYes
Include Team DrivesYes / NoNo
List Files5 fields
FieldTypeRequired
Folder IDTextYes
Folder DepthNumberNo
Download FilesYes / NoNo
Include Team DrivesYes / NoNo
Include TrashedYes / NoNo
Find File or Folder6 fields
FieldTypeRequired
Search ByFixed listYes
MatchFixed listYes
Search TextTextYes
ShowFixed listNo
Search in FolderList (from your account)No
Include Team DrivesYes / NoNo
Duplicate File5 fields
FieldTypeRequired
File IDTextYes
New File NameTextYes
Destination Folder IDTextYes
Convert ToFixed listNo
Include Team DrivesYes / NoNo
Save Document as PDF4 fields
FieldTypeRequired
Document IDTextYes
Destination Folder IDTextYes
File NameTextYes
Include Team DrivesYes / NoNo
Share File or Folder5 fields
FieldTypeRequired
File or Folder IDTextYes
User EmailTextYes
RoleFixed listYes
Send Invitation EmailYes / NoYes
Include Team DrivesYes / NoNo
Remove Access3 fields
FieldTypeRequired
File or Folder IDTextYes
User EmailTextYes
RoleFixed listYes
Set Public Access2 fields
FieldTypeRequired
File or Folder IDTextYes
RoleFixed listYes
Move File3 fields
FieldTypeRequired
File IDTextYes
Destination FolderList (from your account)No
Include Team DrivesYes / NoNo
Delete File2 fields
FieldTypeRequired
File IDTextYes
Include Team DrivesYes / NoNo
Move File to Trash2 fields
FieldTypeRequired
File IDTextYes
Include Team DrivesYes / NoNo
Export Folder as Zip8 fields
FieldTypeRequired
FolderList (from your account)Yes
Include Team DrivesYes / NoNo
Google Docs AsFixed listYes
Google Sheets AsFixed listYes
Google Slides AsFixed listYes
Zip File NameTextYes
Use PasswordYes / NoNo
Password OptionsDynamic fieldsNo
Custom API Call10 fields
FieldTypeRequired
urlDynamic fieldsYes
MethodFixed listYes
HeadersKey / value pairsNo
Query ParametersKey / value pairsNo
Body TypeList (from your account)No
BodyDynamic fieldsNo
Response is BinaryYes / NoNo
Return Error as OutputYes / NoNo
TimeoutNumberNo
Follow redirectsYes / NoNo

Common errors

Folder or file not visible with a service account

Share the folder with the service account email, or fill in "User Email" with domain-wide delegation enabled.

Authorization error after some time

The token expired or access was revoked; reconnect the Google account.

File not found when moving or downloading

Check the ID is correct and enable "Include Team Drives" if the file lives in a shared drive.

Too many requests (quota limit)

Run the flow less often or add a delay between steps in large loops.

Field types

"List (from your account)" loads options from your connected account; "Dynamic fields" appear depending on earlier choices; in any field you can insert data from previous steps with the data selector (e.g. {{trigger.email}}). More about data between steps