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

# Workflows

> Use Google Drive workflow actions in Ravenna to search Drive files and share or unshare them with people and user groups.

Use Google Drive actions in workflows (Automated actions triggered by ticket events or manual triggers) to find files and manage who can open them. Actions appear under the **Google Drive** app in the workflow builder.

See the [Google Drive setup guide](https://docs.ravenna.ai/integrations/google-drive/setup.md) to connect a service account

## Actions

> [accordion] Search Files
>
> Searches the files shared with the service account by name and content.
>
> **Input fields:**
>
> * `Search Keyword` - Matches file names and content
> * `Max Results` (optional) - 1 to 100. Defaults to 25.
>
> **Output data:**
>
> * `Files` - Each file's File ID, File Name, MIME Type, Web View Link, Modified Time, and File Size
> * `Total Count` - How many files matched
>
> **Common use cases:**
>
> * Find a team document before sharing it
> * List files that match a project name

> [accordion] Share File
>
> Shares a file with people and user groups. Ravenna expands groups to their members and uses each person's email address.
>
> **Input fields:**
>
> * `File URL` - The file's link
> * `Users` - People and user groups to share with
> * `Permission Level` - `reader`, `commenter`, or `writer`
> * `Send Notification Email` - Google emails each person the file is shared with. On by default.
>
> **Common use cases:**
>
> * Grant access to team documents after an approval
> * Share onboarding materials with new hires

> [accordion] Unshare File
>
> Removes people's direct access to a file. People with no direct access are skipped.
>
> **Input fields:**
>
> * `File URL` - The file's link
> * `Users` - People and user groups to remove
>
> **Common use cases:**
>
> * Remove document access during offboarding
> * Revoke access when a project ends

Learn more about [workflow actions](https://docs.ravenna.ai/documentation/workflows/actions.md) and [Google Drive agent tools](https://docs.ravenna.ai/integrations/google-drive/agent-tools.md)


## Related topics

- [Workflows](https://docs.ravenna.ai/documentation/workflows/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.