Configure the Insight Panel

The Coveo Insight Panel is a search interface that you can add to a ServiceNow record, such as a support case or an incident report. The Insight Panel automatically leverages the information in the ServiceNow record, including the keywords the agent types, to proactively display the most contextually relevant content. This lets users search various sources of content directly on the page in which they’re working.

Typically, you add the Insight Panel to a Customer Service Management (CSM) Workspace in ServiceNow. However, you can also add the Insight Panel to a ServiceNow form so that the Insight Panel appears in the standard ServiceNow interface outside of a CSM workspace.

In addition to displaying the most contextually relevant content, the Insight Panel also includes additional features, such as Filters, User Actions, and Result Actions.

Implement the Insight Panel

Add the Insight Panel to a CSM Workspace

You can implement the Insight Panel so that it appears in a specific record view, such as an incident or a case view, in a CSM Workspace interface in ServiceNow.

Insight Panel in a Configurable Workspace

The Insight Panel supports both ServiceNow CSM workspace interfaces: CSM Configurable Workspace and CSM Agent Workspace. The Insight Panel features and functionality are the same in both workspaces. The only difference is how the Insight Panel is implemented.

Depending on the CSM workspaces in your ServiceNow instance, add the Insight Panel to one or more CSM Configurable Workspaces or CSM Agent Workspaces as required.

Configurable Workspace

Coveo for ServiceNow includes a Coveo Agent Panel component that you can use to add the Insight Panel to your CSM Configurable Workspaces.

The Insight Panel is optimized for use in a CSM Configurable Workspace record page. Though you can add the Insight Panel to any type of page, Coveo recommends that you add it to a record-type page to leverage the record’s Fields data to proactively display the most contextually relevant content.

To add the Insight Panel to a CSM Configurable Workspace

Note

Given that CSM Configurable Workspace experiences are highly customizable, these instructions provide only general guidelines to accommodate various customizations. See the example for detailed instructions on how add the Insight Panel to the contextual side panel of a standard record page, which is the typical implementation.

  1. In the Now Platform UI of your ServiceNow instance, navigate to Now Experience Framework > UI Builder.

  2. On the My experiences page of the UI Builder, click the workspace experience to which you want to add the Insight Panel.

  3. Ensure that the record page you want to work in is selected in the page management panel.

    Workspace UI Builder Page
  4. Add the Coveo Agent Panel component to the desired container or component in your workspace experience.

    Note

    A component can be configured to appear based on certain conditions. For the Insight Panel to appear for a given record type, such as a case or incident, ensure that the visibility configuration of the component is configured accordingly. Depending on your configuration, the component can be the component in which the Insight Panel is added or the Coveo Agent Panel component itself. If you’re implementing the Insight Panel as a tab in a tab component, such as a contextual side panel, you can also set the visibility of the tab based on conditions.

  5. In the content tree of the page management panel, ensure that the newly created Coveo Agent Panel component is selected.

  6. In the Config tab of the component configuration panel, specify the following settings for the Insight Panel:

    1. By default, the Scope and Component fields are set to Workspace and AgentPanel respectively. You can use the default values or enter the desired values to identify the Insight Panel. Take note of the values as you’ll need them when configuring the query pipeline for the Insight Panel.

    2. In the Hosted Search Page ID field, enter the name of the Coveo-powered search page that you want to use for the Insight Panel.

      Notes
    3. The User Actions feature displays the documents clicked and queries made by the customer who opened the incident or case. By default, the Insight Panel displays the actions associated to the user that’s specified in the opened by record form field. If you want to use a different form field for this purpose, specify it in the Table Creator Field field.

      Note

      Dot-walking syntax is supported.

    4. By default, editing the content of any record form field triggers a query to Coveo, which in turn updates the Insight Panel. Moreover, the content of all form fields is sent as context information for Coveo Machine Learning (Coveo ML) purposes. To avoid triggering a query when certain fields are edited frequently, contain irrelevant data, or if fields contain sensitive data that you don’t want to send to Coveo, you can specify the fields to ignore in the Fields To Ignore field as comma-separated values. To trigger a query only when certain fields are edited, and send only specific field content to Coveo, you can specify the fields in the Fields To Include field as comma-separated values.

  7. Click Save to save your workspace.

    Notes
    • Depending on your workspace configuration, you may need to modify the CSS styling of the component in which you added the Insight Panel.

    • You can test your implementation using the test value URL.

