# Time Audit From a Microsoft Calendar Each Month

An executive coaching firm makes one agent per client that audits each month of their Microsoft calendar: meeting load, recurring meetings, focus time.

[Run this on Rush](https://cloud.getrush.ai/run/monthly-time-audit-for-each-coaching-client/microsoft-calendar/). Opens the console with this prompt ready to send. Connect Microsoft Calendar there first.

## What the agent does

This is for an executive coaching firm that works with new managers and directors at mid-size companies. One of the first exercises a coach sets is a time audit: write down where the hours went for two weeks, then decide what to stop. Few clients finish the log, and those who do fill it in from memory on Friday. Their Outlook calendar already holds most of the answer. The firm's client portal adds a Time audit that appears before each monthly session, built from the client's own Microsoft calendar, so the session starts from the month as it was booked rather than as it was remembered.

The firm connects a Microsoft calendar of its own and saves the agent once as a template with `POST /o/{org}/agents`, naming `microsoft-calendar` in `connections`, with instructions that it reads only and never opens an event's body. When a client starts coaching, the portal's backend makes their agent with `{"template": "<template id>", "name": "audit-<client id>"}`, calls `POST /o/{org}/agents/{agent}/connections {"type": "app", "name": "microsoft-calendar"}`, and opens the `authorize_url` in a popup for the client, who signs in on Microsoft's own page with their work account. Rush's Microsoft Calendar product asks for `Calendars.ReadWrite`, its one scope; Microsoft's reference lists `Calendars.ReadBasic` as enough to read a calendar view, and the instructions forbid every change.

A run calls `GET /me/calendarView` with `startDateTime` and `endDateTime` for the month, each with the client's UTC offset, and the header `Prefer: outlook.timezone` so times come back in the client's own hours. Microsoft's reference says the view returns the occurrences, exceptions and single instances in the range, so a weekly one-to-one appears once for each week it happened, and each occurrence carries the `seriesMasterId` of its series. The run selects `subject`, `start`, `end`, `isAllDay`, `isCancelled`, `showAs`, `isOrganizer`, `attendees`, `type`, `seriesMasterId`, `responseStatus` and `sensitivity`, never `body`, and follows `@odata.nextLink` to the end of the month.

Inside the client's working hours it adds up meeting time: events shown as busy or tentative, not cancelled and not all-day. It splits that time by kind, one-to-ones with a single other attendee, internal meetings whose attendees all share the company's domain, and external ones, and ranks each recurring series by the hours it took, marking those the client organizes, since those are the ones the client can change alone. It finds days with three or more meetings back to back, free stretches of 90 minutes or more, meetings outside working hours and invitations the client never answered. Events marked private count as time with no subject. Last, it sets the month against the goals the client agreed with their coach and against last month's figures, both of which the portal sends.

## Start it with one API call

`POST https://api.phoenix.so/o/{org}/sessions`

```json
{
  "agent": "<agent id>",
  "input": "Time audit of my Microsoft calendar for November 2026. Read only: do not create, update, accept, decline or delete any event. Call GET /me/calendarView with startDateTime 2026-11-01T00:00:00-04:00 and endDateTime 2026-12-01T00:00:00-05:00, header Prefer: outlook.timezone=\"Eastern Standard Time\", $select subject,start,end,isAllDay,isCancelled,showAs,isOrganizer,attendees,type,seriesMasterId,responseStatus,sensitivity, following @odata.nextLink. Working hours: Monday to Friday, 08:30 to 17:30. Company domain: brightwater.example. Skip cancelled events, all-day events and events with showAs free. Count private events as time with no subject. Report: meeting hours per week and as a share of working hours; hours by kind (one-to-one: one other attendee; internal: only brightwater.example attendees; external: any other domain); recurring series grouped by seriesMasterId with hours, attendee count and whether I organize it, top ten by hours; days with three or more back-to-back meetings; free blocks of 90 minutes or more inside working hours; meetings outside working hours; invitations I have not answered. My goals with my coach: at most 22 meeting hours a week, two 90-minute focus blocks a week, no meetings after 17:30. Last month: 26.5 meeting hours a week, one focus block a week. Write time-audit.md and return only JSON: {weekly_meeting_hours: [number], share_of_working_hours, by_kind: {one_to_one, internal, external}, top_series: [{subject, hours, attendees, i_organize}], back_to_back_days, focus_blocks_per_week, after_hours_meetings, unanswered, goals: [{goal, met}]}."
}
```

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

A one-page audit of the month comes back: meeting hours per week, where they went, which recurring meetings took the most time, and how much focus time was left. The portal shows `time-audit.md` to the client and the coach before their session, with the JSON figures charted beside last month's.

The coach and client read it as a starting point, not a verdict. A calendar shows what was booked, so a meeting the client skipped still counts and an afternoon of real work in an unbooked slot looks free; the client corrects those from memory in the session. The recurring series the client organizes are where most sessions go next, because cancelling, shortening or handing one over needs nobody else's permission. Events marked private stay private in the report, with their time counted and their subject left out.

Nothing in the calendar changes. The agent declines nothing and moves nothing; the client decides which meetings to drop and does it in Outlook, and next month's audit shows whether it held.

## Run it on every month end, per coaching client

On the first working day of each month the portal's scheduler sends one `POST /o/{org}/sessions` per active client, with their agent id as `agent`, the month's dates in their time zone, their working hours, company domain, goals and last month's figures in `input`, and a `request_id` that is a UUID v5 of the client id and the month, so a retried job starts no second run. Every client's run starts at once; those past the key's `max_concurrent` wait as `queued` until a slot frees.

Before an off-cycle session, a coach can ask for a two-week audit from the client's page, and the portal sends the same request with those dates.

## Why run it on Rush?

Each client's Microsoft sign-in is theirs and stays in Rush's connection under that client's agent. The coaching firm stores agent ids, not Microsoft tokens, and registers no Microsoft app, since the client signs in to Rush's app on Microsoft's page. A session's `accounts` names the Microsoft account a run read, which the firm can show a client, or a client's IT team, that asks what opened the calendar and when.

A leader's calendar holds sensitive meetings: a performance conversation, a reorganization, an interview with someone who has not resigned yet. The prompt selects no body and hides private subjects, and each run keeps a transcript of exactly which Graph calls it made, so the firm can prove what it read. Every month is a separate run per client with its own computer and its own cost, which the firm adds up with `GET /o/{org}/sessions?agent=<agent id>`.

## Frequently asked questions

### Does the agent read meeting notes or the text of invitations?

No. The prompt selects times, attendees and a few flags, never `body`. That is enough to count meetings and group them, and keeps agendas, dial-in details and attachments out of the run.

### Why does the Microsoft sign-in ask for write access?

Rush's Microsoft Calendar product names one scope, `Calendars.ReadWrite`, so the same connection can serve agents that book meetings. This agent's instructions forbid every change, and the transcript records each Graph call.

### Can it audit a Google calendar instead?

Rush also has a Google Calendar app. A template's runs need every connection it names, so a firm whose clients use both keeps one template for each and makes each client's agent from the one that matches their calendar.

### What counts as focus time?

A free stretch of at least 90 minutes inside working hours, in this prompt. The length and the working hours come from the portal, so a client who protects mornings can set a different rule.

## More Microsoft Calendar jobs

- [Propose Interview Times From Each Recruiter's Microsoft 365 Calendar](https://getrush.ai/run/propose-interview-times/microsoft-calendar/)
- [Are Next Week's Viewings Ready to Go? A Property Management App's Check of Each Leasing Agent's Outlook Calendar](https://getrush.ai/run/check-next-weeks-property-viewings/microsoft-calendar/)
- [Check Each Coach's Sessions Next Week for a Missing Join Link or a Declined Invite](https://getrush.ai/run/check-next-weeks-sessions-for-missing-links/microsoft-calendar/)

## More jobs like this: Run an agent per customer task

- [Create a Notion Onboarding Page for Every New Customer Through an API](https://getrush.ai/run/onboarding-page-per-customer/notion/)
- [How to Prep Board Meeting Financials From QuickBooks](https://getrush.ai/run/prepare-board-meeting-financials/quickbooks/)
- [How Can VCs Automate Board Meeting Prep in Outlook?](https://getrush.ai/run/prepare-for-portfolio-board-meetings/outlook/)

## Keep reading

- [Connect Microsoft Calendar to Rush once, then name it on any run](https://getrush.ai/integrations/microsoft-calendar/)
- [Start your first run from the developer API quickstart](https://getrush.ai/docs/quickstart/)
- [Rush pricing: Free, Pro and Max](https://getrush.ai/pricing/)
