ServiceNow Connector

Learn about the functionality and requirements of Aisera's ServiceNow connector.

Overview

This topic discusses ingesting the tickets and associated objects from ServiceNow. Aisera’s ServiceNow integration uses the ServiceNow REST API to automatically pull the following records from a ServiceNow database:

  • Approvals

  • Assignment Groups

  • Incidents

  • Knowledge Base Articles

  • Requests

  • Service Catalog

  • Users

Prepare

Before completing the configurations for the ServiceNow, you will need to ensure that you complete the following items, and gather the required information.

Authentication

Aisera's ServiceNow connector supports two authorization types: OAuth 2.0 and Basic.

OAuth 2.0

Go to Create OAuth API endpoints for external clients to generate credentials to use in the OAuth 2.0 authorization flow. You will need to retrieve the following necessary credentials:

  • Authorization URL

  • Client Id

  • Client Secret

  • Cloud Id

Basic Authentication

Basic Authentication uses an account's username and password. It is common practice to create a dedicated service account for this authorization type.

Service Account

To pull tickets, KB articles, and related objects from ServiceNow, you will need to create a Service Account.

Read Permissions

The service account will need read permissions to the following tables:

  • close_notes (Task)

  • cmdb_ci (Related CMDB/CI info)

  • cmn_location (Location information)

  • incident (incidents)

  • kb_article_template

  • kb_knowledge (Knowledge)

  • sc_item_option

  • sc_item_option_mtom

  • sc_req_item

  • sc_requests

  • sc_cat_item

  • sys_journal_field

  • sys_user (Users, when crawling any type of ticket)

  • sys_user_group (Assignment Groups)

  • sysapproval_approver (Approval list)

Write Permissions

To create or update any incidents or approvals, the ServiceNow service account needs write permissions for the following tables:

  • incident

  • request

  • sys_journal_field

  • sysapproval_approver

Roles

To crawl the service catalog, the service account needs Service Catalog ITIL and Catalog_Admin roles.

Integration Setup

To create the ServiceNow integration:

  1. In the Aisera Admin UI navigate to Settings > Integrations.

  2. Click on + New Integration

  3. In the menu, select ServiceNow and click Next

    Choose the ServiceNow Integration
  4. Fill in the integration details and click Next

    Add Configuration Details
    Field
    Description

    Name

    Enter the name you want to give to the integration

    Endpoint

    Enter the ServiceNow URL that you want to connect to

    Live API Agent

    Select the version of the ServiceNow API

    Public

    Determines whether the integration can be used outside the firewall

    Description

    Mention the details for the integration you want to configure

  5. Select the Auth Type and fill in the respective credentials

  6. Click Ok to save the integration

Data Source Setup

To create the ServiceNow data source:

  1. In the Aisera Admin UI navigate to Settings > Data Source

  2. Click + New Data Source

  3. Select ServiceNow and click Next

    Designate the Data Source
  4. Enter the configuration details and click Next

  5. All remaining options are optional. See the section below for more information. Click Next until the window closes to complete the creation of the Data Source

Optional Configurations

During data source configuration, several optional parameters are available to customize the ingestion process or formats. These options may vary based on the functions and parameters selected earlier.

Optional Data Source Parameters

Custom Endpoint Modification Map

When a gateway is configured, you can map standard ServiceNow API endpoints to gateway endpoints. This mapping is done using a JSON string in the format of "<ServiceNow_Endpoint>:<Gateway_Endpoint>".

To enable the import of ServiceNow service catalogs as intents, set the Import Service Catalogs as Intents flag to Yes. When this setting is enabled, the system will use the provided gateway information to query, retrieve and update data used for intent generation, automatically populating dropdowns for Service Catalogs and categories within the Admin UI.

Example Input:

{
    "api/now/table": "api/esp/table",
    "api/now/attachment": "api/cisit/esp/attachment"
}

Incidents Table

Specify the custom incidents table name so the data source can locate it.

Custom Script

This field is used to transform the data being ingested into the Aisera platform. This script is written in JavaScript.

Additional Query Parameters

This field is used to ingest additional attributes that are not part of the out of the box connector query.

Download Attachments

Enable this flag to ingest document attachments.

Join Tables

This JSON configuration enables the association of additional tables with content types being ingested. It offers the flexibility to join and integrate data from any desired table into the table currently being ingested.

Bypass Test Connection

If checked, the connector will not perform the test connection. In case the entered credentials are wrong, you may not get good error messages. Hence, it is advised to have it unchecked.

If checked, the connector will not perform a test connection.

Custom Query

This query acts as a filter to the out of the box connector query. This is used when only certain KB articles or tickets from specific departments are to be ingested.

Post-Connection Steps

Data Ingestion

After you've successfully set up your connector, your data will automatically begin syncing according to the schedule parameters defined during the Data Source Configuration step. However, you should perform a manual sync immediately. This initial run will serve two key purposes:

  1. It confirms the connector is working properly.

  2. It provides an immediate view of the information being ingested into the Aisera Application, allowing you to validate and begin working with the data.

To manually ingest data:

  1. In the Aisera Admin UI navigate to Settings > Data Sources.

    Data Sourceces Window
  2. Click on the Data Source you wish to manually ingest data from.

  3. At the top right of the Data Source Details page, click the Play button to manually ingest data.

    Data Source Window

Viewing Ingested Tickets

After data ingestion has occurred, tickets can be viewed in the Aisera Admin UI by navigating to SOR > Tickets using the left navigation panel.

Navigation to Tickets Window

Reviewing Crawled Knowledge Documents

After data ingestion has occurred, you may then review the knowledge documents and sections that have been ingested.

To view all of the ingested documents:

  1. Navigate to AI Workbench > Review on the left-hand main navigation panel

  2. Click the Knowledge Review tab at the top of the page

  3. You will see Commit Reviewed and the number of documents that have been ingested.

  4. If this is the first crawl, all the documents are in Reviewed status by default. Refer to How to Review Crawled Knowledge documents for more details

  5. Click on Commit Reviewed and click Commit.

  6. Now, navigate to SOR > Knowledge in the left navigation panel and you will see all the ingested documents. It might take a couple of minutes to load the docs in the knowledge tab.

Last updated

Was this helpful?