Example

To add the Insight Panel to the contextual side panel of a standard record page of a Configurable Workspace:

  1. In the Now Platform UI of your ServiceNow instance, navigate to Now Experience Framework > UI Builder.

  2. On the My experiences page of the UI Builder, click the workspace experience to which you want to add the Insight Panel.

  3. Ensure that the record page you want to work in is selected in the page management panel.

    Workspace UI Builder Page
  4. In the content tree of the page management panel, click the Tab sidebar component.

    Workspace Tab Sidebar
  5. In the Config tab of the component configuration panel, in the Tabs section, click + Add.

    Workspace Tab Add
  6. Click Start from an empty container, and then click Next.

  7. Enter a descriptive name in the Tab label field, such as Coveo search.

  8. Select an Icon for the tab.

  9. Click Create.

  10. In the content tree of the page management panel, click + Add component under the newly created tab.

    Workspace Tree Component
  11. In the Components dialog, search for and select the Coveo Agent Panel component.

  12. In the content tree of the page management panel, ensure that the Coveo Agent Panel component is selected.

    Workspace Tree Coveo Component
  13. In the Config tab of the component configuration panel:

    Workspace Tree Coveo Component
    • Leave the Scope and Component fields to the default values: Workspace and AgentPanel.

    • In the Hosted Search Page ID field, enter the name of the custom Coveo search page that you created for use with the Insight Panel, which is Insight Panel Search.

    • Leave the Table Creator Field field to the default value of opened by.

    • Do not enter any Fields To Ignore or Fields To Include.

  14. Click Save to save your workspace.

  15. When testing the implementation using the test value URL, you notice that the Insight Panel isn’t displaying properly within the contextual side panel, so you adjust the component CSS as follows:

    1. In the content tree of the page management panel, select the tab component that you created for the Insight Panel.

      Workspace Tree Coveo Tab
    2. In the Styling tab of the component configuration panel, enable View and edit CSS.

    3. Under External Layer, click Edit CSS.

    4. In the CSS editor, enter the following:

      Workspace Coveo CSS
    5. Click Apply.

  16. Click Save to save your workspace.

Agent Workspace

The ServiceNow Agent Workspace interface consists of three panels. When you add the Insight Panel to the Agent Workspace, it appears in the Contextual Side Panel on the right-hand side.

  1. In the Now Platform UI of your ServiceNow instance, navigate to Workspace Experience > Actions & Components > Contextual Side Panel.

  2. On the Action Assignments page, click New.

  3. In the new record form, in the Action Label field, enter a label for your new action record.

  4. In the Action Name field, enter a unique name for your action.

  5. In the Implemented as dropdown menu, select UI component.

  6. In the Specify UI component field, look up and select vsc-coveo-agent-panel.

  7. In the Icon field, look up and select an icon to represent the Insight Panel in the Contextual Side Panel menu, such as magnifying-glass-outline.

  8. In the Tooltip field, enter the text that appears when a user hovers over the panel icon.

  9. In the Table field, select the table for which the Insight Panel appears. If you select global, the Insight Panel appears in the records of all tables.

  10. In the Order field, enter an integer representing where the Insight Panel icon should appear in the Contextual Side Panel menu. If you enter 0, this icon is the first in the menu, and the Insight Panel is loaded with the record.

  11. Under Related Links, click Advanced View.

  12. In the Workspace field, select the workspace in which you want to add the Insight Panel. Leave the field empty to add the Insight Panel to all workspaces.

  13. In the Component Attributes tab:

    1. In the Scope and Component fields, enter the desired values to identify the Insight Panel. Take note of the values as you’ll need them when configuring the query pipeline for the Insight Panel.

    2. By default, editing the content of any record form field triggers a query to Coveo, which in turn updates the Insight Panel. Moreover, the content of all form fields is sent as context information for Coveo Machine Learning (Coveo ML) purposes. To avoid triggering a query when certain fields are edited frequently, contain irrelevant data, or if fields contain sensitive data that you don’t want to send to Coveo, you can specify the fields to ignore in the fieldsToIgnore field as comma-separated values. To trigger a query only when certain fields are edited, and send only specific field content to Coveo, you can specify the fields in the fieldsToInclude field as comma-separated values.

    3. In the searchPageId field, enter the name of the Coveo search page that you want to use for the Insight Panel.

      Notes
    4. The User Actions feature displays the documents clicked and queries made by the customer who opened the incident or case. By default, the Insight Panel displays the actions associated to the user that’s specified in the Opened by record form field. If you want to use a different form field for this purpose, specify it in the tableCreatorField field.

      Note

      Dot-walking syntax is supported.

  14. At the upper-right corner, click Update.

