A patient calls to ask about a refill. She says "Xarelto." The agent hears "Zocor." Both are real drugs, both are common, and they treat completely different problems. The agent's next question is now wrong, the patient knows something is off, and whatever trust the deployment had built is gone in one turn.
That's the failure mode that separates a healthcare voice agent from a general one. Everything else in the stack, the telephony, the LLM, the voice and the escalation logic, is the same problem everyone building voice agents solves. The clinical vocabulary isn't, and neither is the paperwork: every vendor that touches the call's audio or text needs a signed Business Associate Addendum (BAA) before real patients call in.
Two facts to anchor the build. Medical Mode posts a 3.2% Missed Entity Rate (measured on Universal-3.5 Pro), and it runs on AssemblyAI-STT-3.7-Realtime-Agent with the same one parameter. And AssemblyAI's speech-to-text and text-to-speech sit under one BAA that paid accounts sign self-serve.
What a healthcare voice agent is, and how to build one
A healthcare voice agent holds a spoken conversation with a patient or member and does something as a result: books an appointment, collects intake answers, confirms a medication list, routes a refill request, follows up after a discharge. It listens, understands, decides and speaks back.
Every voice agent is three functions in a loop: speech-to-text, an LLM, and text-to-speech. There are two ways to put them together.
The assembled pipeline
You wire streaming speech-to-text to an LLM to a text-to-speech service, and you own the orchestration: turn detection, interruption handling, latency budget and error recovery. More work, more control. It's worth it when you have unusual routing logic, an existing agent framework, or strict requirements about which model handles reasoning.
The framework-orchestrated pipeline
You plug AssemblyAI-STT-3.7-Realtime-Agent for speech-to-text and AssemblyAI's Text-to-Speech API for voice output into LiveKit or Pipecat, and the framework handles transport, turn-taking and interruptions. For most healthcare use cases, such as scheduling, intake, refill requests and reminders, this is the faster path to something you can put in front of patients.
Either way, two decisions are specific to healthcare: whether every vendor in the call path signs a BAA, and whether the speech layer gets medication names right. The next two sections take them in that order.
Which voice agent platforms and APIs sign a BAA
If a voice agent handles protected health information (PHI), every vendor that processes the call's audio or text is a business associate, and each one needs a BAA in place before the first real call. Below is what each option's own page says about getting one. Vendors change these terms, so re-check each page before you sign anything.
One point trips up most security reviews: a platform's BAA covers that platform. It doesn't cover the speech-to-text, LLM, text-to-speech or telephony vendors you bring into the call unless the platform says so in writing. Ask each one.
Start free: new accounts get $50 in credits for the speech APIs, including text-to-speech. Upgrade to a paid plan and sign the BAA from the dashboard before real patients call in.
The latency budget
Conversation has a rhythm, and people notice when it breaks. The working rule of thumb for voice agents is that a response should land within about a second of the caller finishing. Beyond that, callers start repeating themselves or assume the line dropped.
That second gets spent across four things: detecting that the caller finished, finalizing the transcript, generating a response and synthesizing speech. AssemblyAI-STT-3.7-Realtime-Agent returns the final transcript 86 ms after the caller stops speaking, per the Realtime-Agent research post. Turn detection defaults to min_turn_silence 128 ms and max_turn_silence 1280 ms on the balanced preset, and the mode parameter lets you choose explicitly: min_latency, balanced or max_accuracy.
Healthcare callers are more likely than most to pause mid-utterance: elderly patients, patients reading a medication list off a bottle, patients who are unwell. A system tuned for a fast-talking sales caller will interrupt them. For a scheduling agent, balanced is the right start. For an agent capturing a medication list that lands in a chart, max_accuracy is worth the extra milliseconds, because a caller forgives a slightly slower agent long before they forgive a wrong drug name.
Why speech recognition quality is the binding constraint
An LLM can't recover a drug name it never received. Teams evaluate the agent end to end, see it behave sensibly on scripted test calls, and never measure how often the transcript was already wrong.
The metric to evaluate on is Missed Entity Rate, not Word Error Rate. WER weights "the" the same as "tirzepatide", so an agent can post an excellent WER and still lose every medication name in the call.
Figures come from the table on the medical transcription use case page. For agent builders, the useful part is that Medical Mode is the same parameter on streaming as on async. If your live agent and your post-call pipeline use different models, they'll disagree about what the patient said, and reconciling that is a category of bug you don't want.
On general entities in voice-agent calls (names, phone numbers, dates, numbers), AssemblyAI-STT-3.7-Realtime-Agent had the lowest entity error rate of the 26 streaming models AssemblyAI ran: 13.2%, with a 4.53% word error rate.
Getting the medication names right
Three mechanisms stack here, and using all three is the difference between a demo and a deployment.
Medical Mode
One parameter, domain: "medical-v1". It corrects medication names, generic and brand, that speech models often get wrong, in English, Spanish, German and French. Against the base model without it, it posts roughly 20% fewer missed medical entities and 87% fewer entity errors. It's a $0.15/hr add-on on top of the $0.45/hr streaming base, so $0.60/hr combined. The streaming Medical Mode docs cover setup.
Contextual prompting with prompt
If you can identify the caller before the conversation starts, and in a patient portal or a callback flow you usually can, describe the call in prompt: the clinic, the reason for the call, the medications on the patient's list. On 20,000 real voice-agent calls in the prompting and keyterms docs, scenario-level context cut WER by 10% and medical-term entity errors by 24%; detailed context cut WER by 21% and medical-term entity errors by 43%. Prompting works alongside Medical Mode; it doesn't replace it.
Context carryover with agent_context
agent_context carries what your agent just said into the decode, so the model isn't transcribing each turn cold. Set it at connection time with the agent's greeting, then send it in an UpdateConfiguration message after each agent reply. If the agent just asked "which medication are you calling about?", the model decodes the answer expecting a drug name.
Real phones, real rooms
Phone audio is narrowband and compressed. Speakerphone in a kitchen is worse. Two controls matter.
voice_focus takes near-field or far-field. Handset calls are near-field; a patient on speakerphone across a room is far-field. Voice Focus is a $0.10/hr add-on on AssemblyAI-STT-3.7-Realtime-Agent.
Diarization matters more than people expect on healthcare calls, because a caller often isn't alone: an adult child on the line for a parent, an interpreter, a caregiver answering on the patient's behalf. Set speaker_labels: true and cap the count with max_speakers (up to 10); every turn then carries a speaker label.
And language: the streaming model code-switches across 32 languages with no configuration, so a caller switching between Spanish and English mid-sentence doesn't break the transcript. Medical Mode itself covers English, Spanish, German and French. Keep those two facts separate when you plan coverage.
Building the streaming layer
import asyncio import json from urllib.parse import urlencode import websockets CONFIG = { "sample_rate": 16000, "speech_model": "assemblyai-stt-3-7-realtime-agent", "domain": "medical-v1", "mode": "balanced", "voice_focus": "near-field", "speaker_labels": True, "prompt": "Inbound patient call to a cardiology clinic. Active medications: apixaban, atorvastatin, metoprolol.", "agent_context": "Thanks for calling Northside Cardiology. Which medication are you calling about today?", } async def run_agent(phone_audio, on_transcript, agent_replies): query = urlencode({k: str(v).lower() if isinstance(v, bool) else v for k, v in CONFIG.items()}) url = "wss://streaming.assemblyai.com/v3/ws?" + query async with websockets.connect( url, additional_headers={"Authorization": "YOUR_API_KEY"} ) as ws: async def send_audio(): async for chunk in phone_audio: await ws.send(chunk) async def send_agent_context(): # After each agent reply, pass what the agent just said. async for reply in agent_replies: await ws.send(json.dumps({"type": "UpdateConfiguration", "agent_context": reply})) async def receive(): async for msg in ws: event = json.loads(msg) if event.get("type") == "Turn" and event.get("end_of_turn"): await on_transcript(event["transcript"]) await asyncio.gather(send_audio(), send_agent_context(), receive())
Streaming takes speech_model (singular), while the async API takes speech_models as a list. The model IDs differ too: assemblyai-stt-3-7-realtime-agent for streaming, assemblyai-stt-3-7 for async.
On scale: there's no cap on how many streaming sessions you hold open at once. The rate limit counts new sessions per minute: 200 on paid accounts and 5 on free ones. When you open 80% or more of your limit in a minute, the next minute's limit rises by 10% automatically. Go over it and the server closes the new session with code 1008; back off and reconnect in the next minute.
Hear The Streaming Model On Clinical Audio
Try AssemblyAI-STT-3.7-Realtime-Agent with Medical Mode in the playground, including prompting and the latency modes, before you write orchestration code.
Try playground
Which use cases are ready now, and what to escalate
Not all of them. Here's an honest sort.
Ready today
- Scheduling and rescheduling. Bounded intent, a verifiable outcome and low harm if the agent has to escalate. This is where nearly everyone should start.
- Refill status and prescription routing. The agent confirms which medication and which pharmacy and routes the request. It makes no clinical decisions about the refill.
- Insurance eligibility and benefits questions. Tedious, high-volume, rules-based, and callers hate waiting on hold for them.
- Appointment reminders and pre-procedure instructions. Outbound, scripted, with confirmation capture. Reliable, and measurable in no-show rates.
- Post-discharge check-ins. Structured questions, with escalation on any concerning answer. The agent's job is to ask consistently and hand off fast.
Not ready
Anything that renders clinical judgment: symptom triage where the agent decides urgency, medication counseling, or anything where a wrong answer harms someone and no human is in the loop to catch it.
The design rule to hold to: a healthcare voice agent should route, confirm and capture. It shouldn't decide. Build the escalation path before you build the happy path, and make escalation cheap; a caller who reaches a human in twelve seconds is a satisfied caller even when the agent failed. For a worked triage flow that follows this rule, see the telehealth triage voice agent build, and for the wider set of patient-facing workflows, conversational AI in healthcare.
Integration and escalation
Three integration surfaces decide whether the agent is useful or just impressive.
Telephony. Whatever carries the call has to hand you raw audio frames you can stream, and accept synthesized audio back with little added latency.
The system of record. An agent that can't read the schedule or the medication list is guessing. Read access is what makes contextual prompting possible; write access is what saves anyone time.
Human escalation. Design the handoff before the happy path. The agent should escalate on any clinical-urgency signal, on repeated misunderstanding, and whenever the caller asks, and it should hand the transcript so far to the human so the patient doesn't repeat themselves.
PHI, BAA and security
What your security review will ask for, stated plainly:
- AssemblyAI is considered a business associate under HIPAA and offers a standard Business Associate Addendum (BAA) for customers processing PHI. Paid accounts sign it self-serve from the Data Controls page. Per the docs FAQ, the BAA applies to the full AssemblyAI product, with the exception of some LLM Gateway providers. See the Business Associate Addendum itself.
- Once the BAA is signed, files submitted under it aren't used for model training.
- Streaming PII redaction (redact_pii) redacts the text of final turns before they reach your client. Audio redaction is a pre-recorded feature, so run it in the post-call pass if you keep recordings.
- SOC 2 Type 2 covers platform controls.
- EU data residency keeps processing in the EU. Self-hosted deployment of the speech model keeps audio inside your network, but Medical Mode isn't available self-hosted, and the SageMaker endpoint also refuses PII redaction, diarization and Voice Focus.
Get every BAA in the call path executed before the pilot, not during it.
What it costs
Budget for async too. Re-transcribe every call after the fact with AssemblyAI-STT-3.7 for QA, because async sees the whole recording and catches the errors your live pipeline made. That's how you find out your agent mishears one provider's name on 8% of calls. AssemblyAI-TTS-1 is trained on millions of hours of audio, including real conversational data; the text-to-speech API guide covers voices and setup. Full rates are on the pricing page. The speech line is only part of the total, so budget for LLM tokens and the engineering time to keep the latency budget intact.
Where this is going
The next constraint on healthcare voice agents isn't accuracy or latency; both are good enough for the ready-today workflows. It's trust architecture: who's accountable when the agent gets it wrong, and how a health system proves to itself that the agent is safe to leave running overnight.
That's a measurement problem. The teams that win will be able to show, from their own call logs, their entity accuracy on their own formulary, their escalation rate by intent, and which calls the agent should never have taken. That evidence is what moves use cases out of the "not ready" column, and it's built from post-call transcripts you could start collecting this week. The healthcare voice agents report and the healthcare voice agent solutions page go further on deployment patterns.
Planning A Patient-Facing Voice Deployment?
Talk through architecture, latency budgets, BAA execution and PHI redaction with someone who has helped teams ship healthcare voice agents.
Talk to AI expert
Frequently Asked Questions (FAQs)
Which voice agent platforms sign a BAA for healthcare?
Retell AI, Vapi, Bland AI, ElevenLabs Agents, Deepgram's Voice Agent API and OpenAI's Realtime API all describe a BAA path on their own pages, but the terms differ: Retell offers a self-signed BAA, Vapi a paid compliance add-on, and Bland, ElevenLabs and Deepgram sign on Enterprise plans. An assembled stack needs a BAA from each vendor in the call path. Re-check each vendor's page before you sign.
Does AssemblyAI sign a BAA for voice agents, and does it cover text-to-speech?
Yes. AssemblyAI is considered a business associate under HIPAA, and paid accounts sign its standard Business Associate Addendum (BAA) self-serve from the dashboard. The docs state the BAA applies to the full AssemblyAI product, which includes speech-to-text and text-to-speech; the only exception is some LLM Gateway providers.
Which AI voice agent vendors sign a BAA for HIPAA workloads?
No vendor's product makes your deployment compliant on its own; what you can check is whether each vendor in the call path signs a Business Associate Addendum (BAA) and how you get it. AssemblyAI is considered a business associate under HIPAA and offers a standard BAA for customers processing PHI. Your LLM, telephony and hosting vendors each need their own.
How accurate does a healthcare voice agent need to be on medication names?
Accurate enough that a caller never has to correct a medication name, because that's where trust breaks. Evaluate on Missed Entity Rate rather than Word Error Rate. Universal-3.5 Pro with Medical Mode measures a 3.2% Missed Entity Rate, and Medical Mode runs on AssemblyAI-STT-3.7-Realtime-Agent with the same parameter.
What should a healthcare voice agent handle, and what should it escalate?
A healthcare voice agent is ready for scheduling, refill status and routing, insurance eligibility, reminders, pre-procedure instructions and structured post-discharge check-ins. It should escalate anything that needs clinical judgment, such as symptom triage that decides urgency or medication counseling. Route, confirm and capture; hand everything else to a human, fast.
Does a streaming voice agent redact PHI automatically?
Only when you turn it on. With redact_pii enabled, AssemblyAI's streaming API redacts PII in the text of final turns before sending them to your client, and partial turns are switched off by default so unredacted text doesn't reach you. Audio redaction runs on pre-recorded audio, so redact stored call recordings in a post-call pass.










