# Manage tickets

The *Tickets* tab lists all chats that were received outside of business hours or when agents were unavailable. These chats are converted into tickets that can be attended to once the agent is back online.&#x20;

{% hint style="info" %}
Tickets can be manually closed by the agent. Tickets don't expire but are archived after 90 days. Agents cannot transfer tickets to other agents.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/AeMbivaErQPM4rXdM6fm/blobs/0XEq20WjxsQ8RHuosRFz/image.png" alt=""><figcaption><p>Agents can close any assigned tickets after responding</p></figcaption></figure>

When a customer with an open ticket initiates a new chat with an agent, the customer's existing ticket, whether unassigned or assigned, is closed automatically. This removes open tickets for customers who are chatting with an agent.

When a customer with an open ticket tries to reach an agent but is again unable to initiate a chat, the new chat message is merged with the existing ticket when it is time to convert that chat to a ticket. This prevents multiple tickets from being created for the same customer.&#x20;

The list of tickets is grouped as being [unassigned](#unassigned-tickets-queue), [assigned](#assigned-tickets-queue), or [closed](#closed-tickets).

## Unassigned tickets queue

Agents can view all unassigned tickets, with the most recent at the top.&#x20;

If [departments ](https://guides.clickatell.com/chat-desk/chat-desk-dashboard/departments-management)are configured on the account, the agent will only see the unassigned tickets for the department(s) they are part of. If no departments are configured, all agents will see all tickets.

The list auto-refreshes in real time, adding new unassigned tickets to the top of the list.

Agents can assign a ticket to themself by clicking the *Accept* button that appears when hovering over the ticket.&#x20;

<figure><img src="https://content.gitbook.com/content/AeMbivaErQPM4rXdM6fm/blobs/KM8uOSpIRaydaDNq5JFM/image.png" alt=""><figcaption></figcaption></figure>

Agents can also use the *Quick Accept* buttons to quickly accept 3, 5, or 10 tickets. A custom number of tickets can also be specified. The availability of these buttons depends on the number of unassigned tickets available.&#x20;

The oldest tickets are assigned first, regardless of any filters applied. Accepting these tickets moves them to the *Assigned* tab. &#x20;

<figure><img src="https://content.gitbook.com/content/AeMbivaErQPM4rXdM6fm/blobs/0zPyEiVza0YMKqPKRj2z/image.png" alt=""><figcaption><p>Agents can quickly accept a number of tickets, from oldest to newest</p></figcaption></figure>

## Assigned tickets queue

Agents can view and respond to all the tickets assigned to them from the *Assigned* queue.&#x20;

Agents can only view the tickets assigned to them, and there is no limit to the number of tickets that can be assigned to an agent. They can respond by selecting the ticket, typing the message, and clicking *Start Chat*.&#x20;

{% hint style="info" %}
If the ticket is a WhatsApp message older than 24 hours, the agent must select a [message template ](https://guides.clickatell.com/chat-desk/agent-desk/send-whatsapp-message-templates)to send to the customer. In all other cases, they can send a free text message. &#x20;
{% endhint %}

<figure><img src="https://content.gitbook.com/content/AeMbivaErQPM4rXdM6fm/blobs/kfyEQSYLMVObTXI0hMwc/image.png" alt=""><figcaption><p>Agents can view and respond to any tickets assigned to them</p></figcaption></figure>

## Closed tickets

Agents can view all closed tickets and select a ticket to preview. Agents can select the *Closed by me* filter to view only those tickets that they closed themselves.

<figure><img src="https://content.gitbook.com/content/AeMbivaErQPM4rXdM6fm/blobs/IbkGHzsLSC3knndyaCsB/image.png" alt=""><figcaption><p>Agents can view all closed tickets</p></figcaption></figure>

## Ticket management outside of business hours

When a ticket is created outside of office hours, an auto-responder is sent to inform the customer that they can leave multiple messages for an agent in the ticket. This message is sent after the [out-of-support hours auto-responder ](https://guides.clickatell.com/chat-desk/chat-desk-dashboard/settings/auto-responders#out-of-support-hours-message)and reads:

*Would you like to leave a message for the agent? Please respond with YES or NO. If you select Yes, after your last message, please send "//end" without the quotes to end the chat.*

* Responding with "Yes" allows the customer to send multiple messages to an agent. These messages keep adding to the same ticket.
* Responding with "No" ends the Chat Desk session immediately.&#x20;
* If the customer does not respond to "Yes/No", the session in Chat Desk expires after the same time as it does for any live chat.&#x20;
* If the customer sends a message other than "Yes/No", the autoresponder above is sent again.
* Sending "No" after sending "Yes" will be treated as a normal message and it will not terminate the ticket session.
* **//end** closes the ticket in Chat Desk. &#x20;
* If a customer selects "Yes" and sends some messages but does not send **//end**, the ticket closes 10 minutes after the last message from this customer on the ticket.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guides.clickatell.com/chat-desk/agent-desk/manage-chat-queues-agent-desk/manage-tickets.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
