---
sourceDocument: Yokohama Customer Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/customer-service-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Customer Service Management

ft:clusterId :

    - csm

bundleId :

    - csm

workflow :

    - Customer and Industry


---

# Include advanced contextual search results in Auto-Responder notifications

# Include advanced contextual search results in Auto-Responder notifications {#ariaid-title1}

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

Use scripted extension points to include the advanced contextual search results in email notifications for content suggested by the Auto-Responder feature.

## Before you begin

Role required: admin  
* Activate the Predictive Intelligence for Customer Service Management plugin (com.snc.csm_ml). For more information, see [Activate a
  plugin](https://www.servicenow.com/docs/access?context=t_ActivateAPlugin&version=yokohama&pubname=yokohama-platform-administration&ft:locale=en-US) and [Predictive Intelligence for CSM solution definitions](https://www.servicenow.com/docs/ub3myoINVhIG6VDnigvghg "Use your instance records to build Customer Service Management specific solutions.").
* Set the application scope to Email Notification Script for Contextual Search Results. For more information, see [Application
  picker](https://www.servicenow.com/docs/access?context=c_ApplicationPicker&version=yokohama&pubname=yokohama-application-development&ft:locale=en-US).
{#use-extension-point-auto-responder__ul_gzs_cmb_tlb}

## About this task

The Email Notification Script for Contextual Search Results plugin
(com.snc.adv_cxs_results_email_script) installs the
csm_AdvancedEmailSearchResults script,
CSMAdvancedEmailSearchResults script include and
CSMAdvancedEmailSearchResultsExtensionPoint extension
points.

The csm_AdvancedEmailSearchResults script is preconfigured for the
customer service portal and consumer service portal.

Using extension points makes it easier to integrate customizations without actually
altering the base code. You can extend standard base functionality using customized
scripts. For more information, see [Using extension points to
extend application functionality](https://www.servicenow.com/docs/access?context=extension-points&version=yokohama&pubname=yokohama-api-reference&ft:locale=en-US).

An implementation is available in the base system for scripted extension points. You
can modify the data and add additional fields.

## Procedure

1. Navigate to AllSystem Extension PointsScripted Extension Points.
2. In the API Name column, search for and click sn_adv_emailscript.CSMAdvancedEmailSearchResultsExtensionPoint.
3. On the Extension Point form, select a script include to use the CSMAdvancedEmailSearchResultsExtensionPoint extension points.
   * Modify the existing script by going to the Implementations related list and clicking CaseAutoresponder.
   * Create and register a custom script include. For more information, see
     [Registering custom script includes against the scripted extension points](https://www.servicenow.com/docs/SSowbDxnnp~MY4oVN2ZzjA "Register custom script includes against a selected scripted extension point in the application code.").

   {#use-extension-point-auto-responder__choices_mxh_ght_plb}
4. Modify the script to use the extension points available through the CSMAdvancedEmailSearchResults script include.  
   You can create multiple implementations for each extension point and provide
   an order number for each implementation. The implementation that has the
   lowest order number is executed first.  
   {#use-extension-point-auto-responder__table_qnt_srm_plb__entry__2}

   | Configuration | Implementation |
   |-|-|
   | Include a custom portal and search for knowledge articles from the knowledge base associated with the custom portal. Note: Applies only to tasks other than customer service cases. | Modify the updateSearchRequestConfig extension point to include the custom portal for your tasks other than customer service cases. |
   | Filter out the content by the duration of the last viewed content. | Modify the getViewedContent extension point by entering the last viewed content duration in days. Note: By default, any knowledge articles viewed in the last 30 days by the user are not included in the email notification. |
   | Define the layout of the email notifications. | Modify the printSearchResults extension point to specify a custom layout for the Auto-Responder email notifications. |
   [Table 1. Configuration for different extension points implementation]

   {#use-extension-point-auto-responder__table_qnt_srm_plb}
5. On the Extension Point form, click Update.
{#use-extension-point-auto-responder__steps_btb_sgm_plb}

*[\>]: and then


