AI Agents
AI Agent Knowledge

ServiceNow KB

11min

Enjo enables seamless integration with ServiceNow Knowledge Base (KB) to train AI Agents using your existing knowledge articles. This integration ensures your AI Agents can provide accurate, informed responses by indexing and utilizing your ServiceNow KB data effectively. Follow this guide to integrate your ServiceNow KB with Enjo and maximize its potential.

Prerequisites

Before starting the integration, ensure the following:

  1. The ServiceNow connection has been set up in the Enjo dashboard. Refer to the ServiceNow Integration Setup Guide for detailed instructions.

Steps to Integrate ServiceNow KB with Enjo

Step 1: Access the AI Agent Studio

  1. Log in to the Enjo dashboard.
  2. Navigate to the AI Agent Studio.
  3. Select the relevant AI agent and open the Knowledge tab.
Document image


4. Click Add Data and choose From External App.

Step 2: Select ServiceNow

  1. In the drawer that appears, select ServiceNow.
  2. If you have not yet linked your ServiceNow account:
    • Follow the steps outlined in the ServiceNow Integration guide to establish the connection.
Document image


In the drawer that appears, select ServiceNow.

Step 3: Choose the ServiceNow Connection

  1. From the list of available ServiceNow connections, select the appropriate one.
  2. Click Next to proceed.
Document image


From the list of available ServiceNow connections, select the appropriate one.

Step 4: Enter the ServiceNow Encoded Query

  1. Provide an Encoded Query to filter the ServiceNow KB articles you wish to index.
    • Example query: sys_class_name!=kb_knowledge_block^GOTOshort_description>=microsoft
    • To generate the query:
      • Log in to your ServiceNow instance.
      • From the search bar, navigate to Knowledge > All.
      • Find the desired article, right-click, and select Copy as query.
      • Paste the query into Enjo.
      • Click Get Count to verify the number of articles matching the query.
  2. If the count is accurate, click Start Indexing
Document image


Post-Indexing Process

Once indexing begins, Enjo will process the documents based on your query. After completion:

  1. Navigate to the Knowledge Sources tab in Enjo.
  2. Confirm that the indexed documents are visible.
  3. Test your AI Agent by generating responses or performing searches using the newly indexed data.

Troubleshooting

  • No Documents Found: Verify that your query is correctly formatted and matches existing articles.
  • Connection Errors: Ensure your ServiceNow credentials are valid and API permissions are correctly configured.
  • Indexing Fails: Review the error logs in Enjo for detailed messages and troubleshooting steps.

Frequently Asked Questions (FAQs)

Q: What happens if I update my ServiceNow KB articles?

A: Updates to your ServiceNow KB articles will not sync automatically. You will need to re-index to include new or modified articles.

Q: Can I index knowledge from ServiceNow incidents?

A: No, indexing ServiceNow incidents is not currently supported.

Updated 03 Feb 2025
Doc contributor
Did this page help you?