> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-apis.mintlify.site/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 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-apis/6EU0ZXMgpQijpxgN/ai-for-service/integrations/actions/images/servicenow-action-img2.png?fit=max&auto=format&n=6EU0ZXMgpQijpxgN&q=85&s=8438e687a3aab1ad968632c3aab08763" 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-apis/6EU0ZXMgpQijpxgN/ai-for-service/integrations/actions/images/servicenow-action-img3.png?fit=max&auto=format&n=6EU0ZXMgpQijpxgN&q=85&s=0ca70c8f65df1204997002385bee5e79" 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-apis/6EU0ZXMgpQijpxgN/ai-for-service/integrations/actions/images/servicenow-action-img4.png?fit=max&auto=format&n=6EU0ZXMgpQijpxgN&q=85&s=186968110ea814f8f5ff46944b6bed1e" 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-apis/6EU0ZXMgpQijpxgN/ai-for-service/integrations/actions/images/servicenow-action-img5.png?fit=max&auto=format&n=6EU0ZXMgpQijpxgN&q=85&s=4f1d31e7d0b07497d75312aeef5648ba" 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-apis/6EU0ZXMgpQijpxgN/ai-for-service/integrations/actions/images/servicenow-action-img6.png?fit=max&auto=format&n=6EU0ZXMgpQijpxgN&q=85&s=7a3382d9459095899bd9bdc8b4800c8f" 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-apis/6EU0ZXMgpQijpxgN/ai-for-service/integrations/actions/images/servicenow-action-img7.png?fit=max&auto=format&n=6EU0ZXMgpQijpxgN&q=85&s=f5b9fba9abe04200c9f02cb2f51e2656" 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-apis/6EU0ZXMgpQijpxgN/ai-for-service/integrations/actions/images/servicenow-action-img8.png?fit=max&auto=format&n=6EU0ZXMgpQijpxgN&q=85&s=f45d7c3104926be9807d48c1cb75504e" 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-apis/6EU0ZXMgpQijpxgN/ai-for-service/integrations/actions/images/servicenow-action-img9.png?fit=max&auto=format&n=6EU0ZXMgpQijpxgN&q=85&s=9baf6892d9517c98cf02d64878a896c8" 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-apis/6EU0ZXMgpQijpxgN/ai-for-service/integrations/actions/images/servicenow-action-img10.png?fit=max&auto=format&n=6EU0ZXMgpQijpxgN&q=85&s=de65ff0005ec736635cf40c27aeab65f" 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-apis/6EU0ZXMgpQijpxgN/ai-for-service/integrations/actions/images/servicenow-action-img11.png?fit=max&auto=format&n=6EU0ZXMgpQijpxgN&q=85&s=7084895f3974cd79bbf7f63f49dea7d5" 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.
