Automotive

Post-Service Follow-Up

Contact customers 48 hours after a service visit to confirm satisfaction, address any issues, and capture CSI scores before the OEM survey arrives.

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 post-service follow-up 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 PostServiceFollowUpBot(guava.CallController):
    def __init__(self, owner_name: str, vehicle: str, service_date: str, dealership: str,
                 advisor_name: str):
        super().__init__()
        self.set_persona(
            organization_name=f"{dealership} Service",
            agent_name="Jordan",
        )
        self.set_task(
            objective=f"Follow up with {owner_name} on {vehicle} service visit on {service_date}",
            checklist=[
                f"Thank {owner_name} for choosing {dealership} and ask about their recent service experience.",
                guava.Field(
                    key="service_satisfaction",
                    field_type="rating",
                    description="Overall service experience rating (1-10)",
                ),
                guava.Field(
                    key="advisor_rating",
                    field_type="rating",
                    description=f"Rating for service advisor {advisor_name} (1-10)",
                ),
                guava.Field(
                    key="vehicle_issue_resolved",
                    field_type="bool",
                    description="Was the original issue fully resolved?",
                ),
                guava.Field(
                    key="any_concerns",
                    field_type="bool",
                    description="Any remaining concerns about the vehicle?",
                ),
                guava.Field(
                    key="concern_detail",
                    field_type="text",
                    description="Description of the concern",
                    required=False,
                ),
                "Offer to schedule a follow-up appointment for any outstanding issues.",
            ],
            on_complete=lambda fields: print(f"Post-service CSI: {owner_name} {fields.get('service_satisfaction')}/10"),
        )

guava.dial(
    controller=PostServiceFollowUpBot,
    controller_args={"owner_name": "Bernard Liu", "vehicle": "2020 Honda Accord",
                     "service_date": "Tuesday", "dealership": "Bay Area Honda",
                     "advisor_name": "Kevin Torres"},
    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

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 PostServiceFollowUpBot(guava.CallController):
    def __init__(self, owner_name: str, vehicle: str, service_date: str, dealership: str,
                 advisor_name: str):
        super().__init__()
        self.set_persona(
            organization_name=f"{dealership} Service",
            agent_name="Jordan",
        )
        self.set_task(
            objective=f"Follow up with {owner_name} on {vehicle} service visit on {service_date}",
            checklist=[
                f"Thank {owner_name} for choosing {dealership} and ask about their recent service experience.",
                guava.Field(
                    key="service_satisfaction",
                    field_type="rating",
                    description="Overall service experience rating (1-10)",
                ),
                guava.Field(
                    key="advisor_rating",
                    field_type="rating",
                    description=f"Rating for service advisor {advisor_name} (1-10)",
                ),
                guava.Field(
                    key="vehicle_issue_resolved",
                    field_type="bool",
                    description="Was the original issue fully resolved?",
                ),
                guava.Field(
                    key="any_concerns",
                    field_type="bool",
                    description="Any remaining concerns about the vehicle?",
                ),
                guava.Field(
                    key="concern_detail",
                    field_type="text",
                    description="Description of the concern",
                    required=False,
                ),
                "Offer to schedule a follow-up appointment for any outstanding issues.",
            ],
            on_complete=lambda fields: print(f"Post-service CSI: {owner_name} {fields.get('service_satisfaction')}/10"),
        )

guava.dial(
    controller=PostServiceFollowUpBot,
    controller_args={"owner_name": "Bernard Liu", "vehicle": "2020 Honda Accord",
                     "service_date": "Tuesday", "dealership": "Bay Area Honda",
                     "advisor_name": "Kevin Torres"},
    to=os.environ["OWNER_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