---
sourceDocument: Australia Platform Analytics
sourceDocumentLink: https://www.servicenow.com/docs/r/australia/now-intelligence

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia Platform Analytics

ft:clusterId :

    - par

bundleId :

    - par

workflow :

    - Platform


---

# Create a manual segment

# Create a manual segment {#ariaid-title1}

Release version: Australia  
Updated April 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read  
Manual segments are admin-created saved searches with friendly names that bridge natural language questions and database filters for the Query Generation semantic layer.

## Before you begin

Role required: sn_query_gen.admin or higher

## About this task

Use manual segments to ship domain-specific saved searches with your application. They receive a priority boost over automated segments during search. This boost is set in
sn_query_gen.segments.manual_segment_scale_factor. The LLM retains all their filters unless irrelevant, whereas automated segment filters are critiqued individually.  
Create manual segments in the following circumstances:

* Your organization has standard terminology that maps to specific filters (for example, "Sev1", "VIP", "overdue")
* Users repeatedly ask the same filtered question and the system does not automatically pick up the right filter
* You want to encode business logic that cannot be inferred from field values alone (for example, "at-risk accounts" = combination of multiple conditions)
* The special terminology of your organization is not translated accurately to filter conditions
{#querygen-create-segment-manually__manual-segment-use-cases}  
Tip:  
The name and description are what AI search matches against. Use natural phrasing your users would say. Keep one segment per concept. Test by asking the question and checking if the segment appears in the logs.

When creating segment names, use the same language a user would use when asking a question. The name is the primary field the LLM matches against during semantic search. Avoid abbreviations, internal codes, or technical jargon. Think about how a user would phrase the question that this segment answers.{#querygen-create-segment-manually__segment-naming-guidance}

## Naming guidelines {#querygen-create-segment-manually__naming-best-practices}

Follow these guidelines when creating segment names and descriptions:

Use plain language
:   Write names in the same language users would use when asking questions. Avoid technical abbreviations or internal codes that users would not recognize.

Think like your users
:   Consider how users would phrase questions about this data. The segment name should match their natural language patterns.

Be specific but clear
:   Names should be descriptive enough to distinguish from similar segments while remaining understandable to your audience.

Use descriptions for context
:   When segment names might be ambiguous, use the description field to provide additional context using commonly-used terms.

## Procedure

1. Navigate to Query GenerationAdministrationManual Segment Config.
2. Press New.
3. In the Manual Segment Config form, fill in the following information.  
   {#querygen-create-segment-manually__table_r5t_qwj_23c__entry__2}

   | Field | Description |
   |-|-|
   | Entity | The table (entity) the segment applies to. Must have an active entity in the semantic layer. The system looks for the entity first, then the segment within that table. |
   | Name | User-friendly name describing the segment in plain language a user would use when asking a question. Use the same language a user would use when asking a question. Avoid abbreviations, internal codes, or technical jargon. Maximum 255 characters. Examples: "Critical Open Incidents" (good) instead of "P1_OPEN_INC" (poor), "Active Benefits HR Cases" (good) instead of "HR Cases --- Active, Cat=Benefits" (poor). |
   | Description | Optional but strongly recommended. Gives the LLM additional context to decide whether a segment is relevant. Use commonly-used terms and explain what the segment captures. Helps disambiguate similar segments. Maximum 4,000 characters. Example: "High priority incidents that are currently open and unresolved. Includes all assignment groups. Useful for executive dashboards and escalation reporting." (good) instead of "Filters for priority 1." (poor). |
   | Filter | Encoded query defining the segment's filter conditions. Uses the condition builder (v2). Maximum 4,000 characters, although filters longer than 2,000 characters may be truncated in the LLM prompt. |
   | Active | Whether the system uses the segment. Defaults to selected. When cleared, the segment is deactivated and excluded from search. |
   [Table 1. Manual Segment Config form]

   {#querygen-create-segment-manually__table_r5t_qwj_23c}
4. Press Submit.  
   A business rule fires asynchronously and syncs the record into the sn_query_gen_segment table, which is queried at search time.
{#querygen-create-segment-manually__steps_xq5_rh4_x3c}

## Result

The manual segment is active and available for Query Generation searches.

## Manual segments for the incident table {#querygen-create-segment-manually__manual-segment-examples}

The following examples show well-crafted manual segments for the incident table:
{#querygen-create-segment-manually__table_yq5_rh4_x3c__entry__4}

| Name | Description | Entity (Table) | Filter |
|-|-|-|-|
| Critical Open Incidents | High priority incidents that are currently open and unresolved. Includes all assignment groups. | `incident` | `priority=1^state!=7^state!=8` |
| My Team's Overdue Incidents | Incidents assigned to the current user's group that have passed their SLA due date. | `incident` | `assignment_group=javascript:getMyGroups()^sla_due<javascript:gs.nowDateTime()^state!=7` |
| Recent P1 and P2 Escalations | Priority 1 and 2 incidents escalated in the last 7 days. | `incident` | `priority<=2^escalation=1^sys_updated_on>=javascript:gs.daysAgoStart(7)` |
[Table 2. Example manual segments]

{#querygen-create-segment-manually__table_yq5_rh4_x3c}
**Related concepts**   

* [Manual segment data model and sync behavior](https://www.servicenow.com/docs/wi4RahSzmKRMDbOZszvYLA "Manual segments use a two-table data model with automatic synchronization between the configuration table and the runtime table used for search operations.")
* [Shipping manual segments via plugins](https://www.servicenow.com/docs/LVUOH6Um2VqZu_SlsoWs6w "Business unit application developers can ship manual segments with their applications to provide domain-specific saved searches that work from the moment the app is installed.")
* [Guidelines for segments](https://www.servicenow.com/docs/DW44GxCqzayzCfuz4rPtCA "Follow these suggestions to help you use segments in the semantic layer effectively.")  
**Related reference**   

* [Query Generation properties](https://www.servicenow.com/docs/zkRx3uAT0Sa4Zf7lTp4Gww "The properties included with Query Generation apply to segments. They define whether the record or indicator that is the basis for a segment has been recently used or changed.")

*[\>]: and then


