Replacing the Service Portal Search Page

Coveo search pages do not simply match keywords with items: they also leverage machine learning and usage analytics to ensure that the content returned to each search page user is the most relevant for them, based on their profile and inferred intentions. Coveo search pages also make it possible for users to search multiple content sources at once, which typical search engines do not 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 engine with a customizable Coveo search page.

Replace Your Current Service Portal Search Page With a Coveo 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, this is the record whose ID is search).

      You should create a backup copy of the record by clicking the Clone Page button in the top-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 application that opens in a new browser tab:
    1. Delete all widgets and containers in the page, or reorganize them to make room for the large Coveo Main Search widget.
    2. Create a one-column container or, if you want to display personalized recommendations next to the search results list, a two-column container (see Recommendations Widget and Configuring a Recommendations Panel).

      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 and drop the Coveo Main Search widget inside the container (see Main Search).

      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 (see Customize a Widget and Main Search Widget Options).
    5. Click Preview to see how your Coveo search page looks on different display sizes.

Customize Your Coveo 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 Cloud administration console Search Pages page (see Access the “Search Pages” Page).
  2. Create and customize a new search page (see Add a Search Page). Note your new search page name, as you will need to enter it in the ServiceNow interface later.
  3. Back in the Service Portal Designer, in the top right corner of the Coveo Main Search widget, click the Edit Widget icon (Edit Widget icon).
  4. In the dialog box that appears, under Search Page, enter the name you gave your custom search page when you created it in the Coveo Cloud administration console.
  5. Click Save.

Next time you want to edit your Coveo search page, there are two ways to access the Coveo JavaScript Search Interface Editor (JavaScript Search Interface Editor):

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 search page, and to eventually provide Coveo Machine Learning (Coveo ML) Query Suggestions (QS) to your customers (see Replacing the Service Portal Search Boxes).