Documentation Index
Fetch the complete documentation index at: https://relevanceai.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Connect your Google Drive account to Relevance AI and configure your Agents to respond automatically when files change, or give them tool steps to read, create, and manage files directly in Drive.The Google Drive trigger is currently rolling out in early access. If you don’t see it in your account yet, it will become available soon.
Connect the integration
- Navigate to the “Integrations & API Keys” page in the sidebar of your Relevance AI dashboard.
- Click on “Google Drive” from the available integrations.
- Click the + Connect account button.
- In the pop-up window, sign into your Google account and authorize the connection.
- Once authorized, your Google account will appear in the connected accounts list.
Setting up triggers
The Google Drive integration lets you trigger Agents automatically when files in a Google Drive change. The trigger fires on every change within the drive (or folders) you watch — created, modified, trashed, or removed — and the event type is included in the message your Agent receives.What fires the trigger
A Google Drive trigger fires on each of the following events within the drive or folders you’ve selected:- File created — a new file is added
- File modified — an existing file is updated
- File deleted — a file is moved to trash or permanently removed
Each Google Drive file gets its own ongoing conversation. When the same file changes again, your Agent picks up where it left off rather than starting a new conversation — so it has the full history for each file.
How to set up a Google Drive trigger
The setup process differs slightly depending on whether you’re configuring a trigger for an Agent or a Workforce.For Agents
- Open the Agent you want to configure in the Agent builder.
- In the left sidebar, click the “Triggers” section.
- Click + Add trigger and select “Google Drive” from the trigger types.
- Choose the connected Google account you want to use. If you haven’t connected one yet, set it up first in the Integrations & API Keys page.
- Select a Drive — defaults to “My Drive”, or pick any shared drive you have access to.
- Optionally, select one or more Folders to restrict the watch to only those folders. Leave empty to watch the entire drive.
- Optionally, enable Watch for file property changes to also trigger on changes to custom file properties (not just content changes).
- Save the trigger.
For Workforces
- Open the Workforce you want to configure in the Workforce builder.
- From the node tray at the bottom of the screen, drag a trigger node onto the canvas.
- Click the trigger node to open its configuration panel on the left, then select “Google Drive” as the trigger type.
- Choose the connected Google account you want to use. If you haven’t connected one yet, set it up first in the Integrations & API Keys page.
- Select a Drive — defaults to “My Drive”, or pick any shared drive you have access to.
- Optionally, select one or more Folders to restrict the watch.
- Optionally, enable Watch for file property changes.
- Drag a connection line from the trigger node to the Agent that should respond when the trigger fires.
Tool steps
Beyond triggers, the Google Drive integration provides pre-built tool steps your Agents can use to read, create, and manage files in Drive. Add these in the Tool builder by searching “Google Drive” in the tool-step picker.File operations
- Google Drive: Upload File — upload a file to Google Drive
- Google Drive: Download File — download a file from Google Drive (specify a MIME type to export Google Workspace files like Docs, Sheets, or Slides)
- Google Drive: Create File from Text — create a new file from plain text
- Google Drive: Create File from Template — create a new Google Doc from a template, replacing placeholders
- Google Drive: Update File — update a file’s metadata or content
- Google Drive: Copy File — duplicate a file
- Google Drive: Move File — move a file from one folder to another
- Google Drive: Move to Trash — send a file or folder to trash
- Google Drive: Delete File — permanently delete a file or folder
Search and discovery
- Google Drive: List Files — list files from a specific folder
- Google Drive: Find File — search for a file by name
- Google Drive: Find Folder — search for a folder by name
- Google Drive: Find Forms — list or search Google Form documents
- Google Drive: Find Spreadsheets — search for Google Sheets by name
- Google Drive: Get File by ID — fetch file metadata by ID
- Google Drive: Get Folder ID for Path — resolve a folder path to its ID
Folders
- Google Drive: Create Folder — create a new empty folder
Shared drives
- Google Drive: Create Shared Drive — create a new shared drive
- Google Drive: Get Shared Drive — fetch metadata for a shared drive
- Google Drive: Search Shared Drives — search for shared drives
- Google Drive: Update Shared Drive — update an existing shared drive
- Google Drive: Delete Shared Drive — delete an empty shared drive
Sharing and permissions
- Google Drive: Share File or Folder — add a sharing permission and return a sharing URL
- Google Drive: List Access Proposals — list pending requests for access to a file or folder
- Google Drive: Resolve Access Proposal — accept or deny a request for access
Use the Google Drive API tool step (advanced)
For actions that aren’t covered by a dedicated tool step, the Google Drive API call tool step lets your Agent make authorized requests directly to the Google Drive API.- Create a new Tool in Relevance AI.
- Scroll to the Tool steps section.
- Add the Google Drive API call tool step.
- Select your connected Google account in the dropdown.
- Configure the request — endpoint, method, parameters, and body — based on the Google Drive API reference.
Frequently asked questions (FAQs)
What's the difference between a Google Drive trigger and Google Drive as a Knowledge source?
What's the difference between a Google Drive trigger and Google Drive as a Knowledge source?
Triggers fire your Agent automatically when files in Google Drive change — created, modified, or deleted. A Knowledge source gives your Agent read access to specific files so it can reference them during a conversation. You can use both together: a trigger to start the conversation, and a Knowledge source to give the Agent ongoing context.
Can Agents work with shared drives or only My Drive?
Can Agents work with shared drives or only My Drive?
Can I connect multiple Google accounts?
Can I connect multiple Google accounts?
Yes. Connect each account in the Integrations & API Keys page, then choose which connected account each trigger or tool step uses.
Does it work with personal Gmail and Google Workspace accounts?
Does it work with personal Gmail and Google Workspace accounts?
Both work. Sign in with whichever account has access to the files or folders you want your Agent to watch or act on.

