# Enterprise Routing

How Risotto picks the department for each new request: channel locks, department descriptions, and the default department

Employees should not have to wonder where to go for help. Risotto sends each new request to the right department. A request from a source that is locked to a department goes to that department. Every other request is matched against the description of each department.

*Product example: Diagram: a request from a locked source goes to that department; otherwise Risotto compares it with each department's description, and falls back to the default department.*

Once the ticket has its department, the department decides the rest: its urgency criteria set the [priority](https://www.tryrisotto.com/docs/dashboard/settings/ticket-priority), Risotto answers from that department's runbooks and knowledge and from the organization-wide ones, and its [escalation rules](https://www.tryrisotto.com/docs/dashboard/settings/departments#escalation-routing) pick who gets the ticket. An escalation rule can hand the ticket off to a [sub-department](https://www.tryrisotto.com/docs/dashboard/settings/sub-departments). Requests never go to a sub-department directly.

## Context-aware routing

> **Tip:** For instructions on creating a new department, see [Add a new
> department](https://www.tryrisotto.com/docs/guides/add-a-department).

Each department has a **Description** on its **General** settings page (see [Departments](https://www.tryrisotto.com/docs/dashboard/settings/departments#description)). For a new request, Risotto reads the request, with the requestor's name, and compares it with the name and description of each top-level department. It picks the department that handles what the request is about.

For example, an IT department could have this description:

> The Information Technology (IT) department manages all technology-related services and requests, including software access, hardware maintenance, network security, and employee technical support.

Note `network security` as one of this team's responsibilities. Risotto knows that network security covers many things, such as Wi-Fi. A request like `"I can't connect my phone to wifi, can someone help?"` goes to IT, even though the description never mentions Wi-Fi.

*Product example: Diagram: a Wi-Fi request from Priya Shah is matched to IT, whose description mentions network security.*

The key takeaway: the department description is not a simple matching of words, but a deeper, context-aware analysis. Describe the kinds of requests each department handles, and keep the descriptions of different departments from overlapping.

Sub-departments are not in the comparison. A ticket reaches a sub-department only from its parent department, through an escalation rule or a manual move.

### Org default

If no department clearly handles the request, Risotto assigns the ticket to the default department. The default department shows a **Default** badge next to its name in its department settings.

To change the default department, go to **Settings**, then under **Departments** click the department. In the **Danger zone** section at the bottom of its settings page, click **Make Default…** and confirm. Only a top-level department that is not the default has this button.

Org-wide defaults are under **Settings > Notifications**. The **Organization Preferences** card ("Defaults that can be overridden per channel and department.") holds these settings:

- **Notifications channel**
- **Next approval delay**
- **Nudge delay**
- **Auto-resolve delay**

## Channel-specific routing

If a request channel is meant for one domain, such as `#ask-it` or `#legal-help`, you can lock it to a department. All requests that start in that channel go to that department, and Risotto skips the description matching.

### Set a channel lock

1. **Open the Requests tab**

   Go to [Settings > Request Sources](https://dashboard.tryrisotto.com/settings/request-sources) and click **Manage in Slack** (or **Manage in Microsoft Teams**). The **Requests** tab has the settings for each channel.

2. **Open the channel**

   Under **Slack channels** ("Handle requests created in Slack."), expand the row for the channel you want to lock. The **Lock to department** setting ("All requests in this channel will be classified under this department.") is next to the **Continue over DM**, **Prompt for escalation**, and **Silent mode** toggles.

3. **Pick the department**

   Open the dropdown, which shows "Select a department...", and pick a department. The department appears as a chip (for example **IT**). To remove the lock, click the **X** next to the chip.

To send all Slack requests to one department:

- Lock each channel that Risotto is in to that department.
- Lock the **Direct Messages** row too. It is the first row in the list, and its lock applies to every direct message that employees send to Risotto.
- Lock each channel that you add Risotto to later. A new channel starts with no lock.

Other sources go to a set department too:

- A request from the **Home** tab of the Risotto app in Slack goes to the department that the employee picks in the form. The form lists only the departments on the **App Home** card. See [Creating tickets](https://www.tryrisotto.com/docs/operating/creating-tickets).
- An email to a support address goes to the department that the address is locked to. See [Request Sources](https://www.tryrisotto.com/docs/dashboard/settings/request-sources).

Source: https://www.tryrisotto.com/docs/concepts/enterprise-routing
