> ## Documentation Index
> Fetch the complete documentation index at: https://docs.famulor.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Set reply targets and route conversations

> Give conversations a due time with SLA policies, send them to the right group with routing rules, and see overdue replies in History.

Set how fast your team has to answer, and let new conversations find their group by what they say. A customer writes "Question about my invoice" by email. A routing rule sends it to your **Billing** group with the priority **High**, and an SLA policy gives it one hour for the first reply. When the hour runs out, History shows it in red and plays a sound.

## Where to find it

| What | Where |
| - | - |
| Reply and resolution targets | **Settings → Data → SLA policies** |
| Rules that set the group, category and priority | **Settings → Data → Routing** |
| Opening hours that targets can count | **Settings → Data → [Business hours](https://docs.famulor.io/settings/business-hours.md)** |
| Due times, waiting time and overdue replies | **History**, the **SLA** column, the **SLA** filter and the banner above the list |
| Sounds for new and overdue conversations | **Settings → Notifications → Sounds** |

Everyone with access to Settings can read these pages. Owners and admins change them. They are available in every workspace and use no credits.

## Set reply and resolution targets

Open **Settings → Data → SLA policies** and select **New policy**. A policy gives matching conversations due times.

* **Applies to:** choose any of **Priority**, **Group**, **Category**, **Channel** and **Assistant**. A field left on **Any** matches every conversation.
* **First response within:** the time until a team member answers. A reply of an AI assistant never counts.
* **Resolve within:** the time until the conversation is **Solved** or **Closed**. Calls only use the resolution time.
* **Count business hours only:** count only the hours of your [workspace business hours](https://docs.famulor.io/settings/business-hours.md). One day then means 24 business hours. The switch needs business hours to be set up.

Set at least one of the two targets. Policies run from top to bottom, and the first policy that matches decides. Drag a policy, or use the arrow keys, to change the order. A workspace holds up to 25 policies.

The clock starts with the first message of the customer, or with the start of a call. Due times show on History entries and in the list. A changed target applies to new conversations and when the priority, group or category of a conversation changes. Switching a policy off or deleting it removes its timers from open conversations.

## Spot overdue replies in History

* **SLA column:** each conversation shows its next due time, for example **1st reply 12m**, then **Resolve 3h 10m**. The chip turns amber in the last hour and red as **Overdue 4m** once the time is up. The column appears when your workspace has a policy.
* **Waiting:** an open conversation shows **Waiting 12m** next to the Inbox status, counted from the first customer message nobody has answered yet. The next customer message starts it again after a reply.
* **Pinned at the top:** on the first page, open conversations that are overdue or due within the hour stay pinned above the list, overdue first, then the nearest due time. A red edge marks overdue, an amber edge marks due soon.
* **SLA filter:** choose **Breached** or **Due within 1 hour** under **Filter**. You can save the filter in a view.
* **Banner:** a red banner above the list reads "3 customers waiting for a reply", with a running time. **Reply now** opens the oldest conversation, and **Show all** filters the list to the overdue ones.
* **Conversation details:** the rows **First response** and **Resolve by** show **Due in 12m**, **Overdue 4m** or **Met after 1h 12m**, with the policy name. The timeline shows which routing rule set the group.

History shows each person only the conversations they may see. A member limited to some categories sees the banner and the sounds for those categories only.

### Play a sound for new and overdue conversations

Open **Settings → Notifications → Sounds** and switch on the events you want to hear: **New conversations**, **Customer replies**, **Live chat waiting (every minute)** and **Assigned to me or SLA breached**. A sound plays in this browser while Famulor is open, one sound at most every 5 seconds. **Play test sound** checks your volume. The choice belongs to you and this browser. If your browser blocks sounds, click anywhere in Famulor once to allow them.

## Route conversations by what they say

Open **Settings → Data → Routing**. A rule reads a conversation and sets its group, and optionally an Inbox category and a priority. Rules run before [Milian triage](https://docs.famulor.io/monitoring/inbox-triage.md), so triage only fills what is still open.

1. **Channel or mailbox:** where the conversation arrives.
2. **Rules:** the first matching rule sets the group, and optionally a category and priority.
3. **Milian triage:** it fills what is open and sets a group only when none is set.
4. **Assignment:** after triage, to the group or to the person with the fewest open conversations (**Settings → Data → Triage**).

### Create a rule

Select **New rule**. Under **When**, choose **All conditions** or **Any condition** and add conditions, up to 20. Each condition has a field, an operator and a value. Under **Then**, choose the group under **Send to group** (required), and optionally a category and a priority.

Conditions can read the conversation (channel, direction, assistant, campaign, contact tags, mailbox, sender, subject, message text and sentiment), the variables of the assistant and the fields its analysis extracts. A rule can only fill what is still open: the group when none is set, and the priority when it is **Normal**. Routing runs after the analysis of a call or conversation, so rules can use the values the analysis found.

A set holds up to 50 rules, and the first matching rule decides. Each rule shows how often it ran, for example **Ran 124 times**.

### Give an assistant its own rules

The **Workspace rules** apply to every assistant without rules of its own. Under **Assistants**, choose **Add an assistant** to give one its own list. That assistant then follows only its own rules. **Use workspace rules** deletes them and returns the assistant to the workspace rules.

### Test before you rely on it

Use **Test routing** on the page, or **Run test** while you edit a rule. Choose the type (email, chat or call), the assistant, and add subject, sender and message text. The test shows which rule matches and what it would set, including your unsaved changes. Nothing is created and no real conversation is read.

## Use the API, MCP, CLI and SDK

* **REST, business hours:** `GET` and `PUT /api/v1/business-hours`.
* **REST, SLA:** `GET` and `POST /api/v1/history/sla-policies`, `PATCH` and `DELETE /api/v1/history/sla-policies/{id}`, `PUT /api/v1/history/sla-policies/order` (`settings:read`, `settings:write`) and `GET /api/v1/history/sla-summary` (`calls:read`). `GET /api/v1/history` accepts `sla` (`breached`, `due_soon`), and every item carries an `sla` object. `sla.waiting_since` is the first customer message nobody has answered yet.
* **REST, routing:** `GET`, `POST` and `DELETE /api/v1/history/routing-rules` (the `DELETE` takes `assistant_id` and returns an assistant to the workspace rules), `GET`, `PATCH` and `DELETE /api/v1/history/routing-rules/{id}`, `PUT /api/v1/history/routing-rules/order`, `POST /api/v1/history/routing-rules/test` and `GET /api/v1/history/routing-rules/fields` (`settings:read`, `settings:write`).
* **MCP:** `list_history_sla_policies`, `create_history_sla_policy`, `update_history_sla_policy`, `delete_history_sla_policy`, `get_history_sla_summary`, `list_history_routing_rules`, `list_history_routing_fields`, `create_history_routing_rule`, `update_history_routing_rule`, `delete_history_routing_rule` and `test_history_routing`. `list_history` accepts `sla`. Change the order with `position`. Milian asks for your confirmation before it changes a policy or a rule.
* **CLI:** `famulor list-history --sla breached`, `famulor get-history-sla-summary`, `famulor create-history-sla-policy --name "Urgent emails" --enabled true --business-hours-only false --first-response-minutes 15 --channels email` and `famulor test-history-routing --sample '{"kind":"email","subject":"Question about my invoice"}'`.
* **SDK:** `famulor.history.slaSummary()`, `famulor.history.slaPolicies()`, `famulor.history.routingRules()` and `famulor.history.testRouting({ sample })`.

Update the CLI and the SDK to their latest versions to use these commands.

See also [Triage conversations in History](https://docs.famulor.io/monitoring/inbox-triage.md), [Conversation history](https://docs.famulor.io/monitoring/history.md) and [Set your workspace business hours](https://docs.famulor.io/settings/business-hours.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.