{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":7427,"path":"customer-service-management/use-extension-point-auto-responder.md","title":"Include advanced contextual search results in Auto-Responder notifications","bundle":null,"doc_type":null,"release":"australia","body":"\n# Include advanced contextual search results in Auto-Responder notifications\n\nUse scripted extension points to include the advanced contextual search results in email notifications for content suggested by the Auto-Responder feature.\n\n## Before you begin\n\nRole required: admin\n\n-   Activate the Predictive Intelligence for Customer Service Management plugin \\(com.snc.csm\\_ml\\). For more information, see [Activate a plugin](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/t_ActivateAPlugin.md) and [Predictive Intelligence for CSM solution definitions](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/predictive-intelligence-for-csm.md).\n-   Set the application scope to Email Notification Script for Contextual Search Results. For more information, see [Application picker](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/application-development/c_ApplicationPicker.md).\n\n## About this task\n\nThe 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.\n\nThe csm\\_AdvancedEmailSearchResults script is preconfigured for the customer service portal and consumer service portal.\n\nUsing 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://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/api-reference/web-services/extension-points.md).\n\nAn implementation is available in the base system for scripted extension points. You can modify the data and add additional fields.\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Extension Points** &gt; **Scripted Extension Points**.\n\n2.  In the **API Name** column, search for and click **sn\\_adv\\_emailscript.CSMAdvancedEmailSearchResultsExtensionPoint**.\n\n3.  On the Extension Point form, select a script include to use the CSMAdvancedEmailSearchResultsExtensionPoint extension points.\n\n    -   Modify the existing script by going to the Implementations related list and clicking **CaseAutoresponder**.\n    -   Create and register a custom script include.\n\n        For more information, see [Registering custom script includes against the scripted extension points](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/impl-scripted-ext-pts-custom-code.md).\n\n4.  Modify the script to use the extension points available through the CSMAdvancedEmailSearchResults script include.\n\n    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.\n\n<table id=\"table_qnt_srm_plb\"><thead><tr><th>\n\nConfiguration\n\n</th><th>\n\nImplementation\n\n</th></tr></thead><tbody><tr><td>\n\nInclude 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.\n\n</td><td>\n\nModify the updateSearchRequestConfig extension point to include the custom portal for your tasks other than customer service cases.\n\n</td></tr><tr><td>\n\nFilter out the content by the duration of the last viewed content.\n\n</td><td>\n\nModify 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.\n\n</td></tr><tr><td>\n\nDefine the layout of the email notifications.\n\n</td><td>\n\nModify the printSearchResults extension point to specify a custom layout for the Auto-Responder email notifications.\n\n</td></tr></tbody>\n</table>5.  On the Extension Point form, click **Update**.\n\n\n"}}