Overview
Cloud storage service for file backup, sharing, and collaboration. Through Langdock’s integration, you can access and manage Google Drive directly from your conversations.Authentication: OAuth
Category: Google Workspace
Availability: All workspace plans
Category: Google Workspace
Availability: All workspace plans
Available Actions
Download File
googledrive.downloadFile
Downloads the contents of a file from Google Drive based on its file id
Requires Confirmation: No
Parameters:
itemId
(TEXT, Required): The unique identifier of the file you want to download from Google Drive
Get Current User
googledrive.getCurrentUser
Retrieves information about the currently logged-in Google Drive user
Requires Confirmation: No
Parameters: None
Output: Returns user information including:
id
: User IDemail
: User email addressname
: User display namepicture
: User profile picture URLverified_email
: Whether the email is verified
Search Files
googledrive.searchFiles
Searches through files in your Google Drive using simple text queries
Requires Confirmation: No
Parameters:
query
(TEXT, Optional): A query string for filtering the file results. If no query string is passed, it returns the most recent files. This searches through the full text and the titles of the files
Get Folder
googledrive.getFolder
Searches for folders in Google Drive by name
Requires Confirmation: No
Parameters:
folderName
(TEXT, Required): Search term used to find folders that contain this text in their names. For example, you can search for ‘Projects’, ‘Marketing’, or ‘Documents’ to find folders with those terms in their names
id
: Folder IDname
: Folder namemimeType
: Folder MIME type (application/vnd.google-apps.folder)parents
: Array of parent folder IDscreatedTime
: Creation timestampmodifiedTime
: Last modification timestampwebViewLink
: Link to view the folder in Google Drive
Search Files (Advanced)
googledrive.searchFilesAdvanced
Searches through the available files in your Google Drive with advanced filtering options
Requires Confirmation: No
Parameters:
pageToken
(TEXT, Optional): The token for continuing a previous list request on the next page. This should be set to the value of ‘nextPageToken’ from the previous responsequery
(TEXT, Optional): A query string for filtering the file results. If user asks to get recent files without a specific search query, leave this field empty.orderBy
(TEXT, Optional): A comma-separated list of sort keys. Valid keys are: createdTime: When the file was created. folder: The folder ID. This field is sorted using alphabetical ordering. modifiedByMeTime: The last time the file was modified by the user. modifiedTime: The last time the file was modified by anyone. name: The name of the file. This field is sorted using alphabetical ordering, so 1, 12, 2, 22. name_natural: The name of the file. This field is sorted using natural sort ordering, so 1, 2, 12, 22. quotaBytesUsed: The number of storage quota bytes used by the file. recency: The most recent timestamp from the file’s date-time fields. sharedWithMeTime: When the file was shared with the user, if applicable. starred: Whether the user has starred the file. viewedByMeTime: The last time the file was viewed by the user. Each key sorts ascending by default, but can be reversed with the ‘desc’ modifier. Example usage: folder,modifiedTime desc,namefolderId
(TEXT, Optional): Unique identifier of the folder in which you want to search.
files
: Array of file objects containing:id
: File IDname
: File namemimeType
: File MIME typecreatedTime
: Creation timestampmodifiedTime
: Last modification timestampsize
: File size in byteswebViewLink
: Link to view the fileowners
: Array of owner informationparents
: Array of parent folder IDs
nextPageToken
: Token for pagination (if more results available)
Download Google Drive File
googledrive.downloadGoogleDriveFile
Downloads the contents of a file from Google Drive based on its file id
Requires Confirmation: No
Parameters:
itemId
(TEXT, Required): The unique identifier of the file you want to download from Google Drive.
List Files in Folder
googledrive.listFilesinFolder
Lists all files in a Google Drive folder including subfolders, limited to the first 200 files
Requires Confirmation: No
Parameters:
folderId
(TEXT, Required): The unique identifier of the Google Drive folder to list files from. This will include files from the folder and all its subfolders
Upload File
googledrive.uploadFile
Upload a file to Google Drive with optional folder destination
Requires Confirmation: No
Parameters:
file
(FILE, Required): The file to upload to Google DrivefolderId
(TEXT, Optional): The ID of the folder where you want to upload the file. If not provided, the file will be uploaded to the root of your Google DrivefileName
(TEXT, Optional): Optional custom name for the file. If not provided, the original filename will be used
id
: File IDname
: File namemimeType
: File MIME typesize
: File size in byteswebViewLink
: Link to view the filecreatedTime
: Upload timestamp
Triggers
New File
googledrive.newFile
Triggers when new files are added to Google Drive
Requires Confirmation: No
Parameters:
folderIds
(TEXT, Optional): Comma-separated list of folder IDs to monitor for new files
Updated File
googledrive.updatedFile
Triggers when files are updated in Google Drive
Requires Confirmation: No
Parameters:
fileIds
(TEXT, Optional): Comma-separated list of file IDs to monitor for updatesfolderIds
(TEXT, Optional): Comma-separated list of folder IDs to monitor for updates
New Folder
googledrive.newFolder
Triggers when new folders are added to Google Drive
Requires Confirmation: No
Parameters:
parentFolderId
(TEXT, Optional): Comma-separated list of parent folder IDs to monitor for new folders
Common Use Cases
Data Management
Manage and organize your Google Drive data
Automation
Automate workflows with Google Drive
Reporting
Generate insights and reports
Integration
Connect Google Drive with other tools
Best Practices
Getting Started:
- Enable the Google Drive integration in your workspace settings
- Authenticate using OAuth
- Test the connection with a simple read operation
- Explore available actions for your use case
Important Considerations:
- Ensure proper authentication credentials
- Respect rate limits and API quotas
- Review data privacy settings
- Test operations in a safe environment first
Troubleshooting
Issue | Solution |
---|---|
Authentication failed | Verify your OAuth credentials |
Rate limit exceeded | Reduce request frequency |
Data not found | Check permissions and data availability |
Connection timeout | Verify network connectivity |