# Using Teams in Chatflow

## Setting up Assign Chat logics

Step 1: Select a bot.

Step 2: Click on "Edit your Chat Flow".

Step 3: Inside canvas, search for "Assign Chat" and select the same to customize in your bot.

Step 4: Customize "Assign Chat" by selecting an option to assign chat based on Department or based on Team Members.

Step 5: Now select a department from the drop down.

Step 6: Now select an Assignment Logic according to which chat will be assigned. Currently we have one option which is "Round Robin".

{% hint style="info" %}
Round-robin is the method used to distribute incoming conversations across a team. It automatically assigns conversations to selected coworkers on a cyclical basis. It basically rotates incoming conversations in the order they are received.
{% endhint %}

Step 7: Select a checkbox which best suits you to filter out assignment rules. You can select "Do not assign to offline agents" and "Assign only in business hours".&#x20;

Step 8: Select "go to next message". And you are done setting up the assignment rules.

<figure><img src="https://1613146696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZpVksvLNWoWVCzCZ4a1O%2Fuploads%2FdEcoqtsk4tg0tt8bPWUK%2Fimage.png?alt=media&#x26;token=873a32ef-97c6-473b-8ac8-6338bd5e0207" alt=""><figcaption><p>assign chat</p></figcaption></figure>

#### Need Help?

Please feel free to reach out to us at <mark style="color:$primary;"><support@botpenguin.com></mark>, in case of any questions or concerns.
