Recall Notification & Scheduling
Notify vehicle owners of safety recalls, explain the issue and remedy, and book a no-cost repair appointment at the nearest dealer.
Why this matters
Automate service scheduling, recall notifications, lease-end outreach, and financing workflows across your dealership network. This example shows you how to automate recall notification & 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 RecallNotificationBot(guava.CallController):
def __init__(self, owner_name: str, vehicle: str, vin_last8: str, recall_id: str,
recall_description: str, remedy: str):
super().__init__()
self.set_persona(
organization_name="National Highway Vehicle Safety — Toyota",
agent_name="Dana",
)
self.set_task(
objective=f"Notify {owner_name} of safety recall {recall_id} for their {vehicle}",
checklist=[
f"Introduce yourself and stress this is an important safety recall notice for {owner_name}.",
guava.Say(f"Recall {recall_id}: {recall_description}. Remedy: {remedy}. Repair is free of charge."),
guava.Field(
key="still_owns_vehicle",
field_type="bool",
description="Does the owner still own this vehicle?",
),
guava.Field(
key="wants_to_schedule",
field_type="bool",
description="Would they like to schedule the free recall repair?",
),
guava.Field(
key="preferred_dealer",
field_type="text",
description="Preferred dealer location for the repair",
required=False,
),
guava.Field(
key="repair_slot",
field_type="calendar_slot",
description="Preferred appointment time",
required=False,
choice_generator=lambda: ["Mon 9am", "Wed 9am", "Wed 2pm", "Fri 9am", "Sat 8am"],
),
"Confirm appointment, provide recall hotline number, and send written notice.",
],
on_complete=lambda fields: print(f"Recall notified: {owner_name} VIN ...{vin_last8}"),
)
guava.dial(
controller=RecallNotificationBot,
controller_args={"owner_name": "Michelle Grant", "vehicle": "2021 Toyota RAV4",
"vin_last8": "A2847612", "recall_id": "23V-847",
"recall_description": "fuel pump may fail under certain conditions",
"remedy": "dealer will replace fuel pump assembly at no cost"},
to=os.environ["OWNER_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 RecallNotificationBot(guava.CallController):
def __init__(self, owner_name: str, vehicle: str, vin_last8: str, recall_id: str,
recall_description: str, remedy: str):
super().__init__()
self.set_persona(
organization_name="National Highway Vehicle Safety — Toyota",
agent_name="Dana",
)
self.set_task(
objective=f"Notify {owner_name} of safety recall {recall_id} for their {vehicle}",
checklist=[
f"Introduce yourself and stress this is an important safety recall notice for {owner_name}.",
guava.Say(f"Recall {recall_id}: {recall_description}. Remedy: {remedy}. Repair is free of charge."),
guava.Field(
key="still_owns_vehicle",
field_type="bool",
description="Does the owner still own this vehicle?",
),
guava.Field(
key="wants_to_schedule",
field_type="bool",
description="Would they like to schedule the free recall repair?",
),
guava.Field(
key="preferred_dealer",
field_type="text",
description="Preferred dealer location for the repair",
required=False,
),
guava.Field(
key="repair_slot",
field_type="calendar_slot",
description="Preferred appointment time",
required=False,
choice_generator=lambda: ["Mon 9am", "Wed 9am", "Wed 2pm", "Fri 9am", "Sat 8am"],
),
"Confirm appointment, provide recall hotline number, and send written notice.",
],
on_complete=lambda fields: print(f"Recall notified: {owner_name} VIN ...{vin_last8}"),
)
guava.dial(
controller=RecallNotificationBot,
controller_args={"owner_name": "Michelle Grant", "vehicle": "2021 Toyota RAV4",
"vin_last8": "A2847612", "recall_id": "23V-847",
"recall_description": "fuel pump may fail under certain conditions",
"remedy": "dealer will replace fuel pump assembly at no cost"},
to=os.environ["OWNER_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