{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":7148,"path":"customer-service-management/ra-csm-context-records.md","title":"Contexts in Recommended Actions for Customer Service","bundle":null,"doc_type":null,"release":"australia","body":"\n# Contexts in Recommended Actions for Customer Service\n\nA context enables agents to see recommendations for records from a table when certain rules are met. These recommendations can help agents by suggesting actions to take based on the record context.\n\nThe Recommended Actions for Customer Service application provides context records for the Case and Interaction tables.\n\n## Case Context record\n\nThe Recommended Actions for Customer Service application provides the Case Context record for the Case table.\n\nContext records include [rules](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/ra-csm-rules.md) and [recommendations](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/ra-csm-recommendations.md). The Case Context record also includes search result mapping records for the search source tables. The following tables are mapped to specific guidance actions:\n\n-   Knowledge\n-   Case\n-   Incident\n-   Problem\n-   Change Request\n\nThe remaining tables are mapped to the [Default guidance for search results](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/ra-csm-guidances-default-guidance-search.md) guidance action.\n\n## Interaction Context record\n\nThe Recommended Actions for Customer Service application includes a context record and search mapping record that automatically displays search results from the Knowledge table for chat interaction records.\n\nThe Interaction Context record enables search based on the short description of the interaction record and displays relevant articles. The search mapping record maps knowledge results to the **Share KB in chat interactions** guidance. During chat interactions, the system accurately displays knowledge results in the Search tab in the contextual side panel.\n\nThe Recommended Actions for Customer Service application also includes a search mapping record that maps all search source tables, with the exception of the Knowledge table, to the [Default guidance for search results](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/customer-service-management/ra-csm-guidances-default-guidance-search.md) guidance action. During chat interactions, the system accurately displays results for the search source tables in the Search tab.\n\nFollow these steps to enable recommendations in the contextual side panel for chat interactions:\n\n1.  Navigate to **All** &gt; **Recommended Actions** &gt; **Contexts** &gt; **CSM Interaction context**.\n2.  Enable the **Active** check box.\n3.  Select **Update**.\n\n## Fix script\n\nThe Recommended Actions for Customer Service application includes a fix script that checks for existing context records associated with the same table as the Interaction Context record.\n\n-   If one or more records for the same table are found, the Interaction Context record is deactivated.\n-   If no existing context records for the same table are found, the Interaction Context record remains active.\n\nThis avoids duplicate or conflicting context records.\n\n## Activating or deactivating context records\n\nWhen activating or deactivating context records, the system displays alert messages so that contexts can be managed effectively without causing conflicts.\n\nIf multiple contexts are activated for the same table, the system alerts the admin to specify the correct **contextSysID** property in the Recommended Actions component on record pages for the referenced table.\n\nIf an admin activates multiple contexts for the same table, the system displays a message advising the admin to specify the correct **contextSysID** property on the Recommended Actions component for all record pages that reference this table.\n\nThe message includes information about how to configure the **contextSysID** property on the Recommended Actions component and what happens if the correct context is not specified.\n\nThe system logs all context activation and deactivation events along with the displayed alerts.\n\n"}}