# ServiceNow

In this article, you'll learn how to connect your ServiceNow instance to Enjo, enabling the AI Agent to create tickets, look up ticket details, and update tickets in real time.

**Note:** This integration requires admin access in both your ServiceNow instance and your Enjo workspace.Key Integration Features

## How this works

ServiceNow is a system action in Enjo — meaning the AI Agent can query and operate on your ServiceNow tickets in real time during request resolution. The connection uses OAuth 2.0 authentication and requires two setup phases:

1. Create a service account in ServiceNow with admin permissions
2. Register an OAuth application and authenticate in Enjo

Once connected, your AI Agent can:

- Create new tickets
- Look up existing tickets by ID
- Update ticket fields
- Retrieve ticket details for context during resolution

## Before you start

**Prerequisites:**

- Admin access to your ServiceNow instance
- Admin or Owner role in Enjo
- A browser with access to both ServiceNow and Enjo

## Prerequisites

Before starting, ensure the following:

1. **ServiceNow Access: **You must have an account with administrative privileges.
2. **Enjo Access:** An Enjo admin account to configure the integration.
3. **ServiceNow Service Account: **A dedicated service account in your ServiceNow Production instance for performing tasks such as creating and updating requests, and accessing catalog items and knowledge base articles.

## Creating a Service Account in ServiceNow

1. **Log into Your ServiceNow Instance**
  - Navigate to your ServiceNow instance at https://{{instance_name}}.service-now.com.

2. **Access the User Table**
  - Click on ‘All’ in the navigation menu.
  - Search for ‘Users’ under “Organization” and click on it.

![AD_4nXcezDGVAe4PSlVV2xdHkSvVGggpfUK3wN3pGqdy9i0E4OyLfF1IeUw76WZaog1BqNGe9UUrw4OcRuH_FVLYh4OK0tDNLhy-JjBd3uXu1iDJunIq1kMvw0wOgt9TUsqKfollKpPlPg?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcezDGVAe4PSlVV2xdHkSvVGggpfUK3wN3pGqdy9i0E4OyLfF1IeUw76WZaog1BqNGe9UUrw4OcRuH_FVLYh4OK0tDNLhy-JjBd3uXu1iDJunIq1kMvw0wOgt9TUsqKfollKpPlPg?key=X115I52Moi138LFVc9plWtTa)

1. **Create a New User**
  - In the user table view, click the ‘New’ button in the top-right corner.
  - Fill in the required details for the service account.
  - Ensure that the ‘Web Service Access Only’ checkbox is enabled.

![AD_4nXeVBq4nUgKmsWwaQjkOWaPFzgQLUVDRg8w3HlbHhJBE41C64VZZLExyftODV5dXVLN_hfRcBVYE4Imj-1QmQwTDwcxYbQdXNH0czCykKj46s2yD_3jmts9V8sFS7zLcI4bQkSSa?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeVBq4nUgKmsWwaQjkOWaPFzgQLUVDRg8w3HlbHhJBE41C64VZZLExyftODV5dXVLN_hfRcBVYE4Imj-1QmQwTDwcxYbQdXNH0czCykKj46s2yD_3jmts9V8sFS7zLcI4bQkSSa?key=X115I52Moi138LFVc9plWtTa)

1. **Assign Admin Role**
  - In the same form, click on ‘Roles’ and then ‘Edit’.

![AD_4nXeeNaDWcp_os-btV9u5hqtC-YfPo3gFkYttbLeZgAAoEXwKFOEZYDxaO_eLPrb11tvVApyD1GxeuHCtdGSnjVEcjFvBETON5vGPWyeKgCfF2sCBbSbqTjjmUyoHEYNFVPZq-NizyQ?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeeNaDWcp_os-btV9u5hqtC-YfPo3gFkYttbLeZgAAoEXwKFOEZYDxaO_eLPrb11tvVApyD1GxeuHCtdGSnjVEcjFvBETON5vGPWyeKgCfF2sCBbSbqTjjmUyoHEYNFVPZq-NizyQ?key=X115I52Moi138LFVc9plWtTa)

:::Paragraph{listStyleType="disc" listStart="2" indent="2"} Search for the ‘admin’ role and assign it to the user.

:::

![BlockNote image](https://lh7-rt.googleusercontent.com/docsz/AD_4nXez8TSbIi5B5dYdU5G6rvxaYWtZ9kjiOekTHqlLgDEeyxGZljpXgG9WWscZiqtmKy0b50Qh3Gq_u3AMwJ3Yvp7_AcvKHMqFtyULtdXU6K7E_bp5jrf2me2JlNNVi_s7pW13N74?key=X115I52Moi138LFVc9plWtTa)

## Setting up OAuth in ServiceNow

In order to add ServiceNow Connection in Enjo, OAuth must be activated on your ServiceNow instance. If not, please follow the below steps.

1. **Activate OAuth**
  - Navigate to your ServiceNow instance at https://{{instance_name}}.[service-now.com](http://service-now.com).
  - In the navigation menu, click ‘All’ and search for ‘System OAuth’.
  - Under ‘System OAuth’, click ‘Application Registry

![AD_4nXd8WXC_1icNx9T0h9nrh2-ri7Kf8uBUFZ8epm4i09L7ER1_tw6eZb93iByD_r-8J3zgr0w0dHVl_dW1uQZcc05J3cJO8z4jbgUk-rDLBeiZENkcAjXDDQ7adHsxrgf2VxVKzDkdAA?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXd8WXC_1icNx9T0h9nrh2-ri7Kf8uBUFZ8epm4i09L7ER1_tw6eZb93iByD_r-8J3zgr0w0dHVl_dW1uQZcc05J3cJO8z4jbgUk-rDLBeiZENkcAjXDDQ7adHsxrgf2VxVKzDkdAA?key=X115I52Moi138LFVc9plWtTa)

1. **Create an OAuth API Endpoint**

- Click the ‘New’ button in the top-right corner.

![AD_4nXf7XslgWHGpsLu2MEF9FA3zTJ2GjkgHvp2he8EJpVtBF4Cjwkn_XqGKTSjMGHxlBoxBjm6lh99lB0mEb1JGySYO7kShqQq2-aMPSzrnyNyIWEjCECjziuuotYd5fjBYrFeMu_2EIw?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf7XslgWHGpsLu2MEF9FA3zTJ2GjkgHvp2he8EJpVtBF4Cjwkn_XqGKTSjMGHxlBoxBjm6lh99lB0mEb1JGySYO7kShqQq2-aMPSzrnyNyIWEjCECjziuuotYd5fjBYrFeMu_2EIw?key=X115I52Moi138LFVc9plWtTa)

- Select ‘Create an OAuth API endpoint for external clients’.

![AD_4nXcAQPLP_sN4fqk3NvOlDTWaKtiTeKxFTadyYIke54FEnTjI7tWvd26TgwNoWYfXZdgOAMOsGZC20xgfG8srFVol-4dZ3F49oMWp2W2dbzXrS9J5_yG6WUM-C7YMVF2fFeEWjFyO?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcAQPLP_sN4fqk3NvOlDTWaKtiTeKxFTadyYIke54FEnTjI7tWvd26TgwNoWYfXZdgOAMOsGZC20xgfG8srFVol-4dZ3F49oMWp2W2dbzXrS9J5_yG6WUM-C7YMVF2fFeEWjFyO?key=X115I52Moi138LFVc9plWtTa)

- Complete the form with the required details and click ‘Submit’.

![AD_4nXeK7Rl7U3l1kmOpQgPGHr6WQZkSoXTJykw6WnBLjTGfQOJJUOaDJtFlTziNd6EjdG5Pfgx0vlninMSgNbAyJdwUr5dEf5oc4rXCLz938x9hk_xA_nkX-TC9NsdNXX_dIzp2tdHU5g?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeK7Rl7U3l1kmOpQgPGHr6WQZkSoXTJykw6WnBLjTGfQOJJUOaDJtFlTziNd6EjdG5Pfgx0vlninMSgNbAyJdwUr5dEf5oc4rXCLz938x9hk_xA_nkX-TC9NsdNXX_dIzp2tdHU5g?key=X115I52Moi138LFVc9plWtTa)

Copy the **Client ID** and **Client Secret** displayed upon submission. These will be needed for the Enjo configuration.

## Configuring the Integration in Enjo

1. **Access the Enjo Dashboard**
  - Log in to Enjo at **[https://app.enjo.ai](https://app.enjo.ai)**.
  - Navigate to Settings > Apps > Connect Apps.
  - Select ‘ServiceNow’ from the available apps

![AD_4nXfhfMcytSseqhVOG3gAskcoRlyHOw8_yqjQ_MPPc4LP_owEy0GS3dhhyWzGAZs7FmOfxKUW_vh7Jgw1SooG3kqKyQZvU624KQCbVqtPdnUjZekj_3KmXd9kdg7T0Klm71GptRO6?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXfhfMcytSseqhVOG3gAskcoRlyHOw8_yqjQ_MPPc4LP_owEy0GS3dhhyWzGAZs7FmOfxKUW_vh7Jgw1SooG3kqKyQZvU624KQCbVqtPdnUjZekj_3KmXd9kdg7T0Klm71GptRO6?key=X115I52Moi138LFVc9plWtTa)

1. **Add a New ServiceNow Instance**
  - Click ‘Add New’ to configure a new ServiceNow instance.
  - Enter the Client ID, Client Secret, and Instance URL obtained from the ServiceNow OAuth setup.

![AD_4nXf5hG2jV-ha3X7vxQLEsYHV3jklOTFLG35Ny4E2FTKxlbTkob2ewBjtIq7Brki4wVGq0fgdsO16r_Q4eHx5v1dMIY-E_L74xle9Td8PUNTFGeNdV2NX1CZ6LHuG0nE9JHeuNwQ-ZQ?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXf5hG2jV-ha3X7vxQLEsYHV3jklOTFLG35Ny4E2FTKxlbTkob2ewBjtIq7Brki4wVGq0fgdsO16r_Q4eHx5v1dMIY-E_L74xle9Td8PUNTFGeNdV2NX1CZ6LHuG0nE9JHeuNwQ-ZQ?key=X115I52Moi138LFVc9plWtTa)

:::Paragraph{listStyleType="disc" listStart="3" indent="2"} Copy the ‘Enjo Name’, ‘Request’, and ‘Logo URL’ from Enjo to ServiceNow’s OAuth settings to establish the connection. :::

![AD_4nXcfpCetYEEzZp-ztGniCzLXNEYlIm23itYr790YxNT_VZLAuM07u4RkC0ba5269OrWdfedrQbemzcXAbLUWlRdJ8PFbgcd1ZGQwFMIGzH888xa5GkfJ2sCjOayQ9J0HKMZQH5Kclg?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXcfpCetYEEzZp-ztGniCzLXNEYlIm23itYr790YxNT_VZLAuM07u4RkC0ba5269OrWdfedrQbemzcXAbLUWlRdJ8PFbgcd1ZGQwFMIGzH888xa5GkfJ2sCjOayQ9J0HKMZQH5Kclg?key=X115I52Moi138LFVc9plWtTa)

:::Paragraph{listStyleType="disc" listStart="4" indent="2"}

---

:::

1. **Finalise the Configuration**

- Configure the connection name and set the visibility of the app connection for specific Enjo AI agents as needed.

![AD_4nXeWN9H-X5-OkQdZQEPz1A2kuv-qUHYSTli5Xb-m67L27XMBKMrrg130lLUu6ZiK4X-p3N58aBaixykRzJey6GVIi-Mk7Nsn0yEzX3jyq1RqA7zHYTI6WfWLmNv8__Lq33xpMxNQ?key=X115I52Moi138LFVc9plWtTa](https://lh7-rt.googleusercontent.com/docsz/AD_4nXeWN9H-X5-OkQdZQEPz1A2kuv-qUHYSTli5Xb-m67L27XMBKMrrg130lLUu6ZiK4X-p3N58aBaixykRzJey6GVIi-Mk7Nsn0yEzX3jyq1RqA7zHYTI6WfWLmNv8__Lq33xpMxNQ?key=X115I52Moi138LFVc9plWtTa)

- Click ‘Connect’ to complete the setup.

## FAQs

**Q: Can I use the integration with multiple ServiceNow instances?**

A: Yes, you can add and manage multiple ServiceNow instances in the Enjo dashboard. Each instance requires a unique configuration, including its Client ID, Client Secret, and Instance URL.

**Q: OAuth is not activated in my ServiceNow instance. What should I do?**

A: Follow the steps provided in this guide to activate OAuth in your ServiceNow instance. If OAuth remains unavailable, contact your ServiceNow administrator to enable it.
