> ## Documentation Index
> Fetch the complete documentation index at: https://koreai.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring the ServiceNow Action

<Badge icon="arrow-left" color="gray">[Back to Actions Integrations](/ai-for-service/integrations/overview#actions)</Badge>

Connect ServiceNow to create, view, update, search, and delete incidents and requests. See [ServiceNow](https://www.servicenow.com/) for more information.

<Note>ServiceNow Actions Integration is supported for the ServiceNow cloud versions (Tokyo, Utah, and Vancouver) but not for on-premises instances.</Note>

***

## Authorizations Supported

The XO Platform supports basic authentication for ServiceNow. See [App Authorization Overview](/ai-for-service/app-settings#authorization-profiles) for details.

| Authorization Type                       | Basic OAuth |
| ---------------------------------------- | ----------- |
| Pre-authorize the Integration            | Yes         |
| Allow Users to Authorize the Integration | Yes         |

***

## Step 1: Enable the ServiceNow Action

**Prerequisites:**

* If you don't have ServiceNow credentials, create a developer account. See [ServiceNow Developer Instance Documentation](https://developer.servicenow.com/dev.do#!/learn/learning-plans/rome/new_to_servicenow/app_store_learnv2_buildmyfirstapp_rome_personal_developer_instances).
* Copy the User sub domain, username/email, and password of your ServiceNow account.

**Steps:**

1. Go to **App Settings** > **Integrations** > **Actions**.
2. Select **ServiceNow**.

### Pre-authorize the Integration

**Basic OAuth**

1. Go to **App Settings** > **Integrations** > **Actions** and select **ServiceNow**.

2. In **Configurations**, select the **Authorization** tab.

3. Set **Authorization Type** to **Pre-authorize the Integration** > **Basic Auth**.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/servicenow-action-img2.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=08ff937dec1e3161de32fee097918a5a" alt="Authorization type - Basic auth" width="890" height="844" data-path="ai-for-service/integrations/actions/images/servicenow-action-img2.png" />

4. Enter the following details:
   * **User Sub Domain** - The instance name of the ServiceNow account.
   * **Username or Email** - The username or email of the ServiceNow account.
   * **Password** - The password of the ServiceNow account.

5. Click **Enable**. The **Integration Successful** pop-up is displayed.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/servicenow-action-img3.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=6e54b85525f97920eebaed77cce4972d" alt="Integration successful" width="664" height="266" data-path="ai-for-service/integrations/actions/images/servicenow-action-img3.png" />

### Allow End User to Authorize

1. Go to **App Settings** > **Integrations** > **Actions** and select **ServiceNow**.

2. In **Configurations**, select the **Authorization** tab.

3. Select **Basic Auth**. See [App Authorization Overview](/ai-for-service/app-settings#authorization-profiles).

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/servicenow-action-img4.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=4c726564d0f86c35f59bd631633b3e14" alt="Auth mechanism -- Basic auth" width="898" height="842" data-path="ai-for-service/integrations/actions/images/servicenow-action-img4.png" />

4. Click **Select Authorization** > **Create New**.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/servicenow-action-img5.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=6039831e2d9915954f4cfac4e193e9d9" alt="Create new auth" width="896" height="836" data-path="ai-for-service/integrations/actions/images/servicenow-action-img5.png" />

5. Set **Authorization Type** to **Allow Users to Authorize the Integration** > **Basic Auth**, then enter the following credentials:

   * **Name** - Name for the Basic Auth profile.
   * **Base URL** - Base tenant URL for ServiceNow instance.
   * **Authorization Check URL** - Authorization check URL for your ServiceNow instance.
   * **Description** - Description of the profile.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/servicenow-action-img6.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=80112db1894944657865c742f1be4188" alt="Auth credentials" width="725" height="738" data-path="ai-for-service/integrations/actions/images/servicenow-action-img6.png" />

6. Click **Save Auth**.

7. Select the new **Authorization Profile**.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/servicenow-action-img7.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=c90f322a2571351b50e0c12834edd9d9" alt="Select Auth profile" width="891" height="840" data-path="ai-for-service/integrations/actions/images/servicenow-action-img7.png" />

8. Click **Enable**.

***

## Step 2: Install the ServiceNow Action Templates

1. On the **Integration Successful** dialog, click **Explore Templates**.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/servicenow-action-img8.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=029977cacecba97efaf7ae8ae312270b" alt="Explore templates" width="670" height="264" data-path="ai-for-service/integrations/actions/images/servicenow-action-img8.png" />

2. Click **Install** to begin installation.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/servicenow-action-img9.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=6a88ef5820f8b72fb43c1f28cd4a0ce2" alt="Begin installation" width="667" height="806" data-path="ai-for-service/integrations/actions/images/servicenow-action-img9.png" />

3. Once installed, click **Go to Dialog**. A dialog task for each template is auto-created.

   <img src="https://mintcdn.com/koreai/NuCnGNJCXSVC7wUP/ai-for-service/integrations/actions/images/servicenow-action-img10.png?fit=max&auto=format&n=NuCnGNJCXSVC7wUP&q=85&s=113a1f8773f2ded137f1e5ef96e5ee43" alt="Dialog tasks for each template" width="1646" height="745" data-path="ai-for-service/integrations/actions/images/servicenow-action-img10.png" />

4. Select the desired dialog task and click **Proceed**.

   <img src="https://mintcdn.com/koreai/sy5HaLmfjOFkpZKk/ai-for-service/integrations/actions/images/servicenow-action-img11.png?fit=max&auto=format&n=sy5HaLmfjOFkpZKk&q=85&s=c1983eea2936ea1b00b136107c4ebd13" alt="Select desired dialog task and proceed" width="902" height="908" data-path="ai-for-service/integrations/actions/images/servicenow-action-img11.png" />

5. The dialog task is auto-created and the canvas opens with all required entity nodes, service nodes, and message scripts.


Built with [Mintlify](https://mintlify.com).