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
- 1Add a Google Drive step to your flow and click "Connect".
- 2Recommended (OAuth2): sign in with your Google account and allow access to Drive.
- 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".
- 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".
- 5Give the connection a recognizable name and save it.
| Connection field | Type | Required |
|---|---|---|
| Service Account JSON Key | Long text | Yes |
| User Email | Text | No |
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
| Field | Type | Required |
|---|---|---|
| Folder | List (from your account) | No |
| Include Team Drives | Yes / No | No |
| Include File Content | Yes / No | No |
New FolderPeriodic check2 fields
| Field | Type | Required |
|---|---|---|
| Folder | List (from your account) | No |
| Include Team Drives | Yes / No | No |
New or Updated FilePeriodic check4 fields
| Field | Type | Required |
|---|---|---|
| Folder | List (from your account) | No |
| Include Team Drives | Yes / No | No |
| File Types | Multi-select | No |
| Include File Content | Yes / No | No |
Actions (17)
Operations available as flow steps. Expand each one to see its fields.
Create Folder3 fields
| Field | Type | Required |
|---|---|---|
| Folder Name | Text | Yes |
| Parent Folder | List (from your account) | No |
| Include Team Drives | Yes / No | No |
Create File from Text5 fields
| Field | Type | Required |
|---|---|---|
| File Name | Text | Yes |
| Content | Long text | Yes |
| File Type | Fixed list | Yes |
| Parent Folder | List (from your account) | No |
| Include Team Drives | Yes / No | No |
Upload File4 fields
| Field | Type | Required |
|---|---|---|
| File Name | Text | Yes |
| File | File | Yes |
| Parent Folder | List (from your account) | No |
| Include Team Drives | Yes / No | No |
Download File2 fields
| Field | Type | Required |
|---|---|---|
| File ID | Text | Yes |
| File Name | Text | No |
Get File Information2 fields
| Field | Type | Required |
|---|---|---|
| File or Folder ID | Text | Yes |
| Include Team Drives | Yes / No | No |
List Files5 fields
| Field | Type | Required |
|---|---|---|
| Folder ID | Text | Yes |
| Folder Depth | Number | No |
| Download Files | Yes / No | No |
| Include Team Drives | Yes / No | No |
| Include Trashed | Yes / No | No |
Find File or Folder6 fields
| Field | Type | Required |
|---|---|---|
| Search By | Fixed list | Yes |
| Match | Fixed list | Yes |
| Search Text | Text | Yes |
| Show | Fixed list | No |
| Search in Folder | List (from your account) | No |
| Include Team Drives | Yes / No | No |
Duplicate File5 fields
| Field | Type | Required |
|---|---|---|
| File ID | Text | Yes |
| New File Name | Text | Yes |
| Destination Folder ID | Text | Yes |
| Convert To | Fixed list | No |
| Include Team Drives | Yes / No | No |
Save Document as PDF4 fields
| Field | Type | Required |
|---|---|---|
| Document ID | Text | Yes |
| Destination Folder ID | Text | Yes |
| File Name | Text | Yes |
| Include Team Drives | Yes / No | No |
Share File or Folder5 fields
| Field | Type | Required |
|---|---|---|
| File or Folder ID | Text | Yes |
| User Email | Text | Yes |
| Role | Fixed list | Yes |
| Send Invitation Email | Yes / No | Yes |
| Include Team Drives | Yes / No | No |
Remove Access3 fields
| Field | Type | Required |
|---|---|---|
| File or Folder ID | Text | Yes |
| User Email | Text | Yes |
| Role | Fixed list | Yes |
Set Public Access2 fields
| Field | Type | Required |
|---|---|---|
| File or Folder ID | Text | Yes |
| Role | Fixed list | Yes |
Move File3 fields
| Field | Type | Required |
|---|---|---|
| File ID | Text | Yes |
| Destination Folder | List (from your account) | No |
| Include Team Drives | Yes / No | No |
Delete File2 fields
| Field | Type | Required |
|---|---|---|
| File ID | Text | Yes |
| Include Team Drives | Yes / No | No |
Move File to Trash2 fields
| Field | Type | Required |
|---|---|---|
| File ID | Text | Yes |
| Include Team Drives | Yes / No | No |
Export Folder as Zip8 fields
| Field | Type | Required |
|---|---|---|
| Folder | List (from your account) | Yes |
| Include Team Drives | Yes / No | No |
| Google Docs As | Fixed list | Yes |
| Google Sheets As | Fixed list | Yes |
| Google Slides As | Fixed list | Yes |
| Zip File Name | Text | Yes |
| Use Password | Yes / No | No |
| Password Options | Dynamic fields | No |
Custom API Call10 fields
| Field | Type | Required |
|---|---|---|
| url | Dynamic fields | Yes |
| Method | Fixed list | Yes |
| Headers | Key / value pairs | No |
| Query Parameters | Key / value pairs | No |
| Body Type | List (from your account) | No |
| Body | Dynamic fields | No |
| Response is Binary | Yes / No | No |
| Return Error as Output | Yes / No | No |
| Timeout | Number | No |
| Follow redirects | Yes / No | No |
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
