Configuring AI Agent for ServiceNow

After you install Tanium AI Agent for ServiceNow, perform the following configuration tasks:

  1. Add endpoints to your ServiceNow instance.
  2. Collect information for Tanium SDK system properties.
  3. Configure Tanium SDK.
  4. Create a ServiceNow persona.
  5. Enable the Now Assist panel.
  6. Activate Now Assist skills for ITSM.
  7. Index sources.

The UI for your ServiceNow instance provides guided setups to configure the Tanium Software Development Kit (SDK) application, the Tanium AI Agent for ServiceNow application, and a ServiceNow persona. In each guided setup, a navigation pane shows your progress through the setup as a percentage and shows a circle for each section. A check mark in the circle indicates you completed the section. Hover over a circle to see the section name. Click a circle to go to the section.

Add endpoints to your ServiceNow instance

Use the ServiceNow Service Graph Connector for Tanium or use Tanium Asset to add endpoints as configuration items (CIs) to your ServiceNow instance. The endpoints that you add must match the endpoints in your Tanium environment. The endpoints must be present in the instance before you can perform any patching operations.

Collect information for Tanium SDK system properties

Perform the following tasks before you configure system properties for Tanium SDK.

Determine the URLs for API Endpoints

Find the fully qualified domain name (FQDN) of your Tanium Cloud client to determine the URLs for the following API endpoints:

  • Tanium API endpoint

    The API endpoint URL is the URL of Tanium Cloud but with /api/v2 appended to the end. For Tanium Cloud, you must also append ‑api to the end of the subdomain. For example, if the FQDN is cloud‑example.cloud.tanium.com, the endpoint URL is https://cloud‑example‑api.cloud.tanium.com/api/v2.

  • Tanium module API endpoint

    The API endpoint URL is the URL of Tanium Cloud but with /plugin/products appended to the end. For Tanium Cloud, you must also append -api to the end of the subdomain. For example, if the FQDN is cloud‑example.cloud.tanium.com, the endpoint URL is https://cloud‑example‑api.cloud.tanium.com/plugin/products.

For information about obtaining a client edge URL for your Tanium Cloud service instance, see View information and manage the maintenance windows and notifications.

Determine the API token value

Access the file where you stored the API token for the Tanium AI Agent for ServiceNow integration. For more information, see Creating API tokens.

Determine the MID server name

Record the name (not the ServiceNow sys_id) of the management, instrumentation, and discovery (MID) server if your ServiceNow instance uses such a server to connect to your Tanium environment. For more information about MID servers, see Infrastructure.

  1. Sign in to your ServiceNow instance.
  2. In the Main menu, click All, enter mid servers in the filter Filter field, and click MID Servers.

Determine the action group ID

Perform the steps in View action groups to view the ID of the Default - All Computers action group and then record the ID.

Configure Tanium SDK

Configure Tanium SDK to enable your ServiceNow instance to connect with your Tanium environment. Certain SDK system properties that you configure affect the behavior of the Tanium AI Agent for ServiceNow.

Access the SDK guided setup

  1. Sign in to your ServiceNow instance.
    Note: If you are already signed in to the instance and just finished installing applications (such as Tanium SDK), perform a hard refresh of your current browser tab to show the new applications in the instance UI.
  2. In the Main menu, click Scope Scope, enter sdk in the filter Filter field, and select Tanium SDK.
  3. In the Main menu, click All, enter tanium sdk in the filter Filter field, and click Guided Setup.
  4. Perform the following tasks on the Tanium Integration Core Setup page:
    1. Set system properties
    2. Run automated tests

Set system properties

