All jobs

Contract Renewal Reminders From Your Google Drive

A property management company runs an agent each month that reads the vendor contracts in its Google Drive and lists every renewal and notice deadline coming up.

Run this on RushOpens the console with this prompt ready to send. Connect Google Drive there first.

What the agent does

This is for a property management company that runs a few dozen buildings, each with its own service contracts: landscaping, elevator maintenance, waste hauling, security, pest control, cleaning. The signed copies sit in Google Drive, one folder per building. Many of them renew on their own unless someone sends notice 30, 60 or 90 days before the term ends, and the date that matters is that notice deadline, not the end date. A missed one means another year with a vendor the regional manager meant to rebid. The company runs an agent on the first Monday of each month that reads every contract in the folder and builds the list of deadlines coming up.

The company connects Google Drive once with POST /me/connections {"type": "app", "name": "google-drive"}, signed in as the shared operations account that the contracts folder belongs to. Rush asks Google for read access to Drive, access to the files Rush itself creates, and Sheets. Drive access is read-only, so the agent can read every contract but cannot change, move or delete one; Sheets access lets it write the register, and its instructions allow it to write only the new spreadsheet it creates.

A run lists the files under the contracts folder with the Drive API, walking each building's subfolder, and reads each one by type: a PDF is downloaded and its text extracted, a Google Doc is exported as text with files.export, which Google's reference limits to 10 MB per export. From each contract it pulls the vendor, the building, the start date, the term, the end date, whether the term renews automatically, the notice period and how notice must be given, and any price increase stated for the renewal. It computes the notice deadline as the end date minus the notice period, and keeps the clause text and page number it read each value from.

Contracts are not uniform, and the agent says when it is unsure instead of filling a gap. A scanned PDF with no text layer, a term written as "until terminated", or a renewal clause that refers to another document all go to a separate list with the file link, so a person reads those few by hand. It writes the results to a new Google Sheet, which lands in the operations account's My Drive because Rush's Drive access cannot add a file to a folder Rush did not create, and a short summary of the deadlines in the next 90 days. It sends no notices to vendors and gives no view on whether a clause is enforceable.

Start it with one API call

POST https://api.phoenix.so/o/{org}/sessions with this body:

{
  "agent": "claude",
  "input": "Contract renewal check for December 2026. Use the google-drive connection. Read only: change, move or share no existing file. List every file under the Drive folder \"Vendor Contracts\" and its building subfolders. Read each PDF's text, and export each Google Doc as text/plain. For each contract record: building (the subfolder name), vendor, service, start date, term, end date, auto-renews (yes, no or unclear), notice period, how notice must be sent, renewal price change, and for each value the quoted clause and page. Notice deadline = end date minus notice period. Put a contract in needs_review when the file has no readable text, the term or notice period is missing or unclear, or it refers to another document; never guess a date. Create a new Google Sheet named \"Contract renewals 2026-12\" in My Drive (do not move it into a folder) with one row per contract, sorted by notice deadline, and a needs_review tab. Write renewals.md: every notice deadline between 2026-12-01 and 2027-03-01 grouped by month, with building, vendor, end date, auto-renews, how to give notice and the file link; then the needs_review list.",
  "connections": [
    "google-drive"
  ]
}
  1. Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
  2. Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions. The run starts in its own cloud sandbox.
  3. Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

What comes back

The run returns renewals.md with every notice deadline in the next three months, grouped by month, and a link to the new spreadsheet with the full register. The operations manager forwards each building's deadlines to its regional manager, who decides which contracts to renew and which to rebid.

Each row carries the quoted clause and page the date came from, so checking a deadline means reading one sentence in the contract, not trusting the agent's arithmetic. The needs_review tab is where to start: those are the contracts the agent could not read with confidence, and a missed deadline is more likely there than anywhere else.

Whether notice was valid, or what a clause means when it is ambiguous, is a question for the company's lawyer. The register shows what each contract says and where.

Run it on every first Monday of the month

In the console, a Project automation with a schedule trigger runs a saved agent whose connections name google-drive, with the folder names and the rules above in its instructions. A schedule writes no date into the prompt, so the instructions tell the agent to use the run's own date for the month and the 90-day window, and to put both at the top of renewals.md.

Because the deadline that matters can be 90 days out, a monthly run catches every one at least twice before it passes. A company that signs contracts often can add a second automation on a weekly schedule that reads only files modified since the last run.

The use case this job follows, with its automation and trigger: Produce a report or file, no repo.

Why run it on Rush?

The Google sign-in stays in Rush's connection for the operations account, with read-only Drive access, rather than a service account key sitting in a script on someone's laptop. Each run reads the contracts on its own computer and keeps a record of every file it opened, so when someone asks whether the agent saw a particular contract, the session answers.

Reading every contract in the folder once a month is tedious for a person and the kind of reading an agent does well, provided it shows its source for every date. Each run records its total_cost_usd, and the company can put that next to what one missed auto-renewal on an elevator contract would have cost.

Frequently asked questions

What is the difference between the end date and the notice deadline?

The end date is when the current term finishes. The notice deadline is the last day to tell the vendor you will not renew, and for a contract that renews automatically it is the date that matters. The agent computes it from the notice period the contract states and shows the clause it used.

Can it read scanned contracts?

It reads the text a PDF contains. A scan saved as an image with no text layer goes to the needs_review tab with its link, so a person reads it, rather than the agent guessing a date from a blurry page.

Does the agent send the non-renewal notice?

No. Its Drive access is read-only, its instructions allow it to write only the register it creates, and they forbid contacting anyone. The regional manager decides and sends any notice the contract asks for.

Our contracts are in OneDrive, not Google Drive. Does that work?

OneDrive is a separate app Rush connects the same way. The job is the same; the request names onedrive and the agent reads the files through Microsoft Graph instead of the Drive API.

More Google Drive jobs

More jobs like this: Produce a report or file, no repo

Keep reading