> For the complete documentation index, see [llms.txt](https://guide.tiledesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.tiledesk.com/manage-your-workspace/creating-a-department.md).

# Creating a department

#### Department: Definition

Departments allow you to efficiently route visitors’ requests to designated groups. This ensures that your visitors’ messages are always directed to the right agents.

#### What Are the Benefits?

One of the key metrics of efficient customer support is First Contact Resolution (FCR). It is the percentage of support inquiries that agents resolve on the first attempt. This can only be achieved with departments. You can create a department for sales and another for support. This ensures that your sales team will not receive support inquiries and vice versa. It will boost agent productivity, and your customers can receive resolutions faster.&#x20;

**Departments help your business to:**

**Save Operators’ Time:** Answer your customers quicker by focusing only on the relevant chats. No more reassigning chats.

**Relevant Conversations Only:** Experience fewer interruptions during your work. Let your visitors find the right operator and enjoy fewer notifications and chats.

**Keep Your Inbox Organized:** See only the chats within the scope of your expertise. Let other departments handle the rest.     &#x20;

#### How to Create a Department

1. Go to [**Tiledesk dashboard**](https://panel.tiledesk.com/v3/dashboard/#/signup) and select **Settings > Routings & Depts**.
2. Click **Add Department**.
3. Enter the relevant details, as shown in the screenshot below.
4. Click on the **All Teammates** option or select a [**Group**](/manage-your-workspace/creating-groups.md) to add them to the department.
5. Click **Create Department**.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FjZyywAK002g0omv4dOXG%2F2uadbn-Screenshot%202024-06-11%20at%2012.50.32.png?alt=media&amp;token=5d0d2614-4164-4943-bfa5-b450f5aa9882" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FjROuAGuxcojG45Xgwuau%2F2uadcx-Screenshot%202024-06-11%20at%2012.53.40.png?alt=media&amp;token=76dc8fc4-a2bd-416c-b248-007bdbace62a" alt=""><figcaption></figcaption></figure>

#### How to Embed Departments in the Conversation Flow

To recall departments in the conversation flow, head to the [Design Studio](https://panel.tiledesk.com/v3/dashboard/#/signup).&#x20;

As shown in the image below, I use “[ChatGPT task](/ai-chatbots-and-automation/actions-explained/chatgpt-task.md)” to understand the user inquiries and categorize them.

In the prompt, I ask ChatGPT to categorize incoming inquiries into “**sales**” or “**support**”.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2F2xdKi2pJX2zK4XzvmdYh%2F2uadkf-Screenshot%202024-06-11%20at%2013.02.54.png?alt=media&amp;token=0cb32dd1-98fe-4f56-832a-296445c27815" alt=""><figcaption></figcaption></figure>

Then, we need to use another action called “Condition w/else”.&#x20;

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FnWgYGjo5KZCqECjYf0TS%2F2uadqa-Screenshot%202024-06-11%20at%2013.07.33.png?alt=media&amp;token=bfa64aed-dbd4-49a2-8d07-f585c6d1859d" alt=""><figcaption></figcaption></figure>

Click on it, and from the right popup setting, hit “Add New Condition”.&#x20;

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2Fan2nf8OcOSI3j8qXhZhR%2F2uadrg-Screenshot%202024-06-11%20at%2013.08.55.png?alt=media&amp;token=6b7e931a-31c4-4622-a620-072b063e8b36" alt=""><figcaption></figcaption></figure>

Among the Attributes, select “gpt\_reply”.

Choose “Start with Ignore Case” among the Conditions, and put “sales” as the Value.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FA8RHDnr23eeeAbu51XhT%2F2uadsr-Screenshot%202024-06-11%20at%2013.13.03.png?alt=media&amp;token=3f95e3be-1e66-499d-93e5-b22a90918d7c" alt=""><figcaption></figcaption></figure>

Now, we need to connect the “Change Department” action to the green endpoint of the Condition block, as you can see in the image below.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FsZAlunbyNnujasBY4heA%2F2uadto-Screenshot%202024-06-11%20at%2013.17.51.png?alt=media&amp;token=e3439da4-b529-4366-a25a-134cab246c82" alt=""><figcaption></figcaption></figure>

Click on the new block and choose the relevant department.

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2Fqk1dYkd4fnPJVvLGVjKp%2F2uaduh-Screenshot%202024-06-11%20at%2013.21.39.png?alt=media&amp;token=384312db-7f62-43f5-9c80-0efc45a30fbd" alt=""><figcaption></figcaption></figure>

That’s all. All inquiries about sales will be transferred to the sales department.

For support-oriented inquiries, you need to follow exactly the same process and select the support department.&#x20;

<figure><img src="https://1328774413-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVguk6y5OMn3pAaHZSiwU%2Fuploads%2FW0owK0p3xpORk0AIFcRd%2F2uadzu-Screenshot%202024-06-11%20at%2013.45.12.png?alt=media&amp;token=415526e0-a024-4c77-8ca8-2e07dbe5cf85" alt=""><figcaption></figcaption></figure>

Hope this helps. In case you need further support, do not hesitate to contact us at [**support@tiledesk.com**](mailto:support@tiledesk.com).

For more information, please visit: [**www.tiledesk.com**](https://tiledesk.com/)\
&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guide.tiledesk.com/manage-your-workspace/creating-a-department.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
