Confidential client · Under NDA

AI agents · Google Cloud · Live in production

Multi-agent scheduling platform for a European client

How I designed and run a system where four AI agents turn inbound email into booked meetings, and how tracing made its production faults fixable.

Project facts

My role
Architect and team lead: architecture, team coordination, delivery and production support
Users
People emailing to book a meeting, and the client's staff whose calendars the agents read
Team
An engineering team of three or more, led by me
Stack
Laravel, Python, GCP Cloud Run, Gmail API, Pub/Sub, Google Calendar, Google OAuth, Langfuse

What this page shares

  • The sector, scale and the type of users involved
  • My role, the stack and why it was chosen
  • A conceptual architecture drawn by me
  • The decisions I made and the alternatives I rejected
  • Results as ranges, directions or mechanisms

What stays private

  • The client's name, brand and country list
  • Screens, UI, internal system names and URLs
  • Any personal data about users, customers or patients
  • Internal documents, exact volumes and revenue figures
  • Source code, schemas and configuration

Context and problem

Meeting requests arrive by email, in free text. Turning each one into a booked slot means reading the intent, checking several calendars and replying, which is work a person normally does.

The brief was a system that does this end to end on the client's own Google accounts, with no person in the loop, and with enough evidence behind every action to explain what an agent did and why.

Constraints

Restricted Google scopes
Reading mail and calendars needs Google's full OAuth verification before real users can connect.
Events that repeat
Push notifications can arrive more than once or echo back, so every handler has to be safe to run twice.
No one watching
Agents act without review, so every decision must leave a trace someone can inspect later.

Architecture, conceptual

Drawn by me from the design. Component names are generic on purpose. This is not the client's documentation.

Key decisions and what I rejected

Key decisions and what I rejected
DecisionAlternative rejectedWhy
Four agents with one job each, under one orchestratorOne general agent for the whole pipelineEach step fails in its own way. Separate agents give a failure rate per agent and keep a fault inside one stage.
Gmail push notifications through Pub/SubPolling the inbox on a timerRequests are handled as they arrive. The price is redelivery, so handlers had to tolerate repeats.
Structured metadata and status tags on every tracePlain application logsA failure becomes a query, not a guess. The LLM observability servers, written up separately, read these same fields.

Results

Exact figures are confidential under the client agreement, so the results below are directions and mechanisms rather than numbers.

  • No person in the loop

    from email to booked meeting

    The agents read the request, check calendars and book the slot.

  • Two production faults

    diagnosed from traces

    An agent's own reply re-triggering its inbox was closed, and repeated deliveries of one message are now detected automatically.

  • Every agent run

    is traced

    Status and metadata on each trace feed per-agent health reports.

What I would do differently

I would build loop and repeat protection before the first agent went live. Treating every inbound event as a possible echo or duplicate from day one would have prevented both production faults.

Not published on this page

  • The client's name and the people who use the system
  • Agent names, prompts and internal identifiers
  • Email and calendar content
  • Trace data and message volumes

Written from my own knowledge of the design. No client documents, screens or data were used.

Walk through this project on a call

30 minutes. I walk through the agent design, the two production faults and how the traces led to each fix, using the same conceptual diagram. The call covers my engineering reasoning, not client details.