# Using Teams in Chatflows

### Setting Up Assign Chat Logic:

Follow these steps to configure how incoming chats are assigned to team members or departments.

**Steps to Configure Assign Chat Logic:**

1. **Select a bot** from the dashboard.
2. Click on **"Edit your Chat Flow"** to make changes.
3. Inside the canvas, search for **"Assign Chat"** and select it for customization.
4. Choose an assignment method:
   * **Based on Department**
   * **Based on Team Members**
5. Select the appropriate **department** from the dropdown list.
6. Choose an **Assignment Logic**:
7. Apply additional assignment rules by selecting checkboxes:
   * **Do not assign to offline agents**
   * **Assign only during business hours**
8. Click **"Go to next message"** to complete the setup.

Your chat assignment logic is now configured.
