> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/servicenow.md).

# ServiceNow

ServiceNow is an IT service management (ITSM) platform that helps organizations manage IT operations, service requests, incidents, problems, and knowledge articles.

* Knowledge base source
* MCP connection

## Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector                | Authentication |
| ------------------------ | -------------- |
| ServiceNow               | OAuth sign-in  |
| ServiceNow (Credentials) | Credentials    |
| ServiceNow (MCP)         | MCP with OAuth |

### ServiceNow

Connect to ServiceNow to manage customer support tickets and support interactions using OAuth2.

#### Set up in ServiceNow

1. Use a ServiceNow account with access to the records and operations that your workflow needs.
2. Register or select the OAuth application described in the fields below. Add the redirect URI displayed in StackAI to that application and retain its client ID and secret, where required.

#### Set up in StackAI

1. Open **Settings → Connections**, add a connection, and select **ServiceNow**.
2. Complete the connector configuration below. If you do not have access to these settings, ask your StackAI administrator to configure the connector.
3. Select **Connect**, sign in to the provider account, and review the requested access. Complete authorization to return to StackAI.
4. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connector configuration**

| StackAI field | Required  | What to enter                                                                                                                       |
| ------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| OAuth Scopes  | Read-only | OAuth scopes for ServiceNow API access. This value is shown for reference; it is not an editable credential.                        |
| Client ID     | Yes       | OAuth 2.0 Client ID from ServiceNow.                                                                                                |
| Client Secret | Yes       | The OAuth Client Secret you received when registering your app with the provider.                                                   |
| Redirect URI  | Read-only | Use this redirect URI when configuring your OAuth application. This value is shown for reference; it is not an editable credential. |
| Subdomain     | Yes       | The subdomain of your ServiceNow instance. Example: dev123.                                                                         |

**Provider documentation:** [Setup reference](https://docs.servicenow.com/bundle/washingtondc-platform-security/page/administer/security/task/t_SettingUpOAuth.html).

### ServiceNow (Credentials)

Connect to ServiceNow with your own instance and credentials. Supports incident management, problem management, service requests, and knowledge articles.

#### Set up in ServiceNow

1. With your ServiceNow admin, create or choose a user with the roles needed to read/write the target tables via the REST Table API.

#### Set up in StackAI

1. Open **Settings → Connections**, add a connection, and select **ServiceNow (Credentials)**.
2. Enter the credentials and connection details in the fields below.
3. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field | Required | What to enter                                                                                                                                                                                                                                                                   |
| ------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Instance URL  | Yes      | The URL of your ServiceNow instance. Example: <https://dev123.service-now.com>.                                                                                                                                                                                                 |
| Username      | Yes      | The ServiceNow username (with API access) to authenticate with.                                                                                                                                                                                                                 |
| Password      | Yes      | The password for the specified ServiceNow user.                                                                                                                                                                                                                                 |
| Client ID     | Yes      | Obtain this from your ServiceNow instance under System OAuth > Application Registry. [Provider instructions](https://www.servicenow.com/docs/bundle/yokohama-security-management/page/product/security-incident-response/task/establish-a-connection-using-client-secret.html). |
| Client Secret | Yes      | Obtain this from your ServiceNow instance under System OAuth > Application Registry.                                                                                                                                                                                            |

**Provider documentation:** [Setup reference](https://docs.servicenow.com/bundle/washingtondc-application-development/page/integrate/inbound-rest/concept/c_TableAPI.html).

### ServiceNow (MCP)

Connect to an MCP server published by your ServiceNow instance. ServiceNow roles, ACLs, and server configuration govern available tools.

#### Set up in ServiceNow

1. In the ServiceNow MCP Server Console, activate the server and assign the tools StackAI should use.
2. Register an inbound OAuth authorization-code integration for StackAI. Set the callback URI shown in StackAI and record the client ID and secret.
3. Copy the active server URL from the MCP Server Console.

#### Set up in StackAI

1. Open **Settings → Connections**, add a connection, and select **ServiceNow (MCP)**.
2. Complete the connector configuration below. If you do not have access to these settings, ask your StackAI administrator to configure the connector.
3. Select **Connect**, sign in to the provider account, and review the requested access. Complete authorization to return to StackAI.
4. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connector configuration**

| StackAI field          | Required                 | What to enter                                                                                                                                                      |
| ---------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Server URL             | Yes                      | Server URL copied from ServiceNow MCP Server Console. The server must be active and have tools assigned.                                                           |
| Scopes                 | Optional / as applicable | OAuth scopes configured on the ServiceNow inbound integration.                                                                                                     |
| Client ID              | Optional / as applicable | Client ID from the OAuth authorization-code inbound integration registered for StackAI in ServiceNow.                                                              |
| Client Secret          | Optional / as applicable | Client secret from the same ServiceNow inbound integration.                                                                                                        |
| Authorization Endpoint | Optional / as applicable | The OAuth endpoint URL (e.g., <https://mcp.example.com/oauth2/authorize>). You probably don't have to set this, the OAuth flow will try to discover it on its own. |
| Custom Headers         | Optional / as applicable | Optional custom headers to send to the MCP server for authentication or other purposes.                                                                            |

**Provider documentation:** [Setup reference](https://www.servicenow.com/docs/r/zurich/intelligent-experiences/connect-mcp-server-client.html).

### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

### Detailed setup guides

* [Connect ServiceNow](https://docs.stackai.com/integrations/catalog/servicenow/connect-servicenow.md)

## Use an action

1. Add the required **ServiceNow** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

## Actions

| Action                  | Purpose                                                                            | Required inputs                     |
| ----------------------- | ---------------------------------------------------------------------------------- | ----------------------------------- |
| Get Records             | Retrieve records from a table                                                      | Table Name                          |
| Create Record           | Create a record                                                                    | Table Name, Record Data             |
| Delete Record           | Delete a record                                                                    | Table Name, Sys Id                  |
| Get Record by ID        | Retrieve a record                                                                  | Table Name, Sys Id                  |
| Partially Update Record | Update specific fields on a record.                                                | Table Name, Sys Id, Record Data     |
| Update Record           | Fully replace a record.                                                            | Table Name, Sys Id, Record Data     |
| Attach File             | Attach a file to a ServiceNow record (for example an incident or service request). | Table Name, Record Sys ID, File URL |

## Important behavior

If an operation is denied, check the connection’s granted permissions and the account’s access in the provider. Reauthorize the connection when it needs additional permissions.

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/servicenow.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
