Connect a ServiceNow data source
After you set up authentication and store your credentials in an AWS Secrets Manager secret, create the ServiceNow data source in your knowledge base. This page describes how to create the data source with the AWS Management Console or the API, followed by a reference for the connector parameters you can configure.
Note
Complete authentication setup first. See Set up OAuth 2.0 Client Credentials authentication for ServiceNow. You need the secret ARN.
Create the data source
Connector parameters
The data source configuration uses the following connector parameters. Within
connectorParameters, set both type and
connectorType to SERVICENOW and set version
to 1. For the fields that wrap connectorParameters (such as
deletionProtectionConfiguration and
mediaExtractionConfiguration), see Connect a data source.
The following table describes the connectionConfiguration fields.
| Field | Required | Description |
|---|---|---|
secretArn |
Yes | The ARN of the AWS Secrets Manager secret containing your
clientId, clientSecret, and
instanceUrl. |
hostUrl |
Yes | Your ServiceNow instance URL (for example,
https://). |
authType |
Yes | The authentication type. ServiceNow supports
OAUTH2. See Authentication method. |
The following table describes the dataEntityConfiguration fields,
which control the entities that the connector crawls.
| Field | Required | Description |
|---|---|---|
crawlKnowledgeArticles |
Yes | Whether to crawl knowledge articles
(kb_knowledge). |
crawlServiceCatalogs |
Yes | Whether to crawl service catalog items
(sc_cat_item). |
crawlKnowledgeArticleAttachments |
Yes | Whether to crawl attachments on knowledge articles. |
crawlServiceCatalogAttachments |
Yes | Whether to crawl attachments on service catalog items. |
crawlInactiveServiceCatalogItems |
Yes | Whether to crawl inactive service catalog items. |
crawlPublicKnowledgeArticlesOnly |
Yes | Whether to restrict the crawl to public knowledge articles only. |
The following table describes the optional filterConfiguration
fields, which scope the crawl.
| Field | Required | Description |
|---|---|---|
knowledgeArticleFilter |
No | Scopes knowledge article crawling. Contains
inclusionKnowledgeBaseSysIds (a list of knowledge base
sys IDs) and inclusionKnowledgeArticleCategorySysIds (a
list of knowledge article category sys IDs). |
serviceCatalogFilter |
No | Scopes service catalog crawling. Contains
inclusionServiceCatalogSysIds (a list of service catalog
sys IDs) and inclusionServiceCatalogCategorySysIds (a
list of service catalog category sys IDs). On large instances,
filtering by sys ID significantly reduces sync time. |
maxFileSizeInMegaBytes |
No | Maximum size, in megabytes, of any single file the connector
ingests. Provide as a numeric string (for example,
"500"). |
Next steps
After you create the data source, sync it to ingest content into your knowledge base. For details, see Sync a data source. Because ServiceNow doesn't support document-level access control, all authenticated users who can query the knowledge base can see all crawled content.