Perform the following steps on the Tanium Integration Core Setup page. To access the page, see Access the SDK guided setup.

  1. Go to the Set System Properties section and click Get Started for a first-time setup or Edit for an existing setup.
  2. Configure the following system properties as required for your integration. Click Configure in the header of any system property to open the configuration page.
    Table 1. System properties

    System Property

    Description

    Tanium API Endpoint

    Enter the URL or IP address of Tanium Cloud, with the API path prefix /api/v2 appended to the end. For more information, see Determine the URLs for API Endpoints.

    Tanium Module API Endpoint

    Enter the URL or IP address of Tanium Cloud, with the API path prefix /plugin/products appended to the end. For more information, see Determine the URLs for API Endpoints.

    Note: When you use this property for an API call, the Tanium module name, API version, and API method name are automatically appended.

    Tanium API Token

    Enter the API token that the integration uses for API requests. For more information, see Creating API tokens.

    The ServiceNow scheduled job Get new API token - Tanium Integration Core rotates the Tanium SDK token every seven days, but the job is disabled by default. To enable the job:

    1. On the properties configuration page, click the scheduled job link to open the job settings in a new browser tab.

    2. Select Active and click Update.

    Note: Use the Tanium API Token property for authenticating instead of the Tanium Username/Password properties, which are deprecated.

    Default MID Server

    Enter the name (not the ServiceNow sys_id) of the MID server if your ServiceNow instance uses such a server for connecting to your Tanium environment. For more information, see Infrastructure.

    Identify Endpoint by Fields

    Choose whether Tanium-managed endpoints in your environment using their FQDNs, serial numbers, or both. Your choice depends on whether FQDNs or serial numbers are unique for all the endpoints and have consistent values between your Tanium environment and ServiceNow CMDB. In a Tanium environment, you can see the values by issuing a question with the sensor Computer Name (for FQDNs) or Computer Serial Number. In a ServiceNow CMDB, the corresponding fields are fqdn and serial_number.

    Note: Serial numbers might not be unique for endpoints in an environment where some virtual machines (VMs) are provisioned through cloning without being issued new serial numbers.
    • Serial number or FQDN (default)

      The application attempts to uniquely identify each endpoint using three methods in the following order. If any method successfully identifies an endpoint, the application skips the remaining methods for that endpoint:

      1. Checks if any endpoint precisely matches both the serial number and FQDN

      2. Checks for any endpoint with a serial number that is consistent between your Tanium and ServiceNow environments

      3. Checks for any endpoint with an FQDN that is consistent between your Tanium and ServiceNow environments

    • FQDN or serial number

      The application attempts to uniquely identify each endpoint using three methods in the following order. If any method successfully identifies an endpoint, the application skips the remaining methods for that endpoint:

      1. Checks if any endpoint precisely matches both the serial number and FQDN

      2. Checks for any endpoint with an FQDN that is consistent between your Tanium and ServiceNow environments

      3. Checks for any endpoint with a serial number that is consistent between your Tanium and ServiceNow environments

    • FQDN and serial number

      The application attempts to uniquely identify each endpoint by the combination of its FQDN and serial number. If the combination does not exactly match an endpoint, the endpoint is treated as unmanaged and inaccessible.

    • Serial number

      The application attempts to uniquely identify each endpoint by serial number alone.

    • FQDN

      The application attempts to uniquely identify each endpoint by FQDN alone.

    "Default - All Computers" Action Group ID

    Enter the ID of the Default - All Computers action group. For the steps to view the ID, see View action groups.

    Log Tanium Actions

    Select this option to maintain a log of Tanium actions that are performed through the default API interfaces of Tanium SDK. ServiceNow maintains logs in the Tanium Action History table (x_taniu_tan_core_tan_action_history).

    Performance Module Enabled

    Select this option if the Tanium™ Performance module is installed in your Tanium environment.

  3. Click Save and Close the dialog.
  4. Click Mark as Complete for each property that you configured.

Run automated tests

Perform the following steps to validate that you configured Tanium SDK successfully and that your ServiceNow instance can communicate with your Tanium environment. The tests use the ServiceNow Automated Test Framework (ATF) to test authentication and integration with the Tanium Gateway shared service and to verify that you have configured the required system properties. The tests detect issues such as a Tanium Cloud URI that is not valid or accessible, non-working credentials, a misconfigured MID server, RBAC permissions issues in the Tanium or ServiceNow environment, and access control list (ACL) permissions issues in the ServiceNow environment.

  1. On the Tanium Integration Core Setup page, go to the Run Automated Tests section.
    Note: To access the page, see Access the SDK guided setup.
  2. Click Get Started for a first-time test or Edit for a subsequent test, click Configure, and click Execute Now.
  3. If the Run Test Suite dialog shows no errors, click Close. Otherwise, click Go to Result to troubleshoot the errors.

    The Test Suite Result page shows a one-click fix option for issues that the ServiceNow instance can resolve automatically. Consult your ServiceNow administrator to help resolve issues that the instance cannot resolve automatically.

Create a ServiceNow persona

Tip: In ServiceNow, you can use the Tanium AI Agent for ServiceNow guided setup to configure the persona. To access the guided setup in the ServiceNow menu, go to Tanium AI Agent for ServiceNow > Guided Setup > Persona Configuration.
  1. Sign in to your ServiceNow instance.
  2. Click Admin to display the admin menu.
    Figure 1. Servicenow All
    servicenow_all
  3. Enter Personas and select Tanium SDK > Personas from All Results.
    Figure 2. Servicenow Personas
    servicenow_personas
  4. Click New.
  5. Enter a name for the persona.
  6. For Integration enter : Tanium AI Agent for ServiceNow.
  7. Specify an order. A lower order means that the persona is used over a higher order persona if more than one persona match a specific user.
  8. Click the lock icon next to the Applies to field. Select user criteria for the Tanium AI Agent for ServiceNow integration. You can create custom user criteria to define segments of users to grant access.
  9. Click the magnifying glass icon next to the Credential field. Click New.
  10. Enter a name for the credential alias.
  11. In the Type field, select Credential.
  12. Click Submit.

