All jobs

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

A property management company runs an agent after month end that reads each building's budget sheet in Google Drive and lists every line over budget.

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 twenty to fifty small apartment buildings and condo associations for their owners. Each property has a Google Sheet in one shared Drive folder, kept by its property manager: a Budget tab with the year's planned amount for each expense line by month (landscaping, repairs, utilities, cleaning, insurance), and an Actuals tab the accounting team fills from the ledger after month end. Owners and boards ask every month why repairs or water went over, and the answer is buried in fifty sheets. The agent reads all of them after the books close and writes one variance report the managers can start from.

The controller connects Google Drive once with POST /me/connections {"type": "app", "name": "google-drive"}. Rush's Drive sign-in asks Google for reading Drive files, editing the files Rush creates, and Sheets, and the request below tells the agent to change none of the property sheets. The run names google-drive in connections, and Rush signs each call to the Drive and Sheets REST APIs as the controller outside the agent's computer.

On a run the agent calls Drive's files.list with a q limited to the folder named in the request and the Google Sheets type, skipping anything in the trash, to find each property's sheet. For each one it calls the Sheets API's spreadsheets.values:batchGet with ranges for the Budget and Actuals tabs and valueRenderOption=UNFORMATTED_VALUE, so it gets numbers rather than formatted text with currency signs. It matches lines by the expense name in column A, takes last month and the year to date from each tab, and works out the difference in dollars and percent.

It flags a line when last month is over budget by more than both thresholds in the request, a percentage and a dollar amount, so a $40 overrun on a $60 line does not bury a $4,000 roof repair. It also lists lines with actuals but no budget, budget lines whose actuals are blank (often a month the accounting team has not filled yet), and sheets whose tabs or columns are not the shape the request describes. It writes variance.md grouped by property manager and variance.csv, and it creates one new summary spreadsheet in the folder, the only file it writes.

Start it with one API call

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

{
  "agent": "claude",
  "input": "Monthly budget-to-actuals review for Lakeview Property Management, month October 2026, year to date January to October. Use the google-drive connection. Call files.list with q \"'<folder id>' in parents and mimeType = 'application/vnd.google-apps.spreadsheet' and trashed = false\". Each sheet is one property; its Info tab cell B2 holds the property manager's name. For each sheet call spreadsheets.values:batchGet with ranges Budget!A1:M60, Actuals!A1:M60 and Info!A1:B5, valueRenderOption UNFORMATTED_VALUE. Row 1 holds month names Jan to Dec in columns B to M; column A holds the expense line. Match lines by name. Flag a line when October actual exceeds October budget by more than 10% and more than $500; also give year-to-date for flagged lines. List separately: lines with actuals and no budget, budget lines with a blank October actual, and sheets not in this shape. Write variance.md grouped by property manager, worst overrun first, and variance.csv (property, manager, line, budget, actual, diff, diff_pct, ytd_budget, ytd_actual). Create one new spreadsheet named 'Variance October 2026' in the same folder with the CSV's rows. Do not edit, move, rename or share any existing file.",
  "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

variance.md compares each property's budget to actuals for the month, with each property manager's over-budget lines worst first. Each line shows the budget, the actual, the difference and the year to date, variance.csv holds the same rows, and both are among the session's artifacts. A new spreadsheet with those rows sits in the folder for managers who work in Sheets. Sheets the agent could not read in the expected shape are listed by name, so a property is never silently missing from the report.

What each manager checks before writing to an owner: whether an overrun is timing rather than cost, such as an annual insurance premium paid in one month against a budget spread over twelve; a one-off repair the board already approved; and actuals the accounting team has not finished entering. The agent finds the lines; explaining them to the owner, and any decision about reserves or budgets, stays with the manager and the owner.

Run it on every month-end close

In the console, a Project automation with a schedule trigger, cron 0 8 8 * * and the company's timezone, runs a saved agent whose connections name google-drive, on the 8th of each month after the accounting team has entered actuals. A schedule fills no month into the prompt, so the instructions say "last month" and "the year to date through last month" and the agent works the dates out from today.

When accounting closes late, the controller presses Run now on the automation once the actuals are in. Each month is its own session, so last month's report stays readable beside this one, with a record of exactly which sheets were read.

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

Why run it on Rush?

The Drive sign-in stays in Rush's connection, signed outside the agent's computer, rather than in a script holding a service account key with access to every owner's files. The sign-in includes Google's Sheets scope, which can edit any sheet the controller can, so the prompt names the one file the agent may create and forbids changes to the rest, and the session's record shows every call it made, so a change would be visible.

Fifty sheets kept by ten people are never quite the same shape, which is what breaks a fixed script: a renamed tab, a new expense line, a column inserted for a note. The agent reads each sheet, works with what it finds and says which ones did not match, and each run's record shows every sheet it opened and its total_cost_usd.

Frequently asked questions

Can the agent read sheets in a shared drive?

It reads what the controller's Google account can read. A folder in a shared drive the controller belongs to works the same way. A property sheet nobody shared with the controller is not found, so the report lists the sheets it read and managers can spot one that is missing.

Will the agent change our property sheets?

Not on this prompt, which forbids edits to existing files. Rush's Drive sign-in does include Google's Sheets scope, which could edit any sheet the controller can edit, so keep that rule in the saved agent's instructions. The one file the agent writes is the new summary spreadsheet, and the session's record lists every call it made.

What if our budgets are in Excel files rather than Google Sheets?

Change the files.list query to the Excel type and ask the agent to download each file and read it on its own computer. Or keep the files in OneDrive and use Rush's OneDrive connection instead, which reads files through Microsoft Graph.

Can each owner get their own report?

Ask for one section per property in variance.md, or one file per property, in the prompt. Sending a report to an owner stays with the manager, who adds the explanation the owner will ask for.

More Google Drive jobs

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

Keep reading