> ## Documentation Index
> Fetch the complete documentation index at: https://docs.architect.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Drive

> The Google Drive tool gives your AI agents complete control over your cloud storage. By connecting Google Drive to Architect, your apps can autonomously search for files, create nested folder structures, move documents, and manage permissions.

## Why Use Google Drive in Architect?

Digital clutter slows teams down. Through vibe coding, you can describe your ideal file management system, and your agent will enforce it. Whether it's sorting a chaotic "Downloads" folder, fetching context from historical project files, or setting up client directories automatically, the Google Drive tool handles the heavy lifting.

* **Intelligent Organization:** Build agents that scan incoming files, determine their context (e.g., 'Invoice' vs. 'Contract'), and move them to the correct Drive folders.
* **Knowledge Retrieval:** Create research assistants that can search your entire Google Drive for specific keywords or past reports to answer complex questions.
* **Automated Onboarding:** Have an agent automatically generate a specific set of shared folders and starter templates whenever a new client is signed.

## Vibe Coding Examples

Try these natural language prompts to build autonomous file managers:

<CardGroup cols={1}>
  <Card title="Example 1: The Client Folder Architect">
    "Build a project setup app. When I input a new client name, use the Google Drive tool to create a main folder for them, and then create subfolders inside it named 'Contracts', 'Assets', and 'Deliverables'."
  </Card>

  <Card title="Example 2: The File Sorter">
    "Create an automated sorter. Look at all the files in my 'Unsorted' Google Drive folder. If a file title contains the word 'Invoice' or 'Receipt', move it to the '2024 Financials' folder."
  </Card>

  <Card title="Example 3: Context Fetcher">
    "I want a QA bot. When I ask a question about our internal policies, use the Google Drive tool to search my 'HR Documents' folder, find the most relevant PDF, read it, and answer my question based solely on that file."
  </Card>
</CardGroup>

<Tip>
  Use Google Drive in tandem with Slack. Prompt your agent to automatically upload a finished report to Drive, generate a shareable link, and post that link into your team's Slack channel!
</Tip>

## Available Actions

The Google Drive tool exposes the following actions to your agents. Architect automatically picks the right one based on your prompt.

<Accordion title="View all 51 Google Drive actions" icon="list">
  * `GOOGLEDRIVE_ADD_FILE_SHARING_PREFERENCE`
  * `GOOGLEDRIVE_COPY_FILE`
  * `GOOGLEDRIVE_CREATE_COMMENT`
  * `GOOGLEDRIVE_CREATE_DRIVE`
  * `GOOGLEDRIVE_CREATE_FILE`
  * `GOOGLEDRIVE_CREATE_FILE_FROM_TEXT`
  * `GOOGLEDRIVE_CREATE_FOLDER`
  * `GOOGLEDRIVE_CREATE_REPLY`
  * `GOOGLEDRIVE_CREATE_SHORTCUT_TO_FILE`
  * `GOOGLEDRIVE_DELETE_COMMENT`
  * `GOOGLEDRIVE_DELETE_DRIVE`
  * `GOOGLEDRIVE_DELETE_PERMISSION`
  * `GOOGLEDRIVE_DELETE_REPLY`
  * `GOOGLEDRIVE_DOWNLOAD_FILE`
  * `GOOGLEDRIVE_EDIT_FILE`
  * `GOOGLEDRIVE_EMPTY_TRASH`
  * `GOOGLEDRIVE_FILES_MODIFY_LABELS`
  * `GOOGLEDRIVE_FIND_FILE`
  * `GOOGLEDRIVE_FIND_FOLDER`
  * `GOOGLEDRIVE_GENERATE_IDS`
  * `GOOGLEDRIVE_GET_ABOUT`
  * `GOOGLEDRIVE_GET_CHANGES_START_PAGE_TOKEN`
  * `GOOGLEDRIVE_GET_COMMENT`
  * `GOOGLEDRIVE_GET_DRIVE`
  * `GOOGLEDRIVE_GET_FILE_METADATA`
  * `GOOGLEDRIVE_GET_PERMISSION`
  * `GOOGLEDRIVE_GET_REPLY`
  * `GOOGLEDRIVE_GET_REVISION`
  * `GOOGLEDRIVE_GOOGLE_DRIVE_DELETE_FOLDER_OR_FILE_ACTION`
  * `GOOGLEDRIVE_HIDE_DRIVE`
  * `GOOGLEDRIVE_LIST_CHANGES`
  * `GOOGLEDRIVE_LIST_COMMENTS`
  * `GOOGLEDRIVE_LIST_FILE_LABELS`
  * `GOOGLEDRIVE_LIST_FILES`
  * `GOOGLEDRIVE_LIST_PERMISSIONS`
  * `GOOGLEDRIVE_LIST_REPLIES_TO_COMMENT`
  * `GOOGLEDRIVE_LIST_REVISIONS`
  * `GOOGLEDRIVE_LIST_SHARED_DRIVES`
  * `GOOGLEDRIVE_MOVE_FILE`
  * `GOOGLEDRIVE_PARSE_FILE`
  * `GOOGLEDRIVE_STOP_WATCH_CHANNEL`
  * `GOOGLEDRIVE_UNHIDE_DRIVE`
  * `GOOGLEDRIVE_UNTRASH_FILE`
  * `GOOGLEDRIVE_UPDATE_COMMENT`
  * `GOOGLEDRIVE_UPDATE_DRIVE`
  * `GOOGLEDRIVE_UPDATE_FILE_PUT`
  * `GOOGLEDRIVE_UPDATE_FILE_REVISION_METADATA`
  * `GOOGLEDRIVE_UPDATE_PERMISSION`
  * `GOOGLEDRIVE_UPDATE_REPLY`
  * `GOOGLEDRIVE_UPLOAD_FILE`
  * `GOOGLEDRIVE_WATCH_CHANGES`
</Accordion>
