Release agents with aliases
Agent aliases
An agent alias is a stable public name that routes each new session to an underlying agent according to a policy you control. Callers address the alias, not a specific agent, so you can shift traffic between agents, run canary rollouts, or send different tenants to different agents without changing the caller.
You create sessions through an alias with
POST /v2/agent_aliases/{alias_key}/sessions. The alias evaluates its policy,
picks the agent that owns the session, and from then on the session behaves like
any other agent session. To configure routing, see
Route sessions with an alias.
To offer a website chat interface, create a widget connector on the alias. See Embed an agent on your website for the Console configuration and embedding walkthrough.
Why it matters
Without an alias, every caller hardcodes a specific agent_key. Changing which
agent serves traffic means redeploying every caller. An alias adds one level of
indirection so routing changes happen on the server.
This makes three patterns possible without touching client code:
- Canary rollouts. Send a percentage of sessions to a new agent version, watch it, then shift the weight.
- Tenant routing. Route sessions to different agents based on session metadata such as tenant or tier.
- Stable handles. Keep one public name in front of an agent whose configuration evolves over time.