---
sourceDocument: Xanadu ServiceNow AI Platform Administration
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/xanadu/platform-administration

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Define a query filter for Now Assist Q\&A Genius Results

# Define a query filter for Now Assist Q\&A Genius Results {#ariaid-title1}

* Release version: Xanadu
* 
* Updated June 25, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Define a Java regular expression pattern that a search must match to be eligible for triggering Now Assist Q\&A Genius Results. Searches that don't match this pattern don't return Genius Result answers from Now Assist Q\&A Genius Results.

## Before you begin

The Now Assist in AI Search
ServiceNow® Store application must be installed on your instance. For details on installing this application, see [Install Now Assist in AI Search](https://servicenow-prod.fluidtopics.net/zHNz7wFlcM_JJX5K2HHXlg "As an administrator, you can install the Now Assist in AI Search application (sn_ais_assist) from the Now Assist Admin module.").

Make sure that you're familiar with Java's regular expression pattern syntax. To learn about the regular expression pattern syntax, see [the Javadoc for the java.regex.util.Pattern class](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/regex/Pattern.html).

Role required: admin

## About this task

Now Assist Q\&A Genius Results send eligible knowledge article search results to the Now LLM Service for Q\&A Genius Result answer generation.  
By default, the system only sends knowledge article results to the Now LLM Service when the search satisfies all of these conditions.

* The search application is Service Portal, Virtual Agent, Employee Center, or global search.
* The user's session language is English.
* The search contains two or more terms.
* The search matches the Java regular expression pattern defined by the sn_ais_assist.u_question_regex system property's value. This system property has no value set in the base system, so by default all search queries satisfy this condition.
{#define-qry-fltr-now-assist-qna-gr__ul_sgk_5vf_zwb}

You can customize the pattern match condition by defining your own Java regular expression pattern for use by Now Assist Q\&A Genius Result configurations.

## Procedure

1. Navigate to the System Property \[sys_properties\] table's list view.
   1. Select All.
   2. In the Filter field, enter <kbd class="ph userinput">sys_properties.list</kbd>.
   3. Press Enter.
   {#define-qry-fltr-now-assist-qna-gr__substeps_htg_ff5_b1c}
2. Open the record for the sn_ais_assist.u_question_regex system property by selecting it from the list.  
   If the system prompts you to change the application scope so that you can edit the record, select the provided link.
3. In the system property's Value field, enter a Java regular expression pattern that you want Q\&A search queries to match.  
   The Java regular expression match is case-insensitive. As an example, to restrict Q\&A answer expansion to search queries that start with a question keyword, you can set the property's value to <kbd class="ph userinput">^(what|where|when|why|who|whom|which|how)\b</kbd>.
4. Select Update.

## Result

Now Assist Q\&A Genius Results don't send knowledge article search results to the Now LLM Service for Q\&A answer generation unless the search query matches your Java regular expression pattern.

