Replace the Service Portal search page

A Coveo-powered search page not only matches keywords with items, it also leverages machine learning and usage analytics to ensure that the content returned to each user is the most relevant for them, based on their profile and inferred intentions. A Coveo-powered search page also makes it possible for users to search many content sources at once, which typical search engines don’t allow. Therefore, to take full advantage of Coveo for ServiceNow and leverage Coveo’s unique features to improve your users' search experience in your Service Portal, you should replace your Service Portal search page with a customizable Coveo-powered search page.

Replace your current Service Portal search page with a Coveo-powered search page

  1. In the Now Platform UI of your ServiceNow instance:

    1. Navigate to Service Portal > Pages.

    2. Find and open your Service Portal search page record (typically, the record ID is search).

      Note

      If you’re using Page Route Maps (Service Portal > Page Route Maps) to redirect references to the search page to another search page, you must open the search page to which the redirect is routed. For example, if you redirect search to sp_search, you must open the sp_search page.

      Tip
      Leading practice

      You should create a backup copy of the record by clicking Clone Page in the upper-right corner of the record form. When this is done, navigate back to the original record before proceeding on to the next step.

    3. In the Related Links section, click Open in Designer.

  2. In the Service Portal Designer:

    1. Delete all widgets and containers on the page, or reorganize them to make room for the large Coveo Main Search widget.

    2. Add a one-column container, or a two-column container if you want to display personalized recommendations next to the search results list.

      Example

      The Main Search and the Recommendations widget in a two-column container:

      The Main Search and the Recommendations widget in a two-column container
    3. Drag the Coveo Main Search widget inside the container (see Main Search).

      Note

      For navigation purposes, you may also want to add a one-column container with a breadcrumbs widget right above the container with the Coveo Main Search widget.

    4. Optionally, customize the Main Search widget. Thanks to the Scope and Component options, you can name your widget according to your convention.

    5. Click Preview to see how your Coveo-powered search page looks on different display sizes.

      c4snow preview full search page

Customize your Coveo-powered search page

Once you have added the Coveo Main Search widget to your portal search page, you may want to customize the page that the widget displays. This step is however optional.

When customizing the search page for the first time:

  1. In a new tab, access the Coveo Administration Console Search Pages (platform-ca | platform-eu | platform-au) page.

  2. Create and customize a new classic search page. Note your new search page name, as you’ll need to enter it in the ServiceNow interface later.

  3. Back in the Service Portal Designer, click Edit-Widget in the upper-right corner of the Coveo Main Search widget.

  4. In the dialog that appears, under Hosted Search Page, enter the name you gave your custom search page when you created it in the Coveo Administration Console.

  5. Click Save.

Note

To edit your Coveo-powered search page, on the Search Pages (platform-ca | platform-eu | platform-au) page, click the desired page, and then click Edit interface in the Action bar.

Configure your query pipeline

Once you have implemented the widget 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:

    • Click an existing pipeline, and then click Edit components in the Action bar.

    • Create a new pipeline for your Coveo for ServiceNow widget to use.

  2. In the query pipeline panel, create a condition enforcing a specific search hub (Search hub is) for the pipeline. The filter value to enter depends on your widget configuration:

    • If you didn’t provide Scope and Component values in the widget options, enter ServiceNow.

    • If you provided a scope and a component, enter them in the following format: Scope_Component.

      Example

      For a widget with a Portal scope and a MyWidget component, your condition value should be Portal_MyWidget. Your complete pipeline condition is therefore Search Hub is Portal_MyWidget.

      With such a condition, your pipeline will be used for all queries originating from the widget.

      Note

      If your pipeline already has a condition, ensure to include this previous condition in your new one with an OR operator.

      For example, your pipeline has the following condition: Search Hub is Portal_MyWidget. You want to link a new portal widget to this pipeline, so your new condition is Search Hub is Portal_MyWidget OR Search Hub is Portal_MySecondWidget. With this condition, your pipeline will be used for all queries originating from one of these widgets.

What’s next?

Replace the current search boxes in your Service Portal pages with standalone Coveo search boxes in order to properly forward queries to your Coveo-powered search page, and to eventually provide Coveo Machine Learning (Coveo ML) query suggestions to your customers.