Indexing and searching external content in AI Search
Summarize
Summary of Indexing and searching external content in AI Search
The External Content for AI Search plugin enables ServiceNow AI Search users to index and search documents and metadata stored outside the ServiceNow AI Platform instance, including sources like SharePoint, Confluence, and remote tables. This capability allows users to retrieve external document content seamlessly alongside native ServiceNow records without duplicating the external documents in the platform. When users select an external search result, they are directed to the original document location.
Show less
Key Features
- Search Connector Applications: Prebuilt connectors available from the ServiceNow Store simplify indexing for supported external sources by automating configuration and schema creation. Examples include connectors for SharePoint Online and multi-source hubs.
- Integration Hub AI Search Spoke: Provides Workflow Studio actions to ingest external documents, either by defining document properties or downloading via a URL. It offers flexible configuration and drag-and-drop workflow integration.
- External Content REST API: Offers the most flexible but complex method for indexing by allowing direct submission of document content, metadata, and binary files. Access requires specific roles and supports defining security permissions for indexed documents.
Prerequisites and Configuration
- Subscription: An active subscription to the External Content for AI Search plugin is required.
- External Content Schema Table: Define schema tables mapping external document fields to AI Search index fields. These tables do not store content but define the structure for indexing. For multiple data sources sharing fields and unique identifiers, a single schema table can be used; otherwise, separate tables are needed. Search connector apps create these automatically when applicable.
- Indexed Source Creation: Create an indexed source specifying the external content schema table to send external document data to the AI Search index.
- Search Source Creation: Define search sources for subsets of indexed external documents to make their content searchable.
Security
AI Search respects user and group access permissions defined for external documents. You can map external users and groups to ServiceNow AI Platform users to control search result access, ensuring secure handling of external content.
Expected Outcomes
- Enable comprehensive, unified search across internal ServiceNow records and indexed external documents without duplicating external content.
- Simplify indexing through connector apps or customize ingestion workflows via Integration Hub or REST API based on source and complexity.
- Maintain security and access permissions consistent with external document controls within the AI Search environment.
With a subscription for the External Content for AI Search plugin, you can enable AI Search users to search content and metadata from documents in external repositories and remote tables.
The External Content for AI Search plugin enables you to index documents located outside of your ServiceNow AI Platform® instance, such as those stored in SharePoint collections, Confluence sites, and remote tables. Indexing these documents makes their content and metadata searchable in AI Search.
AI Search displays search results for indexed external documents just as it does for indexed ServiceNow AI Platform records. Users don't need to perform any special searches to match content and metadata from external documents.
Indexing doesn't duplicate external documents as records in your ServiceNow AI Platform instance. When a user selects an external document search result, they are directed to the source document in its original location.
External content indexing tools
The following diagram illustrates how AI Search provides indexing and search for external document content and metadata:
As shown in the architecture diagram, you can index content and metadata from external documents using any or all of the following tools:
| External content indexing tool | Description |
|---|---|
| Search connector applications | Search connector applications available in the ServiceNow Store provide simple tools for indexing content and metadata from documents in supported external sources. They handle some of the configuration work, such as creation of external content
schema tables, for you.
Each search connector application supports a specific external document source (or set of sources). For example, the SharePoint Online Search Connector only supports documents in SharePoint collections, while the Raytion Connector Hub for AI Search supports multiple document sources. If no search connector application is available for your external document source, you must use the Integration Hub AI Search spoke or the External Content REST API to index content and metadata for documents from that source. Search connector applications provide the most straightforward way to index document content and metadata from supported external sources. |
| Integration Hub AI Search spoke | The Integration Hub
AI Search spoke provides Workflow Studio actions that you can use to ingest external documents for indexing:
You can specify security principal access permissions for documents ingested using these actions. To learn more about access permissions and security for external document content, see External content security for AI Search. For the full list of Workflow Studio actions provided by the AI Search spoke, see AI Search spoke. The Integration Hub AI Search spoke combines flexible configuration and handling with the simple drag-and-drop Workflow Studio interface. |
| External Content REST API | The External Content REST API provides endpoints that you can use to index content and metadata from external documents:
Note:
To access the External Content REST API endpoints, you need either the ais_external_content role or the admin role. You can specify security principal access permissions for documents ingested using the ingestDocuments endpoint. To learn more about access permissions and security for external document content, see External content security for AI Search. For full descriptions of the External Content REST API endpoints, see External Content Ingestion REST API. The External Content REST API is the most complex tool for indexing content and metadata from your external documents, but it offers the most flexibility. |
External content search prerequisites
Before you can index external document content and metadata for search in AI Search, you must satisfy the following requirements. Except as noted in the table, these requirements apply regardless of which external content indexing tools you use.
| Requirement | Description |
|---|---|
| Have an active subscription for the External Content for AI Search plugin (com.glide.ais.external_content) | The External Content for AI Search plugin provides functionality for indexing content from external data sources.
For instructions on purchasing a subscription for the plugin and activating it, see Request the External Content for AI Search plugin. |
| Define an external content schema table for the external document source | An external content schema table doesn't store external document content in the database. Instead, its columns serve as a map of AI Search index fields to populate when you index content from external data sources.
For instructions on creating a new external content schema table, see Create an external content schema table. When documents from multiple external data sources share the same set of fields and have unique document identifiers, you can use a single external content schema table for all of them. To avoid data loss, the
external data sources must satisfy these conditions:
If the external data sources can't satisfy these conditions, create a separate external content schema table for each data source. Note: Search connector applications from the ServiceNow Store automatically create external content schema tables as needed. You only need to create your own external content schema tables when indexing external documents using the Integration Hub
AI Search spoke or the External Content REST API. |
| Create an indexed source with your external content schema table specified as the table to index | The indexed source sends external documents' content and metadata to the AI Search index.
For instructions on creating an indexed source, see Create an indexed source. |
| Create one or more search sources for the indexed source | Each search source specifies a subset of external documents from the indexed source whose content you want to make searchable in AI Search.
For instructions on creating search sources, see Create a search source for AI Search. |