Appointment Reminders & Scheduling
Automatically remind patients of upcoming appointments and handle rescheduling in a single call, reducing no-shows and freeing front-desk staff.
Why this matters
HIPAA-compliant voice automation for patient engagement, scheduling, and clinical workflows. This example shows you how to automate appointment reminders & scheduling calls end-to-end with Guava's SDK — no telephony plumbing, no prompt engineering, just Python.
Installation
Install from Guava's private PyPI index. A public package is coming soon — the install command will simplify to pip install guava.
# Step 1: Install Guava
pip install gridspace-guava --extra-index-url https://guava-pypi.gridspace.com
# Public PyPI package coming soon — the install command will simplify to:
# pip install guava
# Step 2: Set your credentials
export GUAVA_API_KEY="..."
export GUAVA_AGENT_NUMBER="..."How it's built
Every Guava agent is a Python class. Walk through the key sections below, then grab the complete file at the end.
Imports
Import the Guava SDK and any helpers you need. guava.CallController is the base class for every voice agent.
# Install: pip install gridspace-guava --extra-index-url https://guava-pypi.gridspace.com
import guava
import os
from datetime import datetimeAgent setup
set_persona() defines how the agent presents itself. set_task() gives it its mission in plain English. The checklist drives the conversation — Guava works through it top-to-bottom, collecting Field values and speaking Say items as it goes.
class AppointmentReminderBot(guava.CallController):
def __init__(self, patient_name: str, provider: str, appt_time: str, clinic: str):
super().__init__()
self.patient_name = patient_name
self.appt_time = appt_time
self.set_persona(
organization_name=clinic,
agent_name="Maya",
)
self.set_task(
objective=f"Remind {patient_name} of their appointment with {provider} on {appt_time} and confirm attendance or reschedule",
checklist=[
f"Greet {patient_name} and confirm you're speaking with the right person.",
guava.Field(
key="confirmed_attendance",
field_type="bool",
description="Does the patient confirm they will attend?",
),
guava.Say("if not attending, offer to reschedule"),
guava.Field(
key="new_slot",
field_type="calendar_slot",
description="Preferred reschedule date and time",
required=False,
choice_generator=self.get_open_slots,
),
"Thank the patient and confirm any changes.",
],
on_complete=self.handle_result,
)
def get_open_slots(self):
# integrate with your scheduling system
return ["Monday 9am", "Monday 2pm", "Tuesday 10am", "Wednesday 3pm"]
def handle_result(self, fields):
if not fields.get("confirmed_attendance"):
new_slot = fields.get("new_slot")
print(f"Rescheduled {self.patient_name} to {new_slot}")
else:
print(f"{self.patient_name} confirmed for {self.appt_time}")
guava.dial(
controller=AppointmentReminderBot,
controller_args={"patient_name": "Sarah Chen", "provider": "Dr. Patel",
"appt_time": "Thursday at 2:00 PM", "clinic": "Westside Medical"},
to=os.environ["PATIENT_PHONE"],
agent_number=os.environ["GUAVA_AGENT_NUMBER"],
api_key=os.environ["GUAVA_API_KEY"],
)Platform performance
<1s
Response time
99.99%
Uptime SLA
13+
Industries served
Full example
The complete file — copy it, save it as example.py, and run it.
# Install: pip install gridspace-guava --extra-index-url https://guava-pypi.gridspace.com
import guava
import os
from datetime import datetime
class AppointmentReminderBot(guava.CallController):
def __init__(self, patient_name: str, provider: str, appt_time: str, clinic: str):
super().__init__()
self.patient_name = patient_name
self.appt_time = appt_time
self.set_persona(
organization_name=clinic,
agent_name="Maya",
)
self.set_task(
objective=f"Remind {patient_name} of their appointment with {provider} on {appt_time} and confirm attendance or reschedule",
checklist=[
f"Greet {patient_name} and confirm you're speaking with the right person.",
guava.Field(
key="confirmed_attendance",
field_type="bool",
description="Does the patient confirm they will attend?",
),
guava.Say("if not attending, offer to reschedule"),
guava.Field(
key="new_slot",
field_type="calendar_slot",
description="Preferred reschedule date and time",
required=False,
choice_generator=self.get_open_slots,
),
"Thank the patient and confirm any changes.",
],
on_complete=self.handle_result,
)
def get_open_slots(self):
# integrate with your scheduling system
return ["Monday 9am", "Monday 2pm", "Tuesday 10am", "Wednesday 3pm"]
def handle_result(self, fields):
if not fields.get("confirmed_attendance"):
new_slot = fields.get("new_slot")
print(f"Rescheduled {self.patient_name} to {new_slot}")
else:
print(f"{self.patient_name} confirmed for {self.appt_time}")
guava.dial(
controller=AppointmentReminderBot,
controller_args={"patient_name": "Sarah Chen", "provider": "Dr. Patel",
"appt_time": "Thursday at 2:00 PM", "clinic": "Westside Medical"},
to=os.environ["PATIENT_PHONE"],
agent_number=os.environ["GUAVA_AGENT_NUMBER"],
api_key=os.environ["GUAVA_API_KEY"],
)Run it
Start the agent. It will connect to Guava's infrastructure and begin accepting calls on your assigned number.
python example.py