> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-ai-for-work-dev.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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/servicenow-action-img2.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=be283c8ee71ae2310c70ff138e32c55d" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/servicenow-action-img3.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=cae67894c75ba8af2acc52f874e582ce" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/servicenow-action-img4.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=6118e2c5bb0a693747223d141033bf97" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/servicenow-action-img5.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=7d588c60894be786f57241b232c05354" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/servicenow-action-img6.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=6a3c3067a308220d5efb51b51c217ad1" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/servicenow-action-img7.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=78acff57bf71d479e12bf017188670f2" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/servicenow-action-img8.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=0dfa7c4c8204e352d9a6f6d653da2199" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/servicenow-action-img9.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=7d8b47eb5ac9f1616cf431f048a23ba0" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/servicenow-action-img10.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=5e7b318e508abbfd367b49bf87871dce" 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-ai-for-work-dev/3UARiMNGb-Jvq0lb/ai-for-service/integrations/actions/images/servicenow-action-img11.png?fit=max&auto=format&n=3UARiMNGb-Jvq0lb&q=85&s=04b186ec3affbeaff853deeb64bc5f05" 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.
