---
title: "Intelligent routing rule fields"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/sofi/predictions-and-routing/intelligent-routing-rule-fields/
type: reference
application: intelligent_routing
last_updated: 2026-12-03
commit: 6777698daac5
---


This page lists the fields of the Intelligent routing rule record and what each routing rule does. Use it while you [set up intelligent routing](page:sofi/predictions-and-routing/set-up-intelligent-routing).

<Callout type="info">
  **Changed in 2027.1.** The new **AI Based Classification** routing rule asks a language model to choose the assignee. It adds three fields, which the rule form does not show in 2027.1.7. Existing rules are unchanged.
</Callout>

## Rule fields

| Field | Type | Required | Behaviour | Purpose |
| --- | --- | --- | --- | --- |
| **Name** | String | No | Shown in the work journal when the rule fails. | Identifies the rule. |
| **Short description** | String | No | None. | Says what the rule handles. |
| **Table** | Table | No | The rule also applies to tables that extend this one. | The work type the rule routes, for example Incident. |
| **Groups** | Groups | No | The rule runs only for records whose assignment group is in this list. | The assignment groups the rule covers. |
| **Active** | Boolean | No | Only active rules run. | Turns the rule on or off. |
| **Order** | Integer | No | Defaults to 0. Rules run in ascending order and the first matching rule wins. | Decides between rules for the same group. |
| **Condition** | Condition | No | Checked against the record. An empty condition always matches. | Limits the rule to some records. |
| **Routing rule** | Choice | No | Shows the options for the chosen rule. | How the assignee is chosen. See the next table. |
| **Open ticket count** | Integer | No | Defaults to 0. Used by Active ticket count. | The most tickets the rule assigns to one user. |
| **Priority matrix** | Key and value list | No | Used by Ticket priority volumes. A priority left out of the matrix is not routed. | Each key is a numerical priority, and its value is the number of tickets of that priority a user may hold. |
| **Static routed user** | User | No | Used by Static routing. An inactive user is skipped. | The user who always receives the ticket. |
| **Routing script** | Script | No | Used by Custom routing. Receives `current` and `groups` and sets `answer` to one user ID. | Your own routing logic. |
| **Respect assignment selectability** | Boolean | No | Only users with **Selectable for assignment** take part. | Keeps team leaders and absent users out of routing. |
| **Member Qualifying Condition** | Condition | No | Evaluated against the User table. Inactive users are always excluded. | Narrows which group members can be chosen. |
| **Open Record Condition** | Condition | No | When empty, a ticket counts as open while it is not closed. | Decides which tickets count towards a user's workload. |
| **Classifier Model** | LLM model | No | Used by AI Based Classification. When empty, the model in `ai.assistant.model.selection` is used. | The model that makes the choice. |
| **Fallback Assignee** | User | No | Used by AI Based Classification. Can be an AI agent user. When empty, the ticket is left unassigned. | Who gets the ticket when the model cannot choose. |
| **Classifier Instructions** | Text | No | Used by AI Based Classification. Appended to the built-in classifier prompt. | Extra guidance for the model. |

<Image src="asset:screenshots/admin/sofi-predictions-and-routing-intelligent-routing-rule-fields/routing-rule-form.png">The empty Intelligent routing rule form, with the fields this page describes.</Image>

The last three fields exist on the table but are not on the rule form in 2027.1.7.

## Routing rules

<!-- source: intelligent_routing/data/AvailableValue -->
| Routing rule | Code | How it chooses the assignee |
| --- | --- | --- |
| Active ticket count | `active_ticket_count` | A user with no open tickets in the group first, then the user with the fewest, up to the **Open ticket count**. |
| Ticket priority volumes | `ticket_priority_volumes` | A user with no open tickets first, then the user with the fewest who is under the **Priority matrix** limit for the ticket's priority. |
| Time since last assignment | `time_since_last_assignment` | The user whose last assignment on this table is the oldest. |
| Static routing | `static_routing` | Always the **Static routed user**. |
| Custom routing | `custom_routing` | The user ID that the **Routing script** returns. |
| AI Based Classification | `ai_based_classification` | A language model chooses the best-fit AI persona among the group's eligible members. Inactive personas, and personas whose user is not selectable, are skipped. If the model is not confident, the ticket goes to the **Fallback Assignee** or stays unassigned with a journal note. |

## Switch and trigger

Routing runs from the trigger "Work - Auto-Route Assignment Group" on the Work table. It fires when a record's assignment group changes and the record has no assignee.

| Property | Default | Effect |
| --- | --- | --- |
| `system.intelligent_routing.auto_routing.enabled` | `false` | When `true`, unassigned records are routed when their assignment group changes. |

## Related

- [Set up intelligent routing](page:sofi/predictions-and-routing/set-up-intelligent-routing)
- [Group fields](page:access/users-and-groups/groups)
- [Application properties](page:platform/applications-and-licences/application-properties)
