Real Estate

Lease Renewal Outreach

Contact tenants 90 days before lease expiration to gauge renewal intent, discuss rate changes, and lock in commitments before the unit hits the market.

Why this matters

Qualify leads, schedule showings, handle tenant requests, and manage the full lifecycle of residential and commercial real estate transactions. This example shows you how to automate lease renewal outreach 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 LeaseRenewalBot(guava.CallController):
    def __init__(self, tenant_name: str, unit: str, lease_end: str, current_rent: float, new_rent: float):
        super().__init__()
        self.set_persona(
            organization_name="Riverside Property Management",
            agent_name="Morgan",
        )
        self.set_task(
            objective=f"Discuss lease renewal with {tenant_name} in unit {unit} expiring {lease_end}",
            checklist=[
                f"Greet {tenant_name} and mention their lease at unit {unit} expires on {lease_end}.",
                guava.Say(f"Current rent: ${current_rent:.2f}/mo. New rate if renewing: ${new_rent:.2f}/mo."),
                guava.Field(
                    key="renewal_intent",
                    field_type="choice",
                    description="Is the tenant planning to renew?",
                    choices=["yes, definitely", "probably yes", "undecided", "probably not", "no, moving out"],
                ),
                guava.Field(
                    key="lease_term_preference",
                    field_type="choice",
                    description="Preferred renewal term length",
                    choices=["6 months", "12 months", "month-to-month"],
                    required=False,
                ),
                guava.Field(
                    key="maintenance_concerns",
                    field_type="bool",
                    description="Any outstanding maintenance issues affecting their decision?",
                ),
                guava.Field(
                    key="ok_to_send_renewal_docs",
                    field_type="bool",
                    description="Can we send the renewal documents by email?",
                ),
                "Confirm next steps and thank the tenant.",
            ],
            on_complete=lambda fields: print(f"Lease renewal intent for {tenant_name}: {fields.get('renewal_intent')}"),
        )

guava.dial(
    controller=LeaseRenewalBot,
    controller_args={"tenant_name": "Kevin and Sara Johansson", "unit": "4B",
                     "lease_end": "March 31", "current_rent": 1950.00, "new_rent": 2050.00},
    to=os.environ["TENANT_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 LeaseRenewalBot(guava.CallController):
    def __init__(self, tenant_name: str, unit: str, lease_end: str, current_rent: float, new_rent: float):
        super().__init__()
        self.set_persona(
            organization_name="Riverside Property Management",
            agent_name="Morgan",
        )
        self.set_task(
            objective=f"Discuss lease renewal with {tenant_name} in unit {unit} expiring {lease_end}",
            checklist=[
                f"Greet {tenant_name} and mention their lease at unit {unit} expires on {lease_end}.",
                guava.Say(f"Current rent: ${current_rent:.2f}/mo. New rate if renewing: ${new_rent:.2f}/mo."),
                guava.Field(
                    key="renewal_intent",
                    field_type="choice",
                    description="Is the tenant planning to renew?",
                    choices=["yes, definitely", "probably yes", "undecided", "probably not", "no, moving out"],
                ),
                guava.Field(
                    key="lease_term_preference",
                    field_type="choice",
                    description="Preferred renewal term length",
                    choices=["6 months", "12 months", "month-to-month"],
                    required=False,
                ),
                guava.Field(
                    key="maintenance_concerns",
                    field_type="bool",
                    description="Any outstanding maintenance issues affecting their decision?",
                ),
                guava.Field(
                    key="ok_to_send_renewal_docs",
                    field_type="bool",
                    description="Can we send the renewal documents by email?",
                ),
                "Confirm next steps and thank the tenant.",
            ],
            on_complete=lambda fields: print(f"Lease renewal intent for {tenant_name}: {fields.get('renewal_intent')}"),
        )

guava.dial(
    controller=LeaseRenewalBot,
    controller_args={"tenant_name": "Kevin and Sara Johansson", "unit": "4B",
                     "lease_end": "March 31", "current_rent": 1950.00, "new_rent": 2050.00},
    to=os.environ["TENANT_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