Escalate your AI’s edge cases to a human physician
Send the context to our API. A physician reads it and chats with your user, right in your app. Prescribing when needed.
Your app
You · 9:12 AM
Are you sure it's a side effect?
Your AI agent · 9:12 AM
I'm not certain. I'd like a physician to answer this one. OK to send them this conversation?
You · 9:13 AM
Yes please
Elena Park, MD · 11:40 AM
Hi, I read your conversation. When did you first notice it?
When your agent should ask a doctor
You decide when to escalate. These are common places to start.
- Symptoms that don't fit
- The history points in two directions, or the agent's confidence is low.
- Results that need context
- A lab value or finding your agent can explain but shouldn't act on alone.
- Medication questions
- Interactions, side effects, and missed doses.
- “I'd like to ask a doctor”
- Your user wants a human answer.
Physician chat is asynchronous and is not for emergencies. Your agent should direct possible emergencies to 911.
How it works
- 1
Your agent sends the context
Your agent writes up the conversation as a clinical summary and POSTs it. If something a physician needs is missing, the API says what, so your agent can ask before anyone waits on an answer.
- 2
Your user agrees to see a doctor
They review what will be sent and consent to care with Appendix.
- 3
A physician reads it and replies
The physician reviews the case, asks your user follow-up questions, and gives their own recommendation.
- 4
The conversation continues in your app
A signed webhook tells you a message is waiting. Your app reads the message by API, shows it in your chat, and sends your user's reply back.
Escalate to a physician
/api/v1/prescribing/query1{2"query": "# Chief Complaint\nAsks whether a symptom is a medication side effect...",3"patient_email": "user@example.com",4"patient_phone": "+12155550123",5"patient_state": "PA",6"patient_zip": "19103",7"external_id": "thread_8842"8}
Webhook: a physician message is waiting
1{2"type": "encounter.message",3"data": {4"external_id": "thread_8842",5"status": "in_review",6"rx_count": 0,7"details_url": "https://api.appendix.com/api/v1/prescribing/..."8}9}
Advice first. Prescribing when needed.
Escalations run on Appendix’s Prescribing API, though they don’t have to end in a prescription. Every case gets a physician’s own judgment.
Advice
The physician answers the question, and no prescription is needed.
A prescription
When clinically appropriate, the physician prescribes. Your user gets a text to choose their pharmacy.
In-person care
The physician tells your user they need to be seen, and why.
Evaluating your AI instead of caring for a patient? Use the Decisions API.
Frequently asked questions
What is AI agent escalation to a physician?
It is a handoff from an AI agent to a human doctor when a medical question is beyond what the agent should answer alone. With Appendix, the agent sends the context through the Prescribing API, and a board-certified physician reviews it and messages the user. The physician gives advice, prescribes when appropriate, or recommends in-person care.
Why does an advice question use the Prescribing API?
The Prescribing API is the Appendix API for decisions about an individual patient. A prescription is one possible outcome. Advice with no prescription is another standard outcome.
Can the physician chat with my user inside my app?
Yes. With full data visibility and the patient's consent, an encounter.message webhook tells your app a message is waiting, your app reads it from the details endpoint, and you send the user's replies back by API. The webhook itself never contains the message. Without full visibility, your user chats on a secure page hosted by Appendix.
How quickly does a physician respond?
Physician chat is asynchronous. Tell your users to allow 24 hours for a response. It is not for emergencies: your agent should direct possible emergencies to 911 and should not escalate them through Appendix.
How is this different from the Appendix Decisions API?
Use the Prescribing API when the answer will guide care for one person. Use the Decisions API to evaluate an AI system: comparing releases, sampling quality, or labeling data. Decisions API answers are informational and are not for an individual's diagnosis, treatment, or triage.
What does it cost?
You pay per completed physician review. Sandbox testing is free. Current rates are at appendix.com/docs/prescribing-api/pricing.
How do I get started?
Get a free test key and build the whole flow in the sandbox, including simulated physician messages. Before production, we review your use case with you.
Your AI knows when to ask.
Appendix brings the doctor.
Sandbox keys are free and instant.