# Close chats

At the end of a chat, the agent can close the chat as follows:

&#x20;1\. Click the *Close Chat* icon in the top right corner of the chat.

<img src="/files/Vx9p5LQ4YYObPK5kdUiA" alt="" width="540">

2. In the pop-up, provide some information about the engagement with the customer:
   * Indicate the general sentiment of the conversation.
   * Add additional free text notes.
   * Select a tag from the drop-down to label the chat (assuming [tags have been set up](/chat-desk/chat-desk-dashboard/settings/tags-management.md)). Tags are listed in alphabetical order.
   * Add JIRA links and/or ticket numbers if applicable.

{% hint style="success" %}
The notes and ticket numbers are available in the customer's chat history and can give context about the conversation for the next engagement with this customer. The sentiment and tags are also useful when the supervisor analyzes engagement data. &#x20;
{% endhint %}

3. Click the *Close* button to close the chat.

<img src="/files/z8WRyUYH3oDvkqYB672q" alt="" width="490">


---

# 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/close-chat.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.
