A contractor listens to a voicemail: "I'll send the signed addendum by the end of next week, and the invoice has to be paid by the 15th." He nods, hangs up, and the date evaporates. Three weeks later the invoice is overdue and nobody remembers who promised what.
The reason is not forgetfulness. The date never lived in a structured field — it lived in sound. This guide builds a Python service that turns a voice call into a confirmed calendar reminder: voice → text → extracted date, amount, counterparty → human confirmation → reminder in a bot and in the calendar. The AI drafts the parse; a person approves anything ambiguous. By the end you will have a working pipeline, a list of where date formats and bad audio break it, and a hand-run test scenario you can replay on your own recordings.
What you get at the end, and how you know it works
At the end there is a service that watches a call source (an uploaded audio file, a shared folder, or a telephony webhook), transcribes it, pulls out deadlines, amounts and counterparties, and sends you a message that looks like this:
Call from Acme Supplies, 4 Nov. Deadline: pay invoice, 15 Nov. Amount: 4,200 USD. Confidence: medium — the speaker said "by the 15th" without a month. Confirm or fix.
You tap Confirm, and the reminder lands in the calendar and is repeated by the bot two days before. You tap Fix, and the corrected date goes back into the record.
The success sign is measurable, not vibes: on a set of real recordings, every deadline you care about either produced a confirmed reminder or was flagged for review. Zero silent misses. That is the only acceptance criterion that matters — not the transcript's beauty. More on the topic: “Deadline reminders from your own database: how to build a service that emails a templated attachment N days before renewal and never lets you forget”.
The model that stops dates from disappearing
The myth is that reminding about a deadline means putting an event in a calendar. The calendar is the last step, not the system. The system is a chain where each link can drop the date:
- Audio arrives and is stored somewhere durable.
- Speech becomes text (transcription).
- Text becomes a draft parse: date, amount, counterparty, action.
- A human confirms or corrects ambiguous fields.
- A reminder is written to the bot and the calendar, with a link back to the original recording.
Every step needs an owner. The AI owns the draft (steps 2–3). The human owns the decision (step 4). Your code owns the plumbing and the retries. If you let the AI own step 4, the service will confidently put "the 15th" in the wrong month and nobody will notice until the deadline passes.
Step by step, with an owner for each
Step 1. Freeze the input contract (owner: you)
Before writing extraction code, decide what a "call" is for your service. Three realistic inputs:
- Uploaded files — a folder or an upload form. Simplest, no telephony integration, works for voicemail dumps.
- Telephony webhook — your provider posts a recording URL when a call ends. You need the provider's docs for the event payload and the recording fetch call; do not guess field names, check them.
- Shared drive — a synced folder where a recorder drops files.
Pick one. The pipeline downstream is identical; only the adapter changes. Store the original audio and a hash of it so you never process the same file twice.
Step 2. Transcription (owner: AI, checked by you)
Send audio to a speech-to-text API. In Python the shape is always the same: open the file, call the client, get text plus timing metadata. Whether you use a cloud speech API or a local model, check three things in its docs before coding: supported audio formats, the maximum file size or duration per request, and whether it returns word-level timestamps. Timestamps matter later — they let you jump from an extracted date back to the second it was spoken.
Your check at this step: transcribe five of your own recordings and read them. If names and numbers are mangled on clean audio, the problem is the audio, not the extractor.
Step 3. Draft extraction (owner: AI, reviewed by you)
This is where the date stops being sound and becomes a field. Ask the model for structured output — a JSON object with date_text (the raw phrase: "end of next week"), date_resolved (an ISO date you compute, not the model), amount, counterparty, action, and confidence. Keep the raw phrase always: when the confirmation screen shows "15 Nov" next to the original words "by the 15th", the human catches the error in one second.
Resolve relative dates in your own Python, not in the model. "Next week", "the 15th", "end of month" are arithmetic against the call date — and arithmetic is testable. The model's job is to find the phrase; your code's job is to turn it into a date.
Step 4. Confirmation (owner: human)
Route only ambiguous cases to a human: missing month, two dates in one sentence, a date that has already passed, low confidence. Everything else can auto-confirm with a notification. The confirmation UI can be a bot message with two buttons — Confirm and Fix — plus a link to the audio at the right timestamp.
Step 5. Reminder fan-out (owner: your code)
After confirmation, write the event to the calendar (via the calendar API your team actually uses — Google Calendar, Microsoft Graph, CalDAV; check the docs for event creation and reminder fields) and schedule the bot reminder. Make this step idempotent: store the external event ID so a retry updates the event instead of creating a twin.
If the build is longer than you want to own — telephony adapters, calendar APIs, retries — asibiont.com takes such projects on turnkey: the developer names the price, you top up the balance and pay it. Details are on https://asibiont.com/en/subscription-tiers.
Access and data: what to get before you start
| What you need | Where it comes from | If you cannot get it |
|---|---|---|
| Speech-to-text API key | Provider console; check quota and per-file limits in the docs | Run a local speech model; slower, but no key |
| LLM API key for extraction | Provider console | Rule-based regex extraction for dates; weaker on free speech |
| Calendar write access | OAuth consent for a service account or your own account | Bot-only reminders; the calendar step is skipped |
| Call recordings | Telephony provider export or webhook | Start with uploaded files — the pipeline is the same |
| Bot token | Your messenger's bot platform | Email reminders as a fallback channel |
One access is often impossible: a telephony provider that offers no recording API and no export. There is no clean workaround — you cannot pull audio that the provider will not give you. In that case the service starts as a manual upload tool, and the phone integration waits for a provider change.
Personal data is the second constraint. Call recordings contain voices and names; under data protection law such as the GDPR you need a lawful basis and a retention limit. Decide up front how long audio is kept and delete it on schedule — this is a design decision, not a cleanup task.
Where it breaks, and what to do about it
Dates in speech are ambiguous by nature. "The 15th" has no month; "next Friday" depends on when the call happened; "end of next week" is a range, not a day. The fix is not a smarter model — it is the raw-phrase-plus-confidence design: anything without a month or a clear anchor goes to human review, and relative phrases resolve against the call timestamp, never against the moment of processing.
Bad audio quietly produces wrong numbers, not empty output. A mumbled "fifteen" can become "fifty" with full confidence. The fix: cross-check extracted amounts and dates against the transcript text with a simple consistency rule, and route any mismatch to review. Also keep the audio timestamp so a human can listen to the exact three seconds.
Duplicates and lost retries. A webhook fires twice, or the calendar call times out after it already succeeded, and you get two reminders for one deadline. The fix: hash the audio to deduplicate input, and store external event IDs so writes update rather than create.
How to verify it by hand
Run these scenarios yourself before trusting the service:
- The clean case. One speaker, one clear date. Success sign: reminder created without human review, date matches the spoken date.
- The missing month. "By the 15th." Success sign: the item lands in review, not in the calendar.
- The relative date. "End of next week", call made on a Wednesday. Success sign: resolved date matches your own hand calculation from the call date.
- The duplicate. Send the same file twice. Success sign: one reminder, one calendar event.
- The bad audio. A noisy recording with a number. Success sign: the amount is either correct or flagged — never silently wrong.
- The disputed deadline. Pick a confirmed reminder and open its audio link. Success sign: it plays the seconds where the date was spoken.
What it costs in time and money
Order of magnitude: a working single-input version — upload, transcribe, extract, confirm in a bot, write to calendar — is a few days of work for someone comfortable with Python and APIs. Telephony webhooks, retries and the review UI add more, and the honest answer is that the calendar and telephony integrations usually take longer than the AI part.
Money depends on three things: minutes of audio per month (speech-to-text is billed per minute), number of extraction calls (LLM APIs are billed per token), and whether you run any local model on your own hardware. You can estimate your own bill from your call volume and the providers' published per-minute and per-token rates — check current pricing in their docs rather than trusting any number in an article, including this one.
The part that decides whether the project succeeds is not the model. It is whether every date has an owner: the AI drafts, the human confirms the ambiguous ones, and the code never lets a date leave the pipeline without landing in a confirmed reminder or an explicit review queue. Build that, and the voicemail about "the 15th" stops being a memory test. If you would rather hand the whole build over, asibiont.com takes such projects on turnkey — the developer names the price, you top up the balance: https://asibiont.com/en/subscription-tiers.