Disable the ServiceNow Agent Assist feature

If you’ve implemented the Insight Panel in a CSM Workspace, you may want to disable or remove the ServiceNow Agent Assist feature from the records in which you’ve added the Insight Panel.

Though the ServiceNow Agent Assist feature offers search, item suggestion, and attachment features comparable to that of the Insight Panel, its recommendations are limited to ServiceNow items and aren’t powered by Coveo Machine Learning (Coveo ML).

If you’re using the CSM Configurable Workspace, delete or hide the Agent Assist component from the record page.

If you’re using the CSM Agent Workspace:

  1. In the Now Platform UI of your ServiceNow instance, navigate to Workspace Experience > Actions & Components > Contextual Side Panel.

  2. On the Action Assignments page, open the Agent Assist action that’s associated with the table in which you’ve implemented the Insight Panel.

  3. In the record, clear the Active box.

  4. At the upper-right corner, click Update.

Add the Insight Panel to a form in the standard ServiceNow interface

You can implement the Insight Panel so that it appears in a ServiceNow form, such as an incident or case, when viewing the form in the standard ServiceNow interface outside of a CSM Workspace. You can position the Insight Panel on the form as desired.

Insight panel embedded in the ServiceNow interface

To add the Insight Panel to a ServiceNow form

  1. In the Now Platform UI of your ServiceNow instance, switch to the Global application (see Application Picker). If the Global application isn’t accessible, you must create a single UI Formatter for every table in which you want to implement the Insight Panel.

  2. Navigate to System UI > Formatters.

  3. On the UI Formatters page, in the upper-left corner, click New.

  4. In the new record form:

    1. In the Name field, enter an appropriate name for your new formatter, such as Coveo Insight Panel.

    2. In the Formatter field, enter x_216814_coveo_1_0_coveo-agent-panel.xml.

    3. In the Table dropdown menu, select the table for which you want to make the Coveo Insight Panel formatter available, such as case or incident, or select global to make the panel available to any form. You can add the Insight Panel formatter to a specific table later in these steps.

    4. Click Submit.

  5. Switch back to your regular application.

  6. Navigate to System UI > Formatters, and open the formatter you just created.

  7. Click Additional-Actions, and then navigate to Configure > Form Design.

  8. At the upper-left of the Form Design page:

    • Select the table in which you want to add the Insight Panel.

    • If required, select the desired table view.

  9. In the menu on the left, scroll down to the Formatters list, and then drag the Insight Panel formatter you created to the desired location on the form.

  10. If the form includes the Contextual Search Results ServiceNow formatter, remove the formatter from the form to replace the default ServiceNow results with the results provided by the Insight Panel.

  11. At the upper-right corner, click Save.

  12. By default, your Insight Panel uses a preconfigured search page. To create a custom search page for the Insight Panel, see Customize the Insight Panel Search Page.

  13. Test your changes:

    1. Open a ServiceNow record in the form that contains the Insight Panel.

    2. Ensure that the Insight Panel appears as expected. If it’s absent or if the case has an unexpected layout, you may be dealing with a domain-separated form or table view. See Domain Separation and/or the ServiceNow documentation for details.

Configure your query pipeline

