---
sourceDocument: Brazil Platform Analytics
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/now-intelligence

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform Analytics

ft:clusterId :

    - par

bundleId :

    - par

workflow :

    - Platform


---

# Shipping manual segments via plugins

# Shipping manual segments via plugins {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Shipping manual segments via plugins

ServiceNow enables business unit application developers to ship manual segments with their applications via plugins.
Manual segments provide domain-specific saved searches that are immediately usable upon app installation, allowing users to ask natural language questions about application data using familiar business terminology.
This approach ensures manual segments receive priority during searches and their filters are retained unless irrelevant, enhancing search relevance from the start without waiting for automated segment generation.
Show full answer Show less  

## How to Ship Manual Segments

* Create manual segment configuration records (**snquerygensegmenttableconfig**) in a development instance.
* Verify the segments sync correctly and yield expected search results.
* Include these configuration records in your application's update set for plugin deployment.

Note that business rules are bypassed during plugin installation, so manual segments become active only after the next scheduled semantic layer sync job runs. Administrators must ensure no duplicate segment names exist per entity, as no database-level uniqueness is enforced.

## Example Configuration

For example, manual segments for the incident table can be shipped with an ITSM application, provided the incident table has an active semantic layer entity (verified via **snquerygentableconfig** with *enablesemanticgeneration=true*). Sample segments include filters for critical open incidents, the current user's team overdue incidents, and recent P1/P2 escalations, all expressed in business-friendly language.

## Best Practices

* Focus manual segments on high-value, frequently queried tables to maximize impact.
* Use clear, business language for segment names rather than technical codes.
* Provide descriptions to help the LLM disambiguate similar segments.
* Test segments in a development environment to confirm correct syncing and search matching.
* Avoid duplicating automated segments; improve existing ones if names are unclear.

## Pre-Deployment Checklist

* Ensure each target table has an active semantic layer entity.
* Write segment names in user-friendly language with clear descriptions where needed.
* Validate that filters are properly encoded and under 2,000 characters for LLM prompt optimization.
* Confirm no duplicates of segment names per table exist in your update set.
* Verify manual segments sync and appear correctly in search results during testing.

## Post-Deployment Monitoring

* Use query logs to monitor which manual segments are matched and assess query accuracy.
* Collect user feedback on query relevance and coverage.
* Refine segment names and descriptions based on usage to improve search precision.
* Address mismatches by adjusting segment naming or filter specificity rather than system properties first.  
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.

## Shipping overview {#shipping-manual-segments-plugins__shipping-overview}

