Carrier Check-In & ETA Updates
Proactively check in with carriers mid-route to capture current location, ETA updates, and flag potential delays before they impact delivery windows.
Why this matters
Keep freight moving with automated delivery confirmation, carrier check-ins, claims intake, and compliance data collection. This example shows you how to automate carrier check-in & eta updates 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 CarrierCheckinBot(guava.CallController):
def __init__(self, driver_name: str, load_id: str, origin: str, destination: str,
scheduled_delivery: str):
super().__init__()
self.set_persona(
organization_name="Apex Logistics Dispatch",
agent_name="Drew",
)
self.set_task(
objective=f"Check in with driver {driver_name} on load {load_id} heading to {destination}",
checklist=[
f"Greet {driver_name} briefly — confirm load {load_id}.",
guava.Field(
key="current_location",
field_type="text",
description="Current city/highway location",
),
guava.Field(
key="on_schedule",
field_type="bool",
description=f"On track to deliver by {scheduled_delivery}?",
),
guava.Field(
key="delay_reason",
field_type="choice",
description="Reason for delay if applicable",
required=False,
choices=["traffic", "weather", "mechanical issue", "hos hours", "shipper delay", "other"],
),
guava.Field(
key="revised_eta",
field_type="text",
description="Revised estimated arrival time",
required=False,
),
guava.Field(
key="issues_to_report",
field_type="bool",
description="Any load issues, accidents, or safety concerns to report?",
),
"Confirm check-in and advise driver to call dispatch for emergencies.",
],
on_complete=lambda fields: print(f"Check-in logged for load {load_id}: ETA {fields.get('revised_eta', 'on schedule')}"),
)
guava.dial(
controller=CarrierCheckinBot,
controller_args={"driver_name": "Mike Ramos", "load_id": "LD-88421",
"origin": "Chicago, IL", "destination": "Columbus, OH",
"scheduled_delivery": "6:00 AM tomorrow"},
to=os.environ["DRIVER_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 CarrierCheckinBot(guava.CallController):
def __init__(self, driver_name: str, load_id: str, origin: str, destination: str,
scheduled_delivery: str):
super().__init__()
self.set_persona(
organization_name="Apex Logistics Dispatch",
agent_name="Drew",
)
self.set_task(
objective=f"Check in with driver {driver_name} on load {load_id} heading to {destination}",
checklist=[
f"Greet {driver_name} briefly — confirm load {load_id}.",
guava.Field(
key="current_location",
field_type="text",
description="Current city/highway location",
),
guava.Field(
key="on_schedule",
field_type="bool",
description=f"On track to deliver by {scheduled_delivery}?",
),
guava.Field(
key="delay_reason",
field_type="choice",
description="Reason for delay if applicable",
required=False,
choices=["traffic", "weather", "mechanical issue", "hos hours", "shipper delay", "other"],
),
guava.Field(
key="revised_eta",
field_type="text",
description="Revised estimated arrival time",
required=False,
),
guava.Field(
key="issues_to_report",
field_type="bool",
description="Any load issues, accidents, or safety concerns to report?",
),
"Confirm check-in and advise driver to call dispatch for emergencies.",
],
on_complete=lambda fields: print(f"Check-in logged for load {load_id}: ETA {fields.get('revised_eta', 'on schedule')}"),
)
guava.dial(
controller=CarrierCheckinBot,
controller_args={"driver_name": "Mike Ramos", "load_id": "LD-88421",
"origin": "Chicago, IL", "destination": "Columbus, OH",
"scheduled_delivery": "6:00 AM tomorrow"},
to=os.environ["DRIVER_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