Regions are currently in beta.
Available Regions
You can view all available regions using the CLI:- us-west: US West (Oregon)
- us-east: US East (Virginia)
- eu-central: Europe (Frankfurt)
- ap-south: Asia Pacific (Mumbai)
Regional Requirements
When deploying agents and managing secrets, keep these requirements in mind:- Agent names are globally unique: Each agent must have a unique name across all regions
- Secret sets are region-specific (with globally unique names): Create a separate secret set in each region where you deploy agents
- Image pull secrets are region-specific: Create separate image pull secrets in each region if using private registries
- Secrets must match agent regions: An agent can only use secrets and image pull secrets from the same region
Regional WebSocket Endpoints
When connecting to Pipecat Cloud via WebSocket for telephony services, you can specify a region to reduce latency and ensure your traffic stays within a geographic area.Default Endpoint
By default, WebSocket connections use the us-west:{service} is one of:
twilio- For Twilio WebSocket connectionstelnyx- For Telnyx WebSocket connectionsplivo- For Plivo WebSocket connectionsexotel- For Exotel WebSocket connections
Regional Endpoints
To connect to a specific region, use the regional endpoint format:Regional WebSocket endpoints route to agents deployed in that region. Make
sure your agent is deployed in the same region as the WebSocket endpoint
you’re connecting to.
Setting a Default Region
You can specify a default region for your organization via the REST API or the CLI. If you don’t specify a region, resources are created in your organization’s default region.Deploying an Agent to a Region
This walkthrough will guide you through deploying an agent to a specific region.Step 1: Build and Push Your Docker Image
Build your agent Docker image and push it to a container registry. This guide assumes you already have a working agent image.Step 2: Create a Secret Set
Create a secret set in your target region with the environment variables your agent needs.Step 3: Create an Image Pull Secret
If you’re using a private container registry, create an image pull secret in the same region.Using a public registry? You can skip this step and omit
image_credentials
from your deployment configuration.Step 4: Create a Deployment Configuration
Create apcc-deploy.toml file in your project directory:
Step 5: Deploy Your Agent
Deploy your agent using the configuration file:pcc-deploy.toml file and deploy the agent to the specified region. Once the deployment is ready, you can start sessions with your agent.
Deploying to Multiple Regions
To serve users globally, repeat the steps above for each target region. Use region-specific naming for agents, secrets, and image pull secrets (e.g.,my-agent-us-east, my-agent-secrets-us-east).
Your application determines which regional agent to connect users to based on their location, preferences, or latency requirements.
Learn More
- Deployments - Comprehensive deployment guide
- Secrets - Managing secrets and credentials