> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# SmartQueueEvents

## Values

The task is waiting for distribution to an agent. This event occurs every 10 or 15 seconds and contains information about task's position in a queue and approximate response time.

An agent responded to the task, e.g. answered the call. This event indicates that SmartQueue processed the task successfully.

The task has been enqueued successfully.

SmartQueue distributed the task to an agent. This event can occur multiple times if an agent does not respond during the timeout.

The client disconnected.

When you process the **ClientDisconnected** event, call the `e.cancel()` method inside the event manually to cancel the task.

The task is cancelled.

An error occurred.