# 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="/files/F6LKOJsreFHePPAwRQnV" 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="/files/iDkoEdVFxKVcowP2p0Ow" 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: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nexthink.com/platform/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>
```

The question should be specific, self-contained, and written in natural language.
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.