Once you have implemented the Insight Panel in your ServiceNow instance, you must link it to a query pipeline in your Coveo organization.

  1. On the Query Pipelines (platform-ca | platform-eu | platform-au) page of the Coveo Administration Console, do one of the following:

    • If you want to use an existing pipeline, click the pipeline, and then click More > Edit in the Action bar.

    • Create a new query pipeline for your Insight Panel, and then refer to the following step to create the pipeline Condition in the Add a Query Pipeline panel.

  2. In the Add/Edit a Query Pipeline panel, create a condition to enforce a specific search hub (Search hub is) for the pipeline. The filter value you enter differs based on if the Insight Panel is in the ServiceNow Agent Workspace or a ServiceNow form.

    Note

    If your pipeline already has a condition, you must create a new condition and include both values with an OR operator.

    For example, an existing pipeline has the following condition: Search Hub is Portal_MyWidget. To link the Insight Panel to this pipeline, you create a new condition with the value Search Hub is Portal_MyWidget or Search Hub is Agent_WorkspaceInsight. With this condition, your pipeline is used for all queries that originate from either your widget or the Insight Panel.

    • For an Insight Panel in the ServiceNow Agent Workspace:

      • If you didn’t provide Scope and Component values in the Insight Panel Action Assignment record, enter ServiceNow. Your complete pipeline condition is therefore Search Hub is ServiceNow.

      • If you provided Scope and Component values, enter them in the following format: Scope_Component.

        Example

        For a widget with an Agent scope and a WorkspaceInsight component, your condition value should be Agent_WorkspaceInsight. Your complete pipeline condition is therefore Search Hub is Agent_WorkspaceInsight.

        With such a condition, the pipeline is used for all queries that originate from the Insight Panel.

    • For an Insight Panel in a ServiceNow form, enter the name of the table in ServiceNow to which you added the Insight Panel. The expected pattern is <tableName>_InsightPanel.

      Example

      If you add the Insight Panel to the incident table, your pipeline condition value must be incident_InsightPanel. Your complete pipeline condition is therefore Search Hub is incident_InsightPanel.

      With such a condition, the pipeline is used for all queries that originate from the Insight Panel.

  3. Add a rule to override the large query expression (lq) parameter value so that it uses the textual data a user enters in the issue description field when creating the form:

    1. At the upper-right corner, click Menu, and then click Add rule with code.

      1. In the Add a Rule With Code dialog, enter the following rule to set the large query expression (lq) to the name attribute of the issue description field in the case creation form, which is comments:

        override query lq:"<@+ $context.comments +@>"
        Note

        Depending on the format of the catalog item, you may need to replace comments with the name attribute of the form input data that you want to send along with the search query. For example, to send the short_description data along with the search query, your rule would be:

        override query lq:"<@+ $context.short_description +@>"
      2. Click Add with code.

    2. Click the rule you just created, and then click Edit in the Action bar.

    3. In the Edit a Query Parameter Rule panel, under Condition, select or add a Query is empty condition.

Insight Panel features

In addition to displaying the most contextually relevant content, the Insight Panel offers the following features:

Filters

Also known as facets in a regular Coveo for ServiceNow search page, the Insight Panel filters allow agents to further refine their search results by displaying only the items that match the selected criteria.

Tip
Leading practice

You can customize the filters in your custom search page.

Insight Panel Using Filters

User Actions

The Insight Panel User Actions feature lets agents see the items customers clicked, and the terms they queried, before they created the incident or case. This allows the agents to retrace the customer’s journey around your portal and adapt their approach accordingly.

Notes
  • The actions are associated with the user that’s specified in the record field that was selected for this purpose when configuring the Insight Panel in a Configurable Workspace or Agent Workspace. When configuring the Insight Panel in a form in the standard ServiceNow interface, the user actions are associated with the user that opened the case or incident.

  • By default, the Insight Panel fetches the user data based on the user’s email address. You can use the getRecordCreator function to fetch the user based on custom criteria, such as a user name instead of an email address.

  • If you’re using a custom search page for your Insight Panel, you must enable the User Actions feature for the corresponding search page. The User Actions feature is enabled by default in the preconfigured default search page for the Insight Panel.

Insight Panel User Actions

A Viewed by Customer label also identifies the items the customer accessed.

Insight Panel Viewed By Customer

Result Actions

Result actions enable agents to quickly attach or copy a search result directly from the Insight Panel.

Note

If you’re using a custom search page for your Insight Panel, you must enable the Result Actions feature for the corresponding search page. The Result Actions feature is enabled by default in the preconfigured default search page for the Insight Panel.

When an agent hovers over a search result, result action buttons appear:

  • Clicking Attach Result creates a comment with a link to the item for future reference.

    Insight Panel Viewed By Customer
    Tip
    Leading practice

    You can create a ServiceNow business rule to automatically add a custom work note when a user attaches or detaches a Coveo search result.

  • Clicking Copy copies the item title and URL to the clipboard. The agent can then paste this information in a separate document, a chat window, etc.

    Insight Panel Viewed By Customer