> For the complete documentation index, see [llms.txt](https://help.reekolect.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.reekolect.ai/reekolect-resource-center/how-reekolect-works/teams/using-teams-in-chatflows.md).

# 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.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.reekolect.ai/reekolect-resource-center/how-reekolect-works/teams/using-teams-in-chatflows.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
