# Checking Number of Agents in Queue in Flow for callback

**URL:** <https://devforum.zoom.us/t/checking-number-of-agents-in-queue-in-flow-for-callback/123803>\
**Category:** Contact Center\
**Created:** [January 3, 2025, 9:51am UTC](https://devforum.zoom.us/t/checking-number-of-agents-in-queue-in-flow-for-callback/123803 "2025-01-03T09:51:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rchbeir](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@rchbeir](https://devforum.zoom.us/u/rchbeir)\
**Post date:** [January 3, 2025, 9:51am UTC](https://devforum.zoom.us/t/checking-number-of-agents-in-queue-in-flow-for-callback/123803/1 "2025-01-03T09:51:33Z")

</div>

#### Hello, I would like to check if there is any API that can be used to check if there are agents on the target queue in the flow, If yes which API is it, and is it possible to create a callback directly in the flow? If not possible is it possible to upload pre recorded media for the callback setting in the queue directly? I need this information as I want to offer the caller an immediate callback if there is no agents on queue, and I want to add the media to collect the information (called number for the callback) but in the queue callback configuration text to speech seems to be the only option.

---

<div class="post-metadata">

**Author:** ![justin.steinberg](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/justin.steinberg/32/9988_2.png) [@justin.steinberg](https://devforum.zoom.us/u/justin.steinberg)\
**Post date:** [January 21, 2025, 1:42pm UTC](https://devforum.zoom.us/t/checking-number-of-agents-in-queue-in-flow-for-callback/123803/2 "2025-01-21T13:42:36Z")

</div>

Hi @rchbeir

Currently the callback is only part of the queue configuration.

You can use the ‘Condition’ widget to check how many agents are Ready in the queue.

More info on that:

> **[Customizing the Condition widget](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0065873)**
>
> Contact center admins can add and edit the Condition widget. The Condition widget allows you to set destination

> **[Routing based on queue data](https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0058695)**
>
> Contact center admins can access different types of queue data to use for flow routing. For example,

However, there is not a widget for Callback. That does happen once the consumer is placed into the queue.

What I would recommend to do is to announce either the callers place in line, or the estimated wait time, whichever is more appropriate for your business (estimated wait time is better for larger queues that can be estimated easier than queues with only a few agents). Essentially what you want to do is play a message based on the ‘Get Queue Data’ that encourages the caller to select the callback option once they are in queue.
