AI Scheduling Assistant
Autonomous Meeting Negotiation over Email
My Role
- LLM parses email; deterministic code picks slots
- Pausable LangGraph workflow with Redis checkpoints
- Owner approval by email, with auto-approve rules
Approach at a Glance
Details- 1Mail Integration Layer
- 2Language Understanding (LLM as Parser)
- 3Deterministic Slot Engine
- 4Pausable Agent Workflow
- 5Human-in-the-Loop & Certainty Control
- 6Smart Follow-ups & Assistant Mode
- 7Error Taxonomy & Operational Safety
Executive Summary
An AI scheduling assistant that people add to the CC line of an email, much like a human executive assistant. From there it handles the whole back-and-forth. It reads the thread and understands what the parties want: a new meeting, a reschedule or a cancellation. It checks the user's own calendar, proposes slots, and negotiates directly with the other side until a time is agreed. When someone rejects a proposal, the assistant finds alternatives on its own and never re-offers a slot that was already declined. Agreed meetings are stored, so they can later be rescheduled, cancelled or extended with new participants from the same thread.
The product was built for two founders starting their business and sold through a B2B2C model: organizations bought seats in team plans and rolled the assistant out to their employees. It works with both Gmail and Outlook, aligns time zones automatically, and can act on behalf of someone else, using their name, title, tone and signature.
I led the architecture end to end, with a team of 7–8 engineers at any given time. The system went from a three-node prototype to a production multi-service platform with paying business customers, and was then handed over to the client.
Client Profile
The founders were building a business around one painful, universal problem: scheduling a meeting over email takes far more effort than the meeting deserves. Busy professionals lose time to inbox overload and dropped follow-ups: a proposed slot gets buried, a reply never comes, and the meeting quietly never happens. Before this product, their target users handled scheduling fully manually or with simple rule-based tools that could not cope with real conversations.
The hard part is that scheduling emails are written in fully fuzzy human language: "sometime next week but not Monday", "let's push it a bit", slang, half-sentences and implicit references to earlier messages in the thread. On top of that, the assistant has to negotiate asynchronously with several people across time zones, and a single wrong auto-sent email damages the user's credibility with their own contacts. The system therefore had to be autonomous enough to save real time, and cautious enough to be trusted with someone's inbox.
Technical Approach
The architecture rests on one principle: the LLM understands language, deterministic code makes scheduling decisions.
-
Mail Integration Layer – Gmail is integrated through push notifications (Gmail watch → Google Pub/Sub → processing queue → worker using the History API), with idempotency keys so that every message is processed exactly once. Outlook and Google Calendar work through Microsoft Graph and the Google APIs behind a shared provider abstraction, so the agent logic is identical for both ecosystems. Scheduled Celery jobs renew mailbox watches, send follow-ups and retry failed operations.
-
Language Understanding (LLM as Parser) – GPT-4.1 at temperature 0 classifies each message's intent (schedule, reschedule, cancel, none) and extracts structured details such as participants, durations, preferred and excluded days, and urgency. These come back as validated, typed objects rather than free text. Relative and vague expressions ("next week", "end of the month") are turned into target date windows with a defined tolerance. When intent is genuinely unclear, the assistant asks a clarifying question instead of guessing.
-
Deterministic Slot Engine – Slot selection is ordinary code, not an LLM decision. It combines the user's live calendar, per-weekday working hours, default meeting durations and custom blocked time. It honours every constraint collected during the negotiation: slots that were already rejected, excluded days and weekdays, time-zone and DST alignment, and multi-participant availability. An urgent mode, triggered by urgency detection, runs a separate search for the earliest viable slots. Because this business logic is deterministic, the assistant's decisions are predictable, explainable and testable.
-
Pausable Agent Workflow – The conversation is orchestrated as a LangGraph state machine of about 20 nodes. A scheduling negotiation can last for days, so the graph pauses while it waits for a participant's reply or the owner's approval, and resumes exactly where it left off. Redis checkpoints hold the workflow state. A Redis-backed long-term memory holds participant preferences and pending follow-ups across threads.
-
Human-in-the-Loop & Certainty Control – Users decide how much autonomy the assistant gets. For sensitive actions, such as a new meeting intent, urgency, a reschedule, a cancellation or reaching consensus, the owner can be asked to approve by email first. Auto-approve rules cover the safe cases: known contacts, internal colleagues, requests within working hours, and recurring or rescheduled meetings. A fully autonomous mode is available for users who want it.
-
Smart Follow-ups & Assistant Mode – Unanswered proposals trigger follow-ups with configurable count and timing, varied wording, formal, friendly or neutral tone, and an automatic stop as soon as someone replies. If the thread is still stalled, the assistant escalates to the owner. In assistant (EA) mode, it schedules on behalf of a specific person, using their name, title, communication tone and email signature.
-
Error Taxonomy & Operational Safety – Failures are classified by where they happened (calendar API, OAuth, rate limits, LLM parsing) and mapped to explicit recovery actions: notify the user, the participant or the owner, retry with backoff, or pause the workflow. Global and per-user kill switches let operators stop the assistant instantly. Tracing (Langfuse), metrics and centralized logging make every agent decision inspectable.
Business Outcome
The assistant went to production and served paying business customers, who rolled it out to their teams through seat-based plans. It removed scheduling back-and-forth from users' inboxes: up to 90% of meetings were scheduled with no user intervention, and users saved about 2 hours per week each, according to the time-saved metric shown in their profiles. Replies on a thread arrived in under a minute on average, measured from production logs.
Intent classification reached 98% accuracy, validated twice: offline on a labeled evaluation set, and online through production review of the first b usiness customer (15 seats) during its first month of use.
Splitting the work so that the LLM handles language and code handles scheduling decisions gave the product two properties together: it copes with messy, slang-filled human email, and its scheduling decisions stay predictable enough for users to grant real autonomy. After the production launch, the platform was handed over to the client.
Technologies
Planning something similar?
Tell me about it on a short call. New projects can start within 2 weeks