Skip to content
Maxwell CollinsContact

Executive assistant for Microsoft 365 email and calendar

An AI assistant in Telegram that handles one executive's Microsoft 365 email and calendar across four mailboxes.

What it achieved

Does a human assistant's inbox and calendar work for a busy executive, at no added cost.

The short version

This system does a human assistant's inbox and calendar work for a busy executive at no added cost: it sorts more than 500 emails a day and books his meetings after a one-word yes, with no per-message AI fees. It lives in a private Telegram chat and works across his four Microsoft 365 mailboxes and calendars. It writes a morning digest, catches meeting requests buried in threads and answers questions about mail and calendar from a phone. It is a separate system from the always-on email chief of staff, which reads six of Maxwell's own inboxes and tracks every matter across them. This one serves an executive: his mailboxes, his calendar and his approvals.

The problem

An executive with four mailboxes and hundreds of messages a day misses things: a meeting request in the third paragraph of a thread, an invite never accepted, a client who wrote twice. A human assistant is costly, and off-the-shelf AI email tools either want full send access or bill per message.

In use

  1. New mail is sorted as it arrives, across all four mailboxes.
  2. Each morning the executive gets a digest of what needs attention.
  3. When an email asks for a meeting, the assistant proposes a time in the chat, and a yes books it on the calendar as a real invitation.
  4. From a phone, the executive asks things like "what did the lawyer send this week?" and gets an answer.

What it achieved

  • More than 500 emails a day sorted across four mailboxes, with a morning digest of what needs his attention, so a request buried in a thread is not missed.
  • Meeting requests become calendar bookings with one tap on his phone, including accepting invitations so the organizer sees a normal reply.
  • No added cost: it runs on a subscription already paid for, with $0 in AI usage fees, and a test fails the build if anyone switches on the one setting that would start per-message billing.
  • It cannot send or delete his email, because it has no tool that can, and nothing goes on his calendar without his yes.

The full record

On this page
In one sentence

Maxwell built an executive assistant daemon, a Microsoft 365 and Telegram assistant for a busy executive that triages more than 500 emails a day across four mailboxes, writes a morning digest, spots meeting requests and books them on the executive's calendar after a one-word yes, and answers questions about email and calendar from a phone, all through a background Claude pipeline with API spend held at $0 and a build-failing test that stops the one flag that would start billing, in 13,437 lines of Python (9,777 of them tests) with 357 test cases across 95 commits. He builds by directing AI agents, and he built this system that way.

emails a day
500+
tests
357
mailboxes
4
API spend
$0

What it does

The assistant lives in a private Telegram chat. It reads the executive's mail and calendars through Microsoft Graph, tells him what matters each morning, catches every meeting request buried in the inbox, and books what he approves. It has no tool that can send or delete an email.

Reading the mail

  • Four mailboxes and their calendars through Microsoft Graph, with read access to mail and controlled write access to calendars.
  • A background classifier. A worker thread classifies new email as it arrives, sized for 80 to 150 emails in a peak hour and tested against real-volume data of 620 messages.
  • Rate-limit handling. When Microsoft returns a 429, the assistant backs off and retries.

The morning digest

  • Two passes. A deterministic first pass sorts and groups the day's mail; a second pass summarizes what needs attention, using a classification cache so nothing is classified twice.
  • Never empty-handed. If the AI step fails, the digest falls back to plain statistics so the executive still gets a briefing.

The meeting hunter

  • Cheap filter first. A pre-filter discards obvious noise and looks for time words before any AI is involved.
  • Claude classifies and extracts. For likely meeting requests, Claude pulls out the title, time, attendees and location.
  • Proposals in the chat. Each meeting arrives in Telegram as a proposal with yes, no and edit buttons.
  • Native invitations. When the request is a calendar invite, a yes accepts it through Graph's own response, so the organizer sees a normal acceptance.
  • Expiry and de-duplication. Proposals expire when their time passes, and a record of proposed meetings stops the same request appearing twice.
  • Nothing written without a yes. Calendar changes happen only after an explicit yes from the executive.

Asking questions from the phone

The executive can type a question and the assistant routes it to the right tool: search email, read an email, list the calendar, read an event, list emails since a time, propose, edit or cancel an event, and note a sender for future triage. Slash commands /start, /help, /ping and /status cover the basics. The chat is allow-listed to his account only.

Running all day

  • launchd service with a watchdog, failure alerts sent to Telegram, and throttling so the machine stays awake without fighting the operating system.
  • Safe state. State is held in immutable frozen data classes and written atomically; one Python process is the only writer.

$0 in API spend

The assistant drives Claude Code's headless mode as a subprocess, running on an existing subscription. One command-line flag, --bare, would force API-key authentication and start metered billing. A test named test_bare_flag_never_in_argv fails the build if that flag ever appears in the command the assistant runs.

What it achieved

  • More than 500 emails a day triaged for a busy executive across four mailboxes.
  • Meetings booked from a phone with a single tap, including native acceptance of calendar invites.
  • $0 in API spend, protected by a test that fails the build before a billing flag can ship.
  • 357 test cases in 9,777 lines of tests, split into unit tests, integration tests that replay recorded Graph traffic, and end-to-end tests, across 95 commits.

The problem it solves

An executive with four mailboxes and hundreds of messages a day misses things: a meeting request in the third paragraph of a thread, an invite that never got accepted, a client who wrote twice. Hiring a human assistant is costly, and off-the-shelf AI email tools either want full send access or bill per message. This assistant reads everything, surfaces only what matters, books meetings only with the executive's approval, can never send or delete mail, and costs nothing beyond a subscription he already pays for.

How he built it

Maxwell set the limits first: no send or delete tools, no calendar write without a yes, one writer for state, and no route to a metered bill. He directed AI agents to build it test-first in Python, splitting the suite into unit, integration and end-to-end layers, with integration tests that replay recorded Microsoft Graph responses so they run the same way every time. Every billing-related lesson became a test, the --bare guard among them, so the rule is checked on every build instead of remembered.