# Assign Conversation

There are two options available for assigning conversations: **Basic Assign** and **Advanced Assign**.

### Basic Assign Conversation

With Basic Assign, you can select a specific team or agent to handle the conversation. Conversations will be assigned to your selected agent or team automatically.

<figure><img src="/files/67fDtjlGKtRgjlGAd3ly" alt="" width="276"><figcaption><p>Select a team</p></figcaption></figure>

<figure><img src="/files/uqp0Q29rXF2747ot8c3A" alt="" width="274"><figcaption><p>Select an agent</p></figcaption></figure>

### Advanced Assign Conversation

With Advanced Assign, you can set team and agent statuses (online/away/offline) to automatically assign new conversations based on advanced assignment rules. Conversations will be assigned to the agent with the fewest assigned conversations in the team at that moment, ensuring efficient customer support.

<figure><img src="/files/1B33lTM3hVbWars36kXl" alt="" width="306"><figcaption></figcaption></figure>

Step 1: Select a team. You can manage your team and team members in the setting page.

Step 2: Select the agent's statuses: Online, Away, Offline. You can choose more than one status.

Step 3: Select the extra assigned rules. Now we support "Assign to agent with the least assigned conversation."

Step 4: Set a solution for an exception. For example, set a message block to respond to your client if no agent is found based on the conditions at that moment.&#x20;

<figure><img src="/files/4hLI2kOkDZjZtvnwGSGx" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %} <img src="/files/Avgc4jYNsZNIO4xtTrlb" alt="" data-size="original">

The switch option "Keep the flow run" at the end of the block will have 2 different actions:

1. Off (default state): When a conversation is assigned to the agent, the conversation status will change to "assign to xxx team/agent/open", and the agent will receive a notification to remind a conversation assigned to him/her. Other flows can't be triggered until this current flow ends.
2. On: When a conversation is assigned to the agent, the agent will receive a notification to remind a conversation assigned to him/her. The conversation could stay in "closed" so that clients can still trigger other flows.
   {% endhint %}


---

# 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://docs.chatalog.ai/crm-quickstarts/customized-flow/assign-conversation.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.
