# Run agents with Google Drive

Google Drive AI agents on Rush: connect Google Drive once, then name it on any run. Read files and Sheets, and edit the ones Rush creates.

[Connect Google Drive](https://cloud.getrush.ai/console/settings/?section=connections) in the console under Settings → Connections.

Read files and Sheets, and edit the ones Rush creates.

## What agents do with Google Drive

- [What Was Our Food Cost Last Week? A Restaurant Back-Office App Reads Each Kitchen's Inventory Sheets in Google Drive](https://getrush.ai/run/calculate-weekly-food-cost-from-inventory-sheets/google-drive/)
- [Check Each Brokerage's Deal Folders in Google Drive for Missing Documents](https://getrush.ai/run/check-deal-files-for-missing-documents/google-drive/)
- [How Can a Property Manager Compare Each Building's Monthly Spending to Its Budget? An Agent That Reads Every Property's Sheet in Google Drive](https://getrush.ai/run/compare-each-propertys-budget-to-actuals/google-drive/)
- [RFP Response Drafts From Past Proposals in Drive](https://getrush.ai/run/draft-rfp-responses-from-past-proposals/google-drive/)
- [How Does Café Software Turn Each Shop's Weekly Stock Count in Google Sheets Into Draft Supplier Orders?](https://getrush.ai/run/draft-weekly-supplier-orders-from-stock-sheet/google-drive/)
- [List Every Google Drive File Shared With Anyone Who Has the Link, for Each Client Office](https://getrush.ai/run/find-files-shared-with-anyone-with-the-link/google-drive/)
- [Which of This Week's Tutoring Sessions Have No Notes? Tutoring Centre Software Checks Each Centre's Google Drive](https://getrush.ai/run/find-tutoring-sessions-with-no-notes/google-drive/)
- [Total Contractors' Weekly Timesheets From Google Sheets Into One Billing Sheet](https://getrush.ai/run/total-weekly-timesheets/google-drive/)
- [Contract Renewal Reminders From Your Google Drive](https://getrush.ai/run/track-vendor-contract-renewal-dates/google-drive/)
- [How Can Our Bookkeeping App Turn Each Client's Receipt Photos in Google Drive Into an Expense Sheet?](https://getrush.ai/run/turn-receipt-photos-into-an-expense-sheet/google-drive/)
- [Draft Replies to Customer Order Questions in an Online Store's Gmail](https://getrush.ai/run/draft-replies-to-order-questions/gmail/)
- [Which Delivered Loads Are Still Missing Paperwork? A Freight Broker's Agent Matches Each Proof-of-Delivery Email in Gmail](https://getrush.ai/run/match-proof-of-delivery-emails-to-loads/gmail/)

Automations the console sets up with Google Drive, each started from its template:

- [Invoices into a spreadsheet](https://cloud.getrush.ai/automate/invoices-into-a-spreadsheet/): adds a row to sheets on each run
- [Follow up new leads](https://cloud.getrush.ai/automate/follow-up-new-leads/): drafts a reply on each run

## How it works

1. **Connect Google Drive once.** Sign in under Settings → Connections. Rush keeps the sign-in; no script or laptop holds a token.
2. **Hand an agent the work.** From the console, on a schedule, or with one API call that names `google-drive`.
3. **Get the result back.** Files, an answer or a PR, with a record of every step the agent took.

## Agents that use Google Drive

- [Local Lead List Builder: Find and enrich local leads](https://getrush.ai/templates/local-lead-list-builder-50a1618f/)
- [Invoice Extractor: Invoices from mail to a sheet](https://getrush.ai/templates/invoice-extractor-bba5572f/)
- [Web Data Extractor: Public web pages into a sheet](https://getrush.ai/templates/web-data-extractor-1b98b566/)
- [SEO Article Writer: Researched articles to a Doc](https://getrush.ai/templates/seo-article-writer-9cf4b64f/)
- [Spreadsheet Analyst: Answers from a Google Sheet](https://getrush.ai/templates/spreadsheet-analyst-95432f35/)
- [Meeting Notes to Tasks: Transcripts into action items](https://getrush.ai/templates/meeting-notes-to-tasks-c39f66eb/)
- [CV Screener: Rank applicants against a role](https://getrush.ai/templates/cv-screener-1f956ec6/)
- [Receipt to Expense Log: Receipts into an expense sheet](https://getrush.ai/templates/receipt-to-expense-log-a51e75cc/)
- [Support Inbox Agent: Answers from your own docs](https://getrush.ai/templates/support-inbox-agent-098033ad/)
- [Cold Email Drafter: Researched first-touch drafts](https://getrush.ai/templates/cold-email-drafter-a297e041/)

## For developers: how Google Drive connects

Google Drive is a built-in app: you sign in with your Google account on its own page, through Rush's own app, so you register no OAuth app. The sign-in asks only for the scopes listed below, and the run's token reaches `www.googleapis.com` and `sheets.googleapis.com`, the Google Drive and Sheets REST APIs.

Connect it once in the console under Settings → Connections, or from your server with `POST /me/connections`. The sign-in finishes in a browser signed in to the console as the same person, and a link not finished within 10 minutes expires.

After that, a run that names `google-drive` in `connections`, or runs a saved agent that names it, gets it; your connections reach no run that does not name them.

Scopes the sign-in asks for:

- `https://www.googleapis.com/auth/userinfo.email`
- `https://www.googleapis.com/auth/drive.readonly`
- `https://www.googleapis.com/auth/drive.file`
- `https://www.googleapis.com/auth/spreadsheets`

```http
POST https://api.phoenix.so/me/connections

{
  "type": "app",
  "name": "google-drive"
}
```

## Whose Google Drive account the agent uses

Your Google Drive connection is personal: it belongs to the person who signed in. A run started in the console uses that person's Google Drive, and a run started with an API key uses the Google Drive of the member who created the key.

To act for your own app's users, make each user an agent from your template and show them, signed in to your app, the sign-in link `POST /o/{org}/agents/{agent}/connections` returns. They sign in to their own Google Drive, and that agent's runs use their account and nothing else: never yours, never another user's.

## More Productivity integrations

- [Gmail](https://getrush.ai/integrations/gmail/)
- [Google Calendar](https://getrush.ai/integrations/google-calendar/)
- [Outlook](https://getrush.ai/integrations/outlook/)
- [Microsoft Calendar](https://getrush.ai/integrations/microsoft-calendar/)
- [OneDrive](https://getrush.ai/integrations/onedrive/)
- [Notion](https://getrush.ai/integrations/notion/)
- [Airtable](https://getrush.ai/integrations/airtable/)

## Frequently asked questions

### How do I connect Google Drive to Rush?

Open Settings → Connections in the console and connect Google Drive, or send `POST /me/connections` with `{"type":"app","name":"google-drive"}` and open the `authorize_url` it returns while signed in to the console. The connection reads `pending` until the sign-in finishes, then `connected`.

### Does every run get my Google Drive account?

No. A run gets your Google Drive connection only when it names it in `connections` (`"connections": ["google-drive"]`), or runs a saved agent that names it. A saved agent names its connections once, and every run of it gets them.

### What can an agent do in Google Drive?

Read files and Sheets, and edit the ones Rush creates. 12 published jobs use it; this page lists them.

### Can my app's users connect their own Google Drive?

Yes. Make each user an agent from your template, and they sign in to their own Google Drive through the link `POST /o/{org}/agents/{agent}/connections` returns. That agent's runs use their account alone.

## Keep reading

- [AI agents for operations teams: every job and app for them](https://getrush.ai/solutions/operations/)
- [How connections work: sign in once, then every run that names a connection gets it](https://getrush.ai/docs/concepts/connections/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Pricing: one price per member, hours shared by the team](https://getrush.ai/pricing/)
- [How Rush compares with other cloud agents](https://getrush.ai/compare/)
- [Every app and MCP server Rush connects to](https://getrush.ai/integrations/)