Modify the new persona to use a specific API key and Tanium Server

  1. Open the Persona record for the persona you created.
  2. Click the information icon next to the Credential field and click Open Record.
  3. In the list of credentials, click New.
  4. In the What type of Credentials would you like to create list, select Tanium Credential.
  5. Enter a name for the credential.
  6. In the Tanium Server field, choose an existing server or create a new one.
    1. Select an existing server:
      1. Click the magnifying glass icon and select a Tanium server from the list.

    2. Create a new server:
      1. Click the magnifying glass icon and click New.

      2. Enter a name for the Tanium Server.

      3. Enter the host information. If the host is Tanium Cloud, use the FQDN from the client edge URL, and append -api to the subdomain. For example: demo-api.cloud.tanium.com.

      4. (Optional) If a MID server is required, select 'Use MID Server', and select a SINGLE MID server from the 'MID Server' field.

  7. Add the Tanium token to the API Key field.
    Note: You must repeat this step whenever an API token expires.
  8. Click Submit.
  9. From the Persona record, select Active and click Submit.

Enable the Now Assist panel

  1. Sign in to your ServiceNow instance.
    Note: If you are already signed in to the instance and just finished installing applications (such as Tanium SDK), perform a hard refresh of your current browser tab to show the new applications in the instance UI.
  2. Click Admin to display the admin menu.
    Figure 3. Admin Menu
    admin_menu
  3. Enter Now Assist and select Now Assist Admin from the Admin Results.

    Alternatively, you can enter https://<your-instance>.service-now.com/now/now-assist-admin/home in your browser.

    Figure 4. Admin Now Assist
    admin_now_assist
  4. Click Now Assist Experiences.
    Figure 5. Admin Now Assist Experiences
    admin_now_assist_experiences
  5. In the Summary section, click Turn On.

    When you click Turn On you activate the Now Assist Panel.

    Figure 6. Admin Summary
    admin_summary
Note: Ensure that application users have the now_assist_panel_user role.

If the NowAssist panel is not turned on after activating it, the admin needs to click CLI Console (https://<instance-name>.service-now.com/now/conversation/settings/assistants), and complete the guided setup of the Now Assist panel default profile.

Activate Now Assist skills for ITSM

Activate the following Now Assist skills for ITSM:

  • Ask Tanium a Question

  • Recommend a Tanium Action

  1. Sign in to your ServiceNow instance.
    Note: If you are already signed in to the instance and just finished installing applications (such as Tanium SDK), perform a hard refresh of your current browser tab to show the new applications in the instance UI.
  2. Click Admin to display the admin menu.
    Figure 7. Admin Menu
    admin_menu
  3. Type Now Assist and select Now Assist Admin from the Admin Results.

    Alternatively, you can enter https://<your-instance>.service-now.com/now/now-assist-admin/home in your browser.

    Figure 8. Admin Now Assist
    admin_now_assist
  4. Click Now Assist Skills.
    Figure 9. Admin Now Assist Skill
    admin_now_assist_skill
  5. Select Technology > ITSM.
    Figure 10. Admin ITSM
    admin_ITSM
  6. Locate the Ask Tanium a Question skill and click Activate Skill.  Review the updates that apply when you activate this skill.  Click Save and Continue.
  7. Click Activate.
  8. Click Return to ITSM.
  9. Locate the Recommend a Tanium Action skill and click Turn On. Click Back to Skills.

Index sources

  1. Sign in to your ServiceNow instance.

    Note: If you are already signed in to the instance and just finished installing applications (such as Tanium SDK), perform a hard refresh of your current browser tab to show the new applications in the instance UI.
  2. Click Admin to display the admin menu.
    Figure 11. Admin Menu
    admin_menu
  3. Enter AI Search and select AI Search Admin Home from the Admin Results.

    Figure 12. Admin Ai Search
    admin_ai_search
  4. Click Shared Configurations.
    Figure 13. Admin Shared Configurations
    admin_shared_configurations
  5. Click Indexed sources.
    Figure 14. Admin Indexed Sources
    admin_indexed_sources
  6. Click Configured Action Table.
    Figure 15. Admin Configured Action Table
    admin_configured_action_table
  7. Click Start Index Job.

  8. Select Full Index and click Start.
    Figure 16. Admin Start Index Job
    admin_start_index_job
  9. Wait for the Keyword Ingestion State to change to Indexed.