Skip to content

Get Queue Info

Get Queue Info is one of the Internal Data Ops operations. It takes a snapshot of a queue as it stands right now, how many agents are free, how many are not, how many calls are being handled, and how many are still waiting, and saves those counts in variables. Later components can read the variables to decide what happens next in the call.

The component reports four live figures for the queue you point it at: agents available to answer, agents currently unavailable, calls being handled, and calls waiting to connect.

You can name the queue directly or supply an expression so the target is chosen while the call runs. Either way, the results land in variables you can pass to a following component or test in a Condition.

  1. Drag the Internal Data Ops component onto the canvas, then click it to open its settings.

    The Internal Data Ops block placed on the call flow canvas

  2. In the Component Type drop-down list, choose Get Queue Info.

    Choosing Get Queue Info from the Component Type list

  3. Point the component at a queue using one of these methods:

    Selecting the target queue for the lookup

    • Queue: pick a queue from the drop-down list.

    • Expression: click the fx icon and enter an expression to resolve the queue at runtime.

      Entering an expression that resolves the target queue

      For example, $UserInput1.userInput uses the queue number the caller keyed in.

  4. Click Confirm in the bottom-right corner.

When you add a Get Queue Info component, it writes the queue’s live counts into the variables below. Read them from any expression-aware component, Condition, for instance, to act on what the lookup returned.

VariableTypeDescriptionExample
$GetQueueInfo{index}.availableAgentsIntegerThe number of agents free to take calls right now.5
$GetQueueInfo{index}.unavailableAgentsIntegerThe number of agents unable to take calls right now.1
$GetQueueInfo{index}.callsActiveIntegerThe number of calls queue agents are currently handling.2
$GetQueueInfo{index}.callsWaitingIntegerThe number of calls still waiting in the queue.10

A Get Queue Info component leads to exactly one downstream component. Any of the following can follow it:

ComponentPurpose
PromptPlay an audio file or a text-to-speech message to the caller.
Business HoursRoute the call to different destinations depending on the time of day.
MenuOffer callers a set of options and route them by the DTMF (Dual-Tone Multi-Frequency, the tone a phone keypad sends when a key is pressed) key they press.
User InputCollect DTMF digits from the caller, usually paired with Condition to act on what was entered.
LanguageChange the system prompt language for the rest of the flow.
RecordStart recording once the caller connects to another party, with optional notification prompts, or turn recording off for a call that would otherwise be recorded.
Dial by NumberLet callers dial a number directly to reach their destination.
Dial by NameAn end component that lets callers reach a user by typing the first three letters of their name.
TransferAn end component that sends the caller to a chosen destination, with optional prompts announcing the transfer.
Hang Up CallAn end component that disconnects the call.
ConditionRoute the call based on logical expressions.
LoopRepeat a group of components a set number of times or until a condition is met.
Internal Data OpsRead from and write to the Cloud Voice system’s own database. See Get Extension Presence Status, Set Extension Presence Status, Get Queue Agent, Get Queue Info, Get Agent Status, Set Agent Status, Get System Info, Get System Capacity, Get Extension Info, and Get Company Contact Info.
Email SenderSend an email for real-time notifications, alerts, or user-specific information.
Database AccessRun a SQL operation against an external database during the call flow.
HTTP RequestSend an HTTP request to an external server to exchange data with a third-party service.