> 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/connect-servicenow.md).

# Connect ServiceNow

### Establishing a Connection

#### 1. Connection Name

A user-friendly name for your connection. This helps you identify it among other connections in StackAI.

#### 2. Instance URL

![Connect ServiceNow setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FRGdcXHHHhhzH3dKSsyN6%2Fservicenow.png?alt=media)

Go to [developer.servicenow.com](https://developer.servicenow.com)

The URL in your browser’s address bar is your instance URL. It usually looks like: `https://<instance>.service-now.com`

#### 3. Username

In that same card, copy the username that is underneath the URL.

#### 4. Password

This is the password for the ServiceNow user account above. This is used together with the username for authentication.

Copy the password under "Current password."

#### 5. Client ID

In the video below, you will find how to generate a Client ID and Client Secret by creating an OAuth API endpoint. To follow the steps in the video guide, go to the homepage of your ServiceNow instance: `https://<instance>.service-now.com`

![Connect ServiceNow setup](https://1957915746-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FSQ1Sgy933krTyK0S4JpP%2Fuploads%2FGK8r24XBwsxgK5WbwGJU%2Fservicenow.gif?alt=media)

#### 6. Client Secret

To get the client secret, click on the resource you've created and then click on the copy button to the right, next to Client Secret.

## Connection fields and action reference

See [ServiceNow](https://docs.stackai.com/integrations/catalog/servicenow.md) for the current connector fields and supported actions.


---

# 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/connect-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.
