---
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


---

# Using search scripted post-processors in search applications

# Using search scripted post-processors in AI Search application configurations {#ariaid-title1}

* Release version: Xanadu
* 
* Updated July 16, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read

Use scripted post-processors to modify search result records for display in a search application.
For example, a search scripted post-processor can modify search result date or currency field values to display in the user's regional formats.

## Create a search scripted post-processor {#ariaid-title2}

Define a script to post-process AI Search search results before displaying them to the user.

### Before you begin

Role required: search_application_admin

### Procedure

1. **Optional:** Copy code from an existing post-processor script to use as a starting point for your own script.
   1. Select All.
   2. In the Filter field, enter <kbd class="ph userinput">sys_search_scripted_processor.list</kbd>.
   3. Press Enter.
   4. Open a post-processor script of your choice.
   5. Copy the code from the Post processing script field. {#create-script-post-process-ais__copy-search-script-processor-code}
   {#create-script-post-process-ais__copy-search-script-processor-code} {#create-script-post-process-ais__substeps_bn2_wjk_fcc}
2. Navigate to AllAI SearchSearch ExperienceSearch Applications.
3. Open the search application configuration that you want to configure a scripted post-processor for.
4. In the Search Scripted Post-processors related list, select New.
5. On the Search Scripted Post-processors form, fill in the fields.  
   For a description of the field values, see [Search Scripted Post-processors form](https://servicenow-prod.fluidtopics.net/gSZqyY9TOMyb5i9i4naq4g "The Search Scripted Post-processors form contains information about post-processing scripts defined in search application configurations for AI Search. Use this form when creating or modifying search scripted post-processors."). If you copied code from an existing post-processor script in step [1.e](https://servicenow-prod.fluidtopics.net/fI48MaGwHGg_ZXg3sLo0Ew#create-script-post-process-ais__copy-search-script-processor-code), paste it into the new script's Post processing script field and modify it as needed.
6. Select Submit.

### Result

The new search scripted post-processor appears in the search application configuration's Search Scripted Post-processors related list.

### What to do next

To make your new search scripted post-processor take effect, link it to the search application configuration for the application whose results you want to post-process.

## Link a search scripted post-processor to an AI Search application configuration {#ariaid-title3}

Link a search scripted post-processor to an AI Search search application configuration. The search application executes the linked script for each search result before displaying it to the user.

### Before you begin

Role required: search_application_admin

You must have already created the search script post-processor that you want to link to the search application configuration.

### Procedure

1. Navigate to AllAI SearchSearch ExperienceSearch Applications.
2. Open the search application configuration that you want to link a search scripted post-processor to.
3. In the Search Scripted Post-processors related list, select New.
4. On the Search Scripted Post-processors form, select the reference lookup icon ![]() for the Search scripted processor field and select the search scripted post-processor that you want to link to the search application configuration.  
   For a description of the field values, see [Search Scripted Post-processors form](https://servicenow-prod.fluidtopics.net/gSZqyY9TOMyb5i9i4naq4g "The Search Scripted Post-processors form contains information about post-processing scripts defined in search application configurations for AI Search. Use this form when creating or modifying search scripted post-processors.").
5. Select Submit.

### Result

The new search scripted post-processor appears in the Search Scripted Post-processors related list.

*[\>]: and then


