Showing Scheduling
Coordinate property showings between buyers and listing agents, confirm availability, and send calendar invites — eliminating phone tag.
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 showing 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 osAgent 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 ShowingSchedulerBot(guava.CallController):
def __init__(self, buyer_name: str, properties: list[str]):
super().__init__()
self.set_persona(
organization_name="Summit Realty Group",
agent_name="Taylor",
)
self.set_task(
objective=f"Schedule showings for {buyer_name} for {len(properties)} properties",
checklist=[
f"Greet {buyer_name} and confirm their interest in scheduling showings.",
guava.Say(f"You have {len(properties)} properties queued: {', '.join(properties)}."),
guava.Field(
key="preferred_dates",
field_type="text",
description="Preferred days of the week and times for showings",
),
guava.Field(
key="showing_slot_1",
field_type="calendar_slot",
description=f"Time slot for showing {properties[0]}",
choice_generator=lambda: ["Sat 10am", "Sat 2pm", "Sun 11am", "Sun 3pm"],
),
guava.Field(
key="showing_slot_2",
field_type="calendar_slot",
description=f"Time slot for showing {properties[1] if len(properties) > 1 else 'second property'}",
required=len(properties) > 1,
choice_generator=lambda: ["Sat 12pm", "Sat 4pm", "Sun 1pm", "Sun 5pm"],
),
guava.Field(
key="needs_directions",
field_type="bool",
description="Would they like directions or lockbox info sent by text?",
),
"Confirm all appointments and send calendar invites.",
],
on_complete=lambda fields: print(f"Showings scheduled for {buyer_name}: {fields}"),
)
guava.dial(
controller=ShowingSchedulerBot,
controller_args={"buyer_name": "Tom and Lisa Beck",
"properties": ["14 Maple Lane", "302 Riverside Dr", "88 Oak Court"]},
to=os.environ["BUYER_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
class ShowingSchedulerBot(guava.CallController):
def __init__(self, buyer_name: str, properties: list[str]):
super().__init__()
self.set_persona(
organization_name="Summit Realty Group",
agent_name="Taylor",
)
self.set_task(
objective=f"Schedule showings for {buyer_name} for {len(properties)} properties",
checklist=[
f"Greet {buyer_name} and confirm their interest in scheduling showings.",
guava.Say(f"You have {len(properties)} properties queued: {', '.join(properties)}."),
guava.Field(
key="preferred_dates",
field_type="text",
description="Preferred days of the week and times for showings",
),
guava.Field(
key="showing_slot_1",
field_type="calendar_slot",
description=f"Time slot for showing {properties[0]}",
choice_generator=lambda: ["Sat 10am", "Sat 2pm", "Sun 11am", "Sun 3pm"],
),
guava.Field(
key="showing_slot_2",
field_type="calendar_slot",
description=f"Time slot for showing {properties[1] if len(properties) > 1 else 'second property'}",
required=len(properties) > 1,
choice_generator=lambda: ["Sat 12pm", "Sat 4pm", "Sun 1pm", "Sun 5pm"],
),
guava.Field(
key="needs_directions",
field_type="bool",
description="Would they like directions or lockbox info sent by text?",
),
"Confirm all appointments and send calendar invites.",
],
on_complete=lambda fields: print(f"Showings scheduled for {buyer_name}: {fields}"),
)
guava.dial(
controller=ShowingSchedulerBot,
controller_args={"buyer_name": "Tom and Lisa Beck",
"properties": ["14 Maple Lane", "302 Riverside Dr", "88 Oak Court"]},
to=os.environ["BUYER_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