BPO

Multi-Tenant Agent Provisioning

Spin up tenant-isolated voice agents on demand. White-labeled persona, per-tenant secrets, per-tenant log retention — one deployment, many branded agents.

Why this matters

Voice agents for outsourcing operations. Inbound queues, outbound dialers, multi-tenant agent provisioning. Replace seats, keep quality, full QA + audit trails. This example shows you how to automate multi-tenant agent provisioning 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
from dataclasses import dataclass

@dataclass
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 TenantConfig:
    name: str
    agent_name: str
    voice_id: str
    inbound_number: str
    retention_days: int

def make_controller(tenant: TenantConfig):
    class TenantAgent(guava.CallController):
        def __init__(self):
            super().__init__()
            self.set_persona(
                organization_name=tenant.name,
                agent_name=tenant.agent_name,
                voice=tenant.voice_id,
            )
            self.set_task(
                objective=f"Handle inbound calls for {tenant.name}",
                checklist=[
                    f"Greet the caller as a {tenant.name} representative.",
                    guava.Field(
                        key="reason_for_call",
                        field_type="text",
                        description="Brief description of why the caller is calling.",
                    ),
                    "Confirm next steps and end the call professionally.",
                ],
            )
            self.set_retention(days=tenant.retention_days)
    return TenantAgent

def provision_tenant(tenant: TenantConfig):
    guava.listen(
        controller=make_controller(tenant),
        agent_number=tenant.inbound_number,
        api_key=os.environ["GUAVA_API_KEY"],
    )

# Spin up two tenants from a config file or admin API
provision_tenant(TenantConfig(
    name="NorthStar Health",
    agent_name="Avery",
    voice_id="warm-female-en-us",
    inbound_number=os.environ["NORTHSTAR_NUMBER"],
    retention_days=2555,  # 7 years for HIPAA
))
provision_tenant(TenantConfig(
    name="Brightside Lending",
    agent_name="Jordan",
    voice_id="neutral-male-en-us",
    inbound_number=os.environ["BRIGHTSIDE_NUMBER"],
    retention_days=1095,  # 3 years
))

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
from dataclasses import dataclass

@dataclass
class TenantConfig:
    name: str
    agent_name: str
    voice_id: str
    inbound_number: str
    retention_days: int

def make_controller(tenant: TenantConfig):
    class TenantAgent(guava.CallController):
        def __init__(self):
            super().__init__()
            self.set_persona(
                organization_name=tenant.name,
                agent_name=tenant.agent_name,
                voice=tenant.voice_id,
            )
            self.set_task(
                objective=f"Handle inbound calls for {tenant.name}",
                checklist=[
                    f"Greet the caller as a {tenant.name} representative.",
                    guava.Field(
                        key="reason_for_call",
                        field_type="text",
                        description="Brief description of why the caller is calling.",
                    ),
                    "Confirm next steps and end the call professionally.",
                ],
            )
            self.set_retention(days=tenant.retention_days)
    return TenantAgent

def provision_tenant(tenant: TenantConfig):
    guava.listen(
        controller=make_controller(tenant),
        agent_number=tenant.inbound_number,
        api_key=os.environ["GUAVA_API_KEY"],
    )

# Spin up two tenants from a config file or admin API
provision_tenant(TenantConfig(
    name="NorthStar Health",
    agent_name="Avery",
    voice_id="warm-female-en-us",
    inbound_number=os.environ["NORTHSTAR_NUMBER"],
    retention_days=2555,  # 7 years for HIPAA
))
provision_tenant(TenantConfig(
    name="Brightside Lending",
    agent_name="Jordan",
    voice_id="neutral-male-en-us",
    inbound_number=os.environ["BRIGHTSIDE_NUMBER"],
    retention_days=1095,  # 3 years
))
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