Call queueing

Hold callers in a queue when an agent is at its concurrency limit, instead of rejecting them.

Overview

When an agent or workspace reaches its concurrency limit, new calls are normally rejected immediately. With call queueing enabled, callers who arrive while the agent is at capacity are held on the line with hold audio and connected automatically, in the order they arrived, as soon as a slot frees up.

Call queueing is configured per agent and is turned off by default.

Call queueing applies once all available capacity is in use, including burst capacity when burst pricing is enabled for the agent.

How call queueing works

  1. Capacity check: When a call arrives, ElevenAgents checks whether the agent and the workspace have a free concurrency slot. If they do, the call connects immediately.
  2. Queueing: If no slot is available, the caller is held in the agent’s queue and hears hold audio. No conversation starts and nothing is charged while the caller waits.
  3. Admission: The moment a slot frees up, the caller at the front of the queue is connected and the conversation starts as usual.
  4. Timeout: If no slot frees up within the Max queue wait time, the call is disconnected. Telephony calls are hung up normally. WebSocket clients receive a queue_status event with status timed_out, followed by a close with code 4300.

Callers are connected strictly in arrival order for a given agent. When several agents share a workspace’s concurrency pool, callers who have waited longer are generally connected first.

What the caller hears

  • Phone callers on Twilio and SIP trunk numbers hear the hold audio over the call.
  • Widget and browser SDK users hear the hold audio in the browser. The widget (version 0.17.0 or later) also shows a waiting message and disables text input while queued.
  • Direct WebSocket API clients receive the hold audio as regular audio events, plus queue_status events to drive a waiting state in your own UI. See Handling queue events.

Billing and conversation duration

Time spent in the queue is not billed, does not count toward the agent’s Max conversation duration, and is not included in the conversation’s reported duration. The conversation details in the dashboard show how long the caller waited before being connected.

Supported channels

ChannelCall queueing
Twilio inbound callsSupported
SIP trunk inbound callsSupported
Widget and client SDKs (WebSocket and WebRTC)Supported
Direct WebSocket APISupported
Outbound calls and batch callsNot supported
Text-only agentsNot supported
Genesys, AudioCodes, Exotel, WhatsApp and SMSNot supported

The daily call limit is not queued. A call that exceeds the agent’s daily limit is rejected immediately, because that limit does not free up until the next day.

Configuration

Call queueing is configured per agent in the Limits section of the agent’s Security tab.

SettingDescriptionDefault
Enable call queuingHold callers in a queue when the agent is at its concurrency limit.Off
Max queue wait timeHow long a caller can wait before the call is disconnected, in seconds. Between 1 and 1,800 seconds (30 minutes).180 seconds (3 minutes)
Custom hold audioAn MP3 or WAV file played on a loop to queued callers. Up to 40 MB and 3 minutes long. When no file is uploaded, callers hear the default hold tone. Upload it in the dashboard or through the API.Default hold tone
1

Open the Limits settings

Open your agent in the dashboard, navigate to the Security tab, and scroll to Limits.

2

Enable call queueing

Toggle on Enable call queuing and set the Max queue wait time.

3

Upload hold audio (optional)

Under Custom hold audio, upload an MP3 or WAV file. You can preview the default hold tone and your uploaded clip before publishing.

4

Publish your changes

Click Publish to apply the new settings.

Managing hold audio through the API

Upload an MP3 or WAV file to set the agent’s custom hold audio. Uploading a new file replaces the previous one. The API accepts the audio/mpeg and audio/wav content types, so the examples set the type explicitly.

from dotenv import load_dotenv
from elevenlabs import ElevenLabs
import os
load_dotenv()
elevenlabs = ElevenLabs(
api_key=os.getenv("ELEVENLABS_API_KEY"),
)
elevenlabs.conversational_ai.agents.hold_audio.create(
agent_id="agent_7101k5zvyjhmfg983brhmhkd98n6",
hold_audio_file=("hold-music.mp3", open("hold-music.mp3", "rb"), "audio/mpeg"),
)

Remove the custom clip to return to the default hold tone:

elevenlabs.conversational_ai.agents.hold_audio.delete(
agent_id="agent_7101k5zvyjhmfg983brhmhkd98n6",
)

The current clip is returned read-only as platform_settings.queueing_config.hold_audio on the agent. Sending hold_audio in an agent create or update request has no effect.

Handling queue events in a custom WebSocket client

Clients connected through the WebSocket API receive queue_status events while they are queued:

{
"type": "queue_status",
"queue_status_event": {
"status": "waiting"
}
}
  • waiting is sent once, immediately after conversation_initiation_metadata and before any hold audio.
  • admitted is sent when the caller is connected. The conversation then proceeds as usual.
  • timed_out is sent when the wait exceeds the max queue wait time. The server then closes the connection with code 4300.

Calls that connect immediately never receive queue_status events. The event is always sent to queued callers and does not need to be enabled in the agent’s client_events.

Hold audio is delivered as regular audio events in roughly one-second chunks, provided the agent’s client events include audio. Use queue_status to show a waiting state rather than treating the hold audio as agent speech.

The @elevenlabs/client and @elevenlabs/react SDKs do not expose a dedicated callback for this event yet. Use the onIncomingEvent callback to observe raw server events, including queue_status.

FAQ

No. A queued caller does not occupy a concurrency slot until they are connected to the agent.

Not currently. Queued callers hear the hold audio only. Queue position and wait-time estimates are not announced.

The caller leaves the queue immediately and everyone behind them moves up one place. No conversation minutes are charged.

No. Outbound and batch calls are only placed when capacity is available, so they are never queued.