Skip to main content
You can route inbound or outbound SIP calls directly to an AI agent using Zero Runtime’s routing rules. This is useful for building automated voice assistants, IVRs, or connecting callers to intelligent agents for support, sales, or other workflows.

Routing Rule Configuration for Agents

When creating a routing rule, set the dispatch property to use the agent option. There are two deployment modes for agents:
  • Agent Cloud: Use this if your agent is deployed on Zero Runtime Agent Cloud. You must provide the deployment ID of the agent.
  • Self-hosted Agent: Use this if you are running the agent on your own infrastructure. You must provide the agentId of your self-hosted agent.

Example: Routing Rule for Agent Cloud

Example: Routing Rule for Self-hosted Agent

Deployment Notes for Agent Cloud

When using an Agent Cloud deployment, the agent must read the following environment variables to join the correct Zero Runtime room:
  • ZRT_ROOM_ID: The room ID the agent should join for the call session.
  • ZRT_AUTH_TOKEN: The authentication token for joining the room.
Your agent should read these environment variables at runtime to connect to the correct room and handle the SIP call.
You can configure agent routing rules via the Zero Runtime dashboard or using the API for automation and CI/CD workflows.

API Reference