Documentation Index
Fetch the complete documentation index at: https://docs.medera.info/llms.txt
Use this file to discover all available pages before exploring further.
Category: Clinical Operations · Voice agent: Grace (
AgentType.INTAKE) · Voice ID: ElevenLabs 21m00Tcm4TlvDq8ikWAM (Rachel)nova-2-medical transcription, and follows a documented 7-state conversation state machine with 10 task types.
Conversation state machine
ESCALATED (reachable from any state).
Task types (TaskType enum)
IDENTITY_VERIFICATION, INSURANCE_VERIFICATION, APPOINTMENT_SCHEDULING, REFERRAL_PROCESSING, PRE_AUTHORIZATION, PRESCRIPTION_REFILL, BILLING_CALCULATION, SYMPTOM_DOCUMENTATION, CHIEF_COMPLAINT, URGENT_CARE_TRIAGE.
Function calls
Grace’s prompt registers 4 function calls that the LLM can invoke during the call:| Function | Signature |
|---|---|
verify_identity | (patient_id, verification_data) — 2-of-3 required (DOB, address, SSN last 4) |
document_symptom | (symptom_description, severity_level, onset_date) |
flag_for_review | (reason, urgency_level) |
escalate_urgent | (escalation_reason, call_action) |
Workflow modules
The intake conversation runs one of three reusable workflow modules:| Module | Purpose |
|---|---|
general_intake | Baseline demographics + insurance + chief complaint |
prescription_refill | Medication history + formulary checks |
lab_flagged | Lab requisition + specimen handling |
System prompt structure
GRACE_SYSTEM_PROMPT_TEMPLATE is composed of 13 sections, including:
- PATIENT CONTEXT (name, DOB, provider, conditions, meds, allergies)
- CALL SCENARIO (type + scenario_details)
- CONVERSATION GUIDELINES (tone, opening, AI / recording disclosure — mandatory, identity verification, info gathering, sensitive topics, urgent situations, closing)
Configuration
| Field | Description |
|---|---|
intake_template_id | Practice intake template (fields, screeners, scripts) |
screeners | Default ["phq-9", "gad-7", "audit-c", "c-ssrs"] |
routing_matrix | Practice routing rules by acuity and payer |
language | Preferred language for the call |
crisis_escalation_tree_id | Practice escalation policy + handoff destinations |
workflow_modules | ["general_intake"] by default |
Composable experts
| Expert | Role |
|---|---|
| Vocal Prosody Expert | F0, jitter, shimmer for affect and acuity inference |
| Linguistic Content Expert | Topic, valence, certainty, pronoun shift markers |
| Validated Screener Expert | PHQ-9, GAD-7, AUDIT-C, C-SSRS administration and scoring |
| C-SSRS Risk Expert | Suicide-risk classification with documented rationale |
Compliance guarantees
- Verbal recording + AI disclosure is mandatory before any clinical questions
- Identity verification requires 2-of-3 confirmation
- Crisis-language detection bypasses agent gating and triggers
escalate_urgent - Every claim in the summary is anchored to a quoted span in the transcript
Related
Quickstart
Deploy Grace in 15 minutes.
Vapi Webhooks
Webhook event schema.
Intake API
Backend REST surface.
Care Orchestrator
Multi-agent runtime.