Education

Tuition Payment Reminders

Remind students and families of upcoming tuition due dates, explain payment plan options, and prevent late fees and enrollment holds.

Why this matters

Improve enrollment, retention, and outcomes with voice automation for student engagement, attendance, and fundraising. This example shows you how to automate tuition payment reminders calls end-to-end with Guava's SDK — no telephony plumbing, no prompt engineering, just Python.

How to set persona & task
Working with Fields and Say items
Handling callbacks
Running the agent
Step 01

Installation

Install from Guava's private PyPI index. A public package is coming soon — the install command will simplify to pip install guava.

terminal
# 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="..."
Step 02

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.

01

Imports

Import the Guava SDK and any helpers you need. guava.CallController is the base class for every voice agent.

example.py
# Install: pip install gridspace-guava --extra-index-url https://guava-pypi.gridspace.com
import guava
import os
02

Agent 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.

example.py
class TuitionReminderBot(guava.CallController):
    def __init__(self, student_name: str, amount_due: float, due_date: str,
                 institution: str, payment_plan_available: bool):
        super().__init__()
        self.set_persona(
            organization_name=f"{institution} Student Financial Services",
            agent_name="Jamie",
        )
        self.set_task(
            objective=f"Remind {student_name} of ${amount_due:.2f} tuition due {due_date}",
            checklist=[
                f"Greet {student_name} or their parent/guardian about the upcoming tuition payment.",
                guava.Say(f"${amount_due:.2f} is due by {due_date}. A hold will be placed if not paid by then."),
                guava.Field(
                    key="payment_status",
                    field_type="choice",
                    description="What is the payment status?",
                    choices=["will pay before deadline", "financial aid should cover it",
                             "need a payment plan", "have a billing question", "cannot pay"],
                ),
                guava.Field(
                    key="wants_payment_plan",
                    field_type="bool",
                    description=f"Would they like information about the monthly payment plan option?",
                ),
                guava.Field(
                    key="scholarship_pending",
                    field_type="bool",
                    description="Are they waiting on a scholarship or additional aid award?",
                ),
                "Connect with a billing specialist if needed and provide online payment link.",
            ],
            on_complete=lambda fields: print(f"Tuition reminder done: {student_name} — {fields.get('payment_status')}"),
        )

guava.dial(
    controller=TuitionReminderBot,
    controller_args={"student_name": "Aisha Johnson", "amount_due": 4250.00,
                     "due_date": "January 15", "institution": "Westland University",
                     "payment_plan_available": True},
    to=os.environ["STUDENT_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

Step 03

Full example

The complete file — copy it, save it as example.py, and run it.

example.py
# Install: pip install gridspace-guava --extra-index-url https://guava-pypi.gridspace.com
import guava
import os

class TuitionReminderBot(guava.CallController):
    def __init__(self, student_name: str, amount_due: float, due_date: str,
                 institution: str, payment_plan_available: bool):
        super().__init__()
        self.set_persona(
            organization_name=f"{institution} Student Financial Services",
            agent_name="Jamie",
        )
        self.set_task(
            objective=f"Remind {student_name} of ${amount_due:.2f} tuition due {due_date}",
            checklist=[
                f"Greet {student_name} or their parent/guardian about the upcoming tuition payment.",
                guava.Say(f"${amount_due:.2f} is due by {due_date}. A hold will be placed if not paid by then."),
                guava.Field(
                    key="payment_status",
                    field_type="choice",
                    description="What is the payment status?",
                    choices=["will pay before deadline", "financial aid should cover it",
                             "need a payment plan", "have a billing question", "cannot pay"],
                ),
                guava.Field(
                    key="wants_payment_plan",
                    field_type="bool",
                    description=f"Would they like information about the monthly payment plan option?",
                ),
                guava.Field(
                    key="scholarship_pending",
                    field_type="bool",
                    description="Are they waiting on a scholarship or additional aid award?",
                ),
                "Connect with a billing specialist if needed and provide online payment link.",
            ],
            on_complete=lambda fields: print(f"Tuition reminder done: {student_name} — {fields.get('payment_status')}"),
        )

guava.dial(
    controller=TuitionReminderBot,
    controller_args={"student_name": "Aisha Johnson", "amount_due": 4250.00,
                     "due_date": "January 15", "institution": "Westland University",
                     "payment_plan_available": True},
    to=os.environ["STUDENT_PHONE"],
    agent_number=os.environ["GUAVA_AGENT_NUMBER"],
    api_key=os.environ["GUAVA_API_KEY"],
)
Step 04

Run it

Start the agent. It will connect to Guava's infrastructure and begin accepting calls on your assigned number.

terminal
python example.py
Get Started