Manual segments are the recommended way to ship domain-specific saved searches with your application. They receive a priority boost over automated segments during search. The LLM is instructed to retain all their
filters unless completely irrelevant, whereas automated segment filters are critiqued individually.{#shipping-manual-segments-plugins__shipping-intro}

Shipping manual segments with your plugin enables users to immediately ask natural language questions about your application's data using business terminology. They don't have to wait for automated segments to be
generated from usage patterns.{#shipping-manual-segments-plugins__shipping-benefits}

## How to ship manual segments {#shipping-manual-segments-plugins__how-to-ship}

1. Create your manual segment config records in a development instance.
2. Verify they sync correctly and produce expected search results.
3. Include the sn_query_gen_segment_table_config records in your app's update set.
{#shipping-manual-segments-plugins__shipping-steps}

## Plugin installation behavior {#shipping-manual-segments-plugins__installation-behavior}

Understanding how manual segments behave during plugin installation is important for setting proper expectations:{#shipping-manual-segments-plugins__installation-intro}

* Business rules are **bypassed** during plugin installation---the async sync will not fire automatically at install time.
* The records will be synced into sn_query_gen_segment the next time the **Generate Semantic Layer** scheduled job runs (post-install) or when the weekly **Sync Segments** job runs.
* verify your plugin does not ship duplicate records. There is no unique constraint at the database level---admins must verify no duplicate names per entity.

{#shipping-manual-segments-plugins__installation-notes}  
Important:  
Manual segments shipped via plugin will not be immediately available for search after installation. They is set to active after the next scheduled sync job runs.

## Example: Full configuration for a table {#shipping-manual-segments-plugins__example-configuration}

The following example shows manual segments for the incident table that could be shipped with an ITSM application:{#shipping-manual-segments-plugins__example-intro}

**Prerequisite:** The incident table must have a record in sn_query_gen_table_config with enable_semantic_generation = true and an active entity.{#shipping-manual-segments-plugins__prerequisite-note}
{#shipping-manual-segments-plugins__example-segments__entry__4}

| Name | Description | 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/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 1. Example manual segments for incident table]

{#shipping-manual-segments-plugins__example-segments}

## Best practices for shipping segments {#shipping-manual-segments-plugins__best-practices}

Focus on high-value, high-traffic tables
:   Concentrate manual segments on the tables your users ask about most. A handful of well-crafted segments on your application's primary tables will have more impact than broad coverage across rarely-queried tables.

Use business language, not technical codes
:   Segment names should match how users naturally speak about your domain. "Critical Open Incidents" is better than "P1_OPEN_INC".

Provide descriptions for disambiguation
:   If you ship multiple segments for the same table, descriptions help the LLM pick the right one. Without descriptions, the LLM may arbitrarily choose between similar matches.

Test before shipping
:   Verify in a test environment that segments sync correctly and appear in search results for relevant utterances. Check the query logs to confirm matching behavior.

Avoid duplicating automated segments
:   Before creating a manual segment, check whether an automated segment already covers the same filter. If one exists but has a poor name, consider improving the source rather than creating a duplicate.
{#shipping-manual-segments-plugins__shipping-best-practices}

## Checklist before shipping {#shipping-manual-segments-plugins__checklist}

Verify the following before including manual segments in your plugin:{#shipping-manual-segments-plugins__checklist-intro}

* Each target table has an active entity defined in the semantic layer (sn_query_gen_table_config record with enable_semantic_generation = true)
* Segment names are written in plain user language, not technical shorthand
* Descriptions are provided for segments where the name alone may be ambiguous
* Filters are valid encoded queries and under 2,000 characters for optimal LLM prompt inclusion
* No duplicate records (same name + table combination) exist in your update set
* All sn_query_gen_segment_table_config records are included in your app's update set
* You have verified in a test environment that segments sync correctly and appear in search results for relevant utterances
{#shipping-manual-segments-plugins__shipping-checklist}

## Monitoring after deployment {#shipping-manual-segments-plugins__monitoring-after-deployment}

After shipping manual segments with your application:{#shipping-manual-segments-plugins__monitoring-intro}

* Monitor which segments are being matched in the query logs
* Verify that generated queries are correct for the intended use cases
* Collect user feedback on query accuracy and coverage
* Iterate on segment names and descriptions based on usage patterns

{#shipping-manual-segments-plugins__monitoring-tasks}

If a segment is matching but producing wrong results, the issue is usually the name being too generic or the filter being too broad. Refine the name and description before adjusting system properties.{#shipping-manual-segments-plugins__troubleshooting-note}
**Related concepts**   

* [Manual segment data model and sync behavior](https://servicenow-prod.fluidtopics.net/_gkswBMVWQepDfQQ96bFgQ "Manual segments use a two-table data model with automatic synchronization between the configuration table and the runtime table used for search operations.")
* [Guidelines for segments](https://servicenow-prod.fluidtopics.net/zrzfEZ8GeWveVYIP2xo1bg "Follow these suggestions to help you use segments in the semantic layer effectively.")  
**Related tasks**   

* [Create a manual segment](https://servicenow-prod.fluidtopics.net/bCxcKK~4dXP8WP9xrM~bzw "Manual segments are admin-created saved searches with friendly names that bridge natural language questions and database filters for the Query Generation semantic layer.")

