Template page: Post-discharge follow-up calls shows the whole chain, sample data and the apps it uses.
When a patient is discharged, your ward staff fill a short discharge form. That one form schedules three calls from an Edesy AI voice agent: day 1 (did you get the medicines, any pain or fever), day 3 (wound or symptoms, eating, walking) and day 7 (review visit booked, any questions for the doctor). The agent speaks the patient's language, asks fixed questions written by your clinical team, never gives medical advice, and marks any red-flag answer so a nurse calls back the same day. Every call is logged to a patient tracker table. A 2-minute call costs about ₹12 at ₹6 a minute on pay as you go (₹4 to ₹5 on monthly plans), plus telephony, so three calls per patient cost about ₹36 plus telephony.
Works with: discharge form to scheduled calls via Edesy Workflow (Flow's own form, or an Edesy Forms form through its Edesy Flow integration, with the Schedule Outbound Call action) · call log to Edesy Tables or Google Sheets, nurse alert by email or WhatsApp Native (voice post-call workflow steps) · your HIS or EMR via API (POST/api/v1/calls at discharge)
Note This recipe is for follow-up and escalation, not diagnosis. The questions and the red-flag list come from your doctors, and a nurse acts on every flag.
How it works#
Discharge form (ward staff) ──> Edesy Workflow run
patient, phone, doctor, │
procedure group, language, ├─ Schedule Outbound Call Delay 1440 min (day 1)
review date, consent ├─ Schedule Outbound Call Delay 4320 min (day 3)
└─ Schedule Outbound Call Delay 10080 min (day 7)
│ each call
▼
call.analyzed: disposition, summary,
red_flag, red_flag_reason, meds_ok, review_booked
│
voice post-call workflow (Data Extracted)
┌───────────────────────────┼──────────────────────┐
▼ ▼ ▼
Webhook → Edesy Tables Condition red_flag == true Unanswered:
patient tracker row → Email / WhatsApp to the retry later
nurse desk
Before you start#
- A voice agent with a phone number, set up as a follow-up caller (prompt below). Declare the variables
patient_name,doctor_name,hospital_name,call_day,review_date,procedure_group. See Creating an agent. - Your clinical team's question list and red flags for each procedure group (for example general surgery, maternity, cardiac).
- A voice agent API key (
vp_live_...) and the agent ID. - An Edesy Flow account at flow.edesy.in.
- An Edesy Tables table to log calls. The Patient Tracker template is a starting point.
- Optional: an Edesy Forms form for ward staff. The Discharge Instructions Form template has the base fields.
Step 1: The discharge form and the three calls#
- In Edesy Flow, open Integrations, find Edesy Voice Agent, click Connect, and enter a Connection Name and your voice agent API Key.
- Create a workflow. From Triggers, add Form. This form is for staff, so keep it short:
| Field | Type | Notes |
|---|---|---|
| Patient name | Short text | Required |
| Mobile number | Phone | The patient's or caregiver's number |
| Caregiver name | Short text | Optional; the agent asks for them if the patient can't talk |
| Doctor | Dropdown | Treating doctor |
| Procedure group | Dropdown | General surgery, Orthopaedic, Maternity, Cardiac, Medical |
| Language | Dropdown | Hindi, English, Marathi, Tamil, Telugu, Kannada, Bengali, Gujarati |
| Review date | Date | Follow-up OPD date |
| Consent recorded | Checkbox, required | "Patient or caregiver agreed to follow-up calls at discharge." |
- Add an Integration step: Edesy Voice Agent, Select Action: Schedule Outbound Call:
| Input | Value |
|---|---|
| Agent ID | 4105 (your follow-up agent; or one agent per language) |
| Phone Number | {{trigger.body.mobile}} (pick it from Form answers) |
| Delay (minutes) | 1440 (24 hours) |
| Dedup Key | dc1:{{trigger.body.mobile}} |
| Call Variables | { "patient_name": "{{trigger.body.patient_name}}", "doctor_name": "{{trigger.body.doctor}}", "hospital_name": "Sahyadri Care Hospital, Nashik", "call_day": "1", "review_date": "{{trigger.body.review_date}}", "procedure_group": "{{trigger.body.procedure_group}}" } |
- Add two more Schedule Outbound Call steps the same way: Delay (minutes)
4320with"call_day": "3"and Dedup Keydc3:..., and10080with"call_day": "7"and Dedup Keydc7:.... - Save and turn the workflow on.
The Dedup Key keeps one pending call per key: if staff submit the form twice for the same patient, the second submission replaces the pending calls instead of doubling them.
Already using Edesy Forms? Build the same workflow without the Flow form, then in Edesy Forms open Integrations, find the Edesy Flow card under Edesy apps, click Add, and pick the form and this Workflow. Answers arrive under trigger.body.answers by question label; copy the exact paths from a test run. If the card says "Not available yet", use the Flow form.
Step 2: Log every call and flag red flags#
- Add a post-call extraction template with the fields in the data map below.
- In the agent's Integrations tab, open Post-Call Workflows, Add Workflow, trigger Data Extracted.
- Add a Webhook step to your patient tracker, as in Call results to Edesy Tables, with fields such as Patient, Phone, Call day, Meds OK, Red flag, Reason, Review booked, Summary, Recording.
- Add a Condition step
red_flag == true, then an Email step to your nurse desk (and, if you use WhatsApp, a WhatsApp template step to the duty nurse's number) with{{recipientName}},{{recipientPhone}},{{red_flag_reason}}and{{callSummary}}. - Add a second workflow on Call Ended filtered to
NO_ANSWERandBUSY, with a Delay of 2 hours and a Voice call step to{{recipientPhone}}using a separate retry agent with the same prompt, so the retry can't loop. If the retry also fails, the tracker row says so and the ward calls.
Data map#
| Direction | Field | Meaning |
|---|---|---|
| Into the call | phoneNumber |
Patient or caregiver mobile |
| Into the call | patient_name, doctor_name, hospital_name, call_day, review_date, procedure_group |
Spoken or used to pick the questions |
| Back (extraction) | meds_ok |
Boolean: has the medicines and is taking them |
| Back (extraction) | red_flag |
Boolean: any answer on your red-flag list |
| Back (extraction) | red_flag_reason |
Text, for example "fever since last night, 101°F" |
| Back (extraction) | pain_score |
Text, 0 to 10 if asked |
| Back (extraction) | review_booked |
Boolean (day 7) |
| Back (extraction) | wants_callback |
Boolean: wants a nurse or doctor to call |
| Back | disposition |
SUCCESS, CALLBACK_REQUESTED, NO_ANSWER, WRONG_NUMBER, DO_NOT_CALL |
| Back | callSummary, callRecordingUrl, conversationId |
For the nurse and the patient file |
Sample agent prompt#
You are the follow-up assistant of {{hospital_name}}. You call patients after
discharge on behalf of {{doctor_name}}'s team. This is follow-up call day {{call_day}}
for {{patient_name}} ({{procedure_group}}).
Start in Hindi: "Namaste, main {{hospital_name}} se bol rahi hoon. Kya meri baat
{{patient_name}} ji se ho rahi hai?" If a family member answers, ask if they look
after the patient and continue with them. Switch language if asked.
Say early: "Main ek automated assistant hoon. Kuch zaroori sawaal poochhungi."
Day 1: Did you get all the medicines on the discharge sheet? Are you taking them?
Any fever, bleeding, breathlessness, chest pain or severe pain (7 or more out of 10)?
Day 3: How is the wound or the main symptom? Any swelling, discharge or fever?
Are you eating and walking as advised?
Day 7: Is the review visit on {{review_date}} confirmed? Any questions for the doctor?
Red flags: fever above 100°F, bleeding, breathlessness, chest pain, fainting, pain 7+,
wound discharge, not passing urine. If ANY red flag: do not advise, say "Main abhi
nurse ko bata rahi hoon, woh aaj aapko call karengi. Emergency ho toh turant hospital
aaiye ya 108 call kijiye." Set red_flag.
Never give medical advice, change doses or interpret reports.
If they don't want more calls, thank them, end, and set DO_NOT_CALL.
Test it#
- Submit the discharge form with your own number and temporarily set the first Delay (minutes) to
2. - Answer, report "fever since last night", and end the call.
- Check the tracker row (
red_flagtrue, reason filled) and the nurse desk email. - Set the delays back to
1440,4320and10080.
Consent, privacy and calling hours#
- Consent: record the patient's or caregiver's agreement to follow-up calls at discharge, and keep the checkbox required.
- Privacy: the agent should not say the diagnosis or procedure aloud until it has confirmed it is speaking to the patient or their caregiver. Keep the tracker base restricted to the care team.
- DND: Edesy does not scrub numbers against the NCPR (DND) registry. These are service calls about the patient's own care; keep them free of promotions.
- Calling hours: set Settings → Call Settings → Calling Window to 9:00 to 21:00 IST. A discharge at 10 pm gives a day-1 call that falls at 10 pm the next day; the window holds it until the next morning.
- Stop on request: a patient who says no more calls ends
DO_NOT_CALL; add the number to Settings → Blocked Numbers. Pending calls with that number are refused.
Troubleshooting#
| Problem | Check |
|---|---|
| Calls didn't get scheduled | Open the Flow run: each Schedule Outbound Call step shows Scheduled At and a Job ID, or an error (agent ID, key, empty phone) |
| Only one call instead of three | The three steps share a Dedup Key; give each day its own prefix |
| Day-1 call at an odd hour | It is 24 hours after the form, held by the calling window if outside it. Ask staff to submit the form at the time of discharge, not at the end of the shift |
| No nurse alert | The extraction key isn't exactly red_flag, or the Condition compares to the text "true". Check the execution history for the value |
| Patient's family answers every time | Expected for elderly patients; the prompt continues with the caregiver |
What it can't do yet#
- It doesn't read your HIS or EMR. Staff fill the discharge form, or your HIS calls the Calls API at discharge.
- Pending calls aren't cancelled automatically when a patient is readmitted. Make a small second workflow (a Form with the mobile number) with three Edesy Voice Agent steps, Select Action: Cancel Scheduled Call, using the same Dedup Key values (
dc1:...,dc3:...,dc7:...), and have staff fill it at readmission. - The agent doesn't book the review visit in your OPD system; it confirms the date you gave and flags patients who need a new slot.
FAQ#
Why day 1, 3 and 7? Day 1 catches medicine and pain problems, day 3 catches wound and infection problems, and day 7 makes sure the review visit happens. Your doctors can change the days; change the delays.
Can it speak to elderly patients in their language? Yes. Pick the agent per language from the form, or let one agent switch. The agent supports 14 Indian languages, plus English and Hinglish.
Is this medical advice? No. The agent asks your fixed questions and passes concerns to a nurse. It is told never to advise.
What does a patient cost? Three 2-minute calls are about ₹36 at ₹6 a minute on pay as you go, less on monthly plans (₹4 to ₹5 a minute), plus telephony.
Related#
- Blog: Post-discharge follow-up calls with AI voice
- Appointment reminder call
- Call results to Edesy Tables
- Clinic kit · Patient follow-up calls · Hospital voicebot · Edesy Workflow
Start free · Book a demo · Don't see your app? Request it