> For the complete documentation index, see [llms.txt](https://docs.nexthink.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.nexthink.com/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify/installation-and-configuration/integrating-amplify-with-web-applications/configuring-amplify-for-servicenow-agent-workspace.md).

# Integrating Amplify with the ServiceNow Agent Workspace

Configure Amplify to pick device and user fields from the ServiceNow Agent Workspace interface.

{% hint style="info" %}
**Supported versions**: All versions from Quebec onwards until the latest.
{% endhint %}

1. Open the ticket in the ServiceNow Agent Workspace view.
   * Copy the entire URL of the page.

From the Amplify extension:

2. Right-click on the Amplify extension in the browser extension bar.
3. From the drop-down, click **Options** to open the **Nexthink Amplify configuration** page.
4. Select the **Local** tab under **Web application configuration**.
5. **Add web application** in Amplify and paste the copied URL in the **Web application URL** field.
6. **Select identifier** in Amplify to open the web application URL using the **Field selector** pop-up.

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-bc62177992ece095986fdb399bbbb6d0fb910442%2Fimage-20240313-072040.png?alt=media" alt="image-20240313-072040.png" width="760"><figcaption></figcaption></figure>

7. Use the highlighter to choose the field of interest on the ServiceNow ticket **Details** page with the affected device or user fields. Once selected, the system loads the element into the **Field selector** pop-up.
8. Copy the content of the **Field editor** from the **Field selector** pop-up into your text editor of choice to partially edit the code:
   * Replace the text `div:nth-of-type(1)` highlighted in the image below with `div[class*='is-active']`

<figure><img src="https://268444917-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxJSUDk9NTtCHYPG5EWs3%2Fuploads%2Fgit-blob-a42bcb3294abfa9ffa9ac6922d4888807b887190%2Famp-1681463906.png?alt=media" alt="Field selector pop up"><figcaption></figcaption></figure>

9. Paste the edited code into the **Field editor** on the **Field selector** pop-up window.
   * Enter the relevant regular expression in the **String selector** field to select the specific part of the string, if required.
10. Click the **Fill field value** button on the **Field selector** pop-up window, to check if you selected the correct field. The information appears in the **Selected field value**.
11. **Save** the **Selected field value** to return to the Amplify extension configuration page
12. **Save** on the **Web application configuration**.
13. Return to the ServiceNow page and refresh to confirm if the **Amplify** button is in the bottom-right corner of the screen.


---

# 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.nexthink.com/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify/installation-and-configuration/integrating-amplify-with-web-applications/configuring-amplify-for-servicenow-agent-workspace.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.
