# Assign Agent to Customer's Chat

We'll illustrate how to streamline the process of assigning an agent to manage customer inquiries without manual intervention. With the "<mark style="color:green;">**Assign Agent**</mark>" action feature in DoubleTick Bot, you can effortlessly configure automatic agent assignment triggered by customer actions such as clicking on designated buttons or typing predefined keywords. Let's dive in 👇

### **The Assign Agent action consists of three components**:

* **Manual Agent Selection**: You can choose a specific agent from the dropdown list by clicking the search button. This allows you to assign particular chats to a specific agent. Simply select the agent's name whom you wish to assign the chats to.

<figure><img src="/files/WdZVEoZXiBzfkJrtaZpz" alt=""><figcaption></figcaption></figure>

* **Random Agent Selection**: This option enables the system to randomly assign chats to available agents. It distributes the workload evenly among team members.

<figure><img src="/files/a1rV89RWBkVMsP3bW5tU" alt=""><figcaption></figcaption></figure>

* **Re-assign if already assigned Checkbox**: By checking this box, you allow the system to re-assign chats even if they are already assigned to an agent.

<figure><img src="/files/JGnd0M1s4li9Gry2wNoC" alt=""><figcaption></figcaption></figure>

### **Example Scenario:**

* **Customer Query:** A customer clicks on the "**Support**" button in the chat interface, indicating a need for assistance.
* **Automatic Assignment:** The chatbot triggers the "**Assign Agent**" action, randomly assigning the inquiry to an available agent or directing it to a designated expert based on predefined criteria.
* **Agent Response:** The assigned agent promptly engages with the customer, addressing their query and providing timely assistance, thus ensuring a positive customer experience.

<figure><img src="/files/0xZkeqoqRt6tw7a1gYcz" alt=""><figcaption></figcaption></figure>


---

# 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://learn.doubletick.io/bot-studio/actions/customer-management/assign-agent-to-customers-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.
