> 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/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/webhook-use-cases-setup/updating-servicenow-from-amplify.md). Agents can also search and read this documentation through its [MCP server](https://docs.nexthink.com/~gitbook/mcp).

# AmplifyからServiceNowへの更新

このページでは、[Webhooks](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks.md)を使用してServiceNowのチケットログを自動更新する方法を、[Amplify](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify.md)から実行されるリモートアクションやワークフローを通じて説明します。

構成に基づいて、自動更新は次の場合に発生します。

* リモートアクションやワークフローがトリガーされた場合。
* リモートアクションやワークフローが完了した場合。

{% hint style="info" %}
このページのコードサンプルは、ServiceNow インシデントを更新します。代わりにインタラクションまたはカスタムテーブルを更新するには、Webhook の **NQL 条件**の **外部ソース**値と、Webhook の **リソース**フィールドのテーブル名を調整します。

* **インタラクション**: `external_source== "SNOW-Incident"` を `external_source== "SNOW-Interaction"` に、`/table/incident/` を `/table/interaction/` に置き換えます。
* 名前が `u_` プレフィックスで始まる**カスタムテーブル**: たとえば、`u_customer_request` テーブルの場合、`external_source== "SNOW-Incident"` を `external_source== "SNOW-customer_request"` に、`/table/incident/` を `/table/u_customer_request/` に置き換えます。

カスタムテーブルの命名規則およびサポートされる URL 形式については、[FAQ](#updatingservicenowfromamplify-f.a.q) セクションを参照してください。
{% endhint %}

## ServiceNow用のコネクター認証情報を構成する

[コネクター認証情報](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/connector-credentials.md)の構成ページから:

1. **HTTPS**オプションを**プロトコル**のドロップダウンから選択します。
2. インスタンスのURLルート`https://<instancename>.service-now.com/`を**URLアドレス**フィールドに貼り付けます。
   * 他のURL例については[connector credential](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/connector-credentials.md#connectorcredentials-connectorcredentialsforhttpshttpsprotocol)文書を参照してください。

```
https://XXXXXXXXXX.service-now.com/
```

3. **OAuth 2.0 - クライアント認証情報**オプションを**認証**ドロップダウンから選択します
   * **アクセストークンURL**、**クライアントID**、**クライアントシークレット**、**スコープ**フィールドを[connector credential](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/connector-credentials.md#connectorcredentials-supportedauthorizationmechanismsauthorizationtype)の説明に従って記入します。
4. 認証情報を**保存**します。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-bf5c6c5b6856a839765a0e6f6e4d27d831915195%2FUpdatingServiceNowFromAmplifyRA_01Connector.png?alt=media" alt=""><figcaption></figcaption></figure>

## Webhookの構成

次のセクションでは、ServiceNowを更新するための2つのシナリオについて詳しく説明します。各シナリオの手順は非常に似ており、リモートアクションとワークフローのNQL条件とペイロードがシナリオごとに異なります。

### リモートアクションやワークフローがトリガーされたときのServiceNow更新

NexthinkでリモートアクションやワークフローがトリガーされたときにServiceNowのインシデントチケットログを自動的に更新するWebhookを設定します。

最初にWebhook用の[コネクター認証情報](#updatingservicenowfromamplify-configuringwebhookstoupdateservicenowwhenaremoteactionistriggered)をセットアップしてください。

1. [Webhook構成ページ](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks.md)から、次の**NQL条件**を挿入します。より多くの例については[Webhook NQL条件の構成](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks/configuring-webhook-nql-conditions.md#configuringwebhooknqlconditions-validnqlconditionsexamplesforalert-relatedwebhooksnqlconditionexampl)文書を参照してください。
   * NQL条件を入力した後、システムは**ペイロード**の[許可されるプレースホルダー](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks/configuring-webhook-fields_-method-resource-and-payload.md#configuringwebhookfields-method-resource-andpayload-usingdatamodelvariablesasplaceholdersinthepayloa)をリストします。

{% tabs %}
{% tab title="NQL condition for remote action" %}

<pre class="language-sql"><code class="lang-sql">remote_action.executions
<strong>| where internal_source == "Amplify" 
</strong>  and external_reference != "undefined" 
  and external_source == "SNOW-Incident" 
  and status == in_progress 
  and remote_action.nql_id != "undefined"
| list 
  remote_action.name, 
  remote_action.execution.request_time, 
  remote_action.execution.account_name, 
  remote_action.execution.external_reference
</code></pre>

{% endtab %}

{% tab title="NQL condition for workflow" %}

```sql
workflow.executions
| where internal_source == "Amplify" 
  and external_reference != "undefined" 
  and external_source == "SNOW-Incident" 
  and device.name != null 
  and user.name != null
  and outcome == null
  and status == in_progress 
  and workflow.nql_id != "undefined"
| list 
  workflow.name, 
  workflow.execution.request_time,  
  workflow.execution.external_reference
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
ワークフローとリモートアクションの処理中に、複数のイベントが送信され、詳細とともに元のイベントが更新されます。上記のクエリと使用される条件により、最も完全なイベントのみがServiceNowを更新するために使用されます。
{% endhint %}

2. このWebhookに対して、以前に設定した[コネクタの資格情報](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/connector-credentials.md)を選択してください。
3. **Method**のドロップダウンからPATCHオプションを選択してください。
4. **Resource**フィールドに次のAPIを挿入してください。

{% tabs %}
{% tab title="Resource API for remote action" %}

```
api/now/v1/table/incident/{{remote_action.execution.external_reference}}
```

{% endtab %}

{% tab title="Resource API for workflow" %}

```
api/now/v1/table/incident/{{workflow.execution.external_reference}}
```

{% endtab %}
{% endtabs %}

`{{remote_action.execution.external_reference}}`と`{{workflow.execution.external_reference}}`は、Amplify拡張機能からリモートアクションまたはワークフローがトリガーされたときに自動的にServiceNowのチケット参照で埋められるプレースホルダーです。

詳細については、[FAQ](#updatingservicenowfromamplify-f.a.q) を参照してください。

5. **Payload**を挿入し、以下のメッセージ例を使用してください：

{% tabs %}
{% tab title="Payload for remote action" %}

```
{"work_notes":"Remote action {{remote_action.remote_action.name}} was triggered for this ticket from Amplify user {{remote_action.execution.account_name}} at {{remote_action.execution.request_time}}"}
```

{% endtab %}

{% tab title="Payload for workflow" %}

```
{"work_notes":"Workflow {{workflow.workflow.name}} was triggered for this ticket from Amplify at {{workflow.execution.request_time"}}} 
```

{% endtab %}
{% endtabs %}

6. 初めての設定の際には、テストせずに**webhookを保存**し、[Amplify](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify.md#amplify-recordingremoteactionsinathird-partyitsupporttool-servicenowamplifyservicenow)の文書を参照して、ServiceNowからAmplifyでリモートアクションやワークフローを実行し、webhookが正しく動作するか確認してください。
   * **Send test**は、AmplifyのリモートアクションまたはワークフローがServiceNowでトリガーされ、**Resource**のプレースホルダー`{{....}}`のインシデント参照値を生成するまで、Webhookを正常にテストすることはできません。
   * ServiceNow からインシデントの `remote_action.execution.external_reference` または `workflow.execution.external_reference` の値を手動で取得し、Webhook 設定をテストする方法については、[FAQ](#updatingservicenowfromamplify-f.a.q) セクションを参照してください。

{% hint style="info" %}
NexthinkインスタンスとWebアプリケーションを統合し、Registry経由で設定の詳細を展開するためのAmplifyの設定方法については、[Amplifyのインストールと設定ガイド](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify/installation-and-configuration.md)を参照してください。
{% endhint %}

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-79b8c1244ef3257505d7c9f6a4648b61f19da044%2FUpdatingServiceNowFromAmplifyRA_01Webhook.png?alt=media" alt=""><figcaption></figcaption></figure>

### リモートアクションまたはワークフローが完了した時にServiceNowを更新するためのWebhookを設定します。

Nexthink で Webhook を設定し、リモートアクションまたはワークフローの完了結果の詳細で ServiceNow のインシデントチケットログを自動的に更新します。

Webhookのために[コネクタの資格情報](#updatingservicenowfromamplify-configuringwebhookstoupdateservicenowwhenaremoteactionistriggered)を最初に設定しておくことを忘れないでください。

1. [Webhook設定ページ](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks.md)から、以下の**NQL条件**を挿入してください。 Webhook NQL 条件の設定については、[Webhook NQL 条件の設定](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks/configuring-webhook-nql-conditions.md#configuringwebhooknqlconditions-validnqlconditionsexamplesforalert-relatedwebhooksnqlconditionexampl) のドキュメントを参照してください。
   * NQL条件を入力すると、システムは**Payload**の[許可されたプレースホルダー](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks/configuring-webhook-fields_-method-resource-and-payload.md#configuringwebhookfields-method-resource-andpayload-usingdatamodelvariablesasplaceholdersinthepayloa)をリストアップします。

{% tabs %}
{% tab title="NQL condition for remote action" %}

```sql
remote_action.executions
| where internal_source == "Amplify" 
  and external_reference != "undefined" 
  and external_source == "SNOW-Incident" 
  and status in [failure, success, expired] 
  and remote_action.nql_id != "undefined"
| list remote_action.name, 
  remote_action.execution.request_time, 
  remote_action.execution.time, 
  remote_action.execution.status, 
  remote_action.execution.status_details, 
  remote_action.execution.inputs, 
  remote_action.execution.outputs, 
  remote_action.execution.account_name, 
  remote_action.execution.external_reference
```

{% endtab %}

{% tab title="NQL condition for workflow" %}

```sql
workflow.executions
| where internal_source == "Amplify"
 and external_reference != "undefined" 
 and external_source == "SNOW-Incident" 
 and status in [failure, success, expired, cancelled] 
 and workflow.nql_id != "undefined"
| list workflow.name,
 workflow.execution.request_time, 
 workflow.execution.time, 
 workflow.execution.status, 
 workflow.execution.status_details, 
 workflow.execution.inputs, 
 workflow.execution.outcome, 
 workflow.execution.external_reference
```

{% endtab %}
{% endtabs %}

2. このWebhookに対して、以前に設定した[コネクタの資格情報](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/connector-credentials.md)を選択してください。
3. **Method**のドロップダウンからPATCHオプションを選択してください。
4. **Resource**フィールドに次のAPIを挿入してください。

{% tabs %}
{% tab title="Resource API for remote action" %}

```
api/now/v1/table/incident/{{remote_action.execution.external_reference}}
```

{% endtab %}

{% tab title="Resource API for workflow" %}

```
api/now/v1/table/incident/{{workflow.execution.external_reference}}
```

{% endtab %}
{% endtabs %}

`{{remote_action.execution.external_reference}}`と`{{workflow.execution.external_reference}}`は、Amplify拡張機能からリモートアクションまたはワークフローがトリガーされたときに自動的にServiceNowのチケット参照で埋められるプレースホルダーです。

詳細については、[FAQ](#updatingservicenowfromamplify-f.a.q) を参照してください。

5. **Payload**を挿入し、以下のメッセージ例を使用してください：

{% tabs %}
{% tab title="Payload for remote action" %}

```
{"work_notes":"Status of Remote action {{remote_action.remote_action.name}} triggered for this ticket from Amplify user {{remote_action.execution.account_name}} is as follows. \n Request time: {{remote_action.execution.request_time}} \n Execution time: {{remote_action.execution.time}} \n Status: {{remote_action.execution.status}} \n Status details: {{remote_action.execution.status_details}} \n Inputs: {{remote_action.execution.inputs.as(format = text)}} \n Outputs: {{remote_action.execution.outputs.as(format = text)}}"}
```

{% endtab %}

{% tab title="Payload for workflow" %}

```
{"work_notes":"Status of Workflow {{workflow.workflow.name}} triggered for this ticket from Amplify is as follows. Request time: {{workflow.execution.request_time}} Execution time: {{workflow.execution.time}} Status: {{workflow.execution.status}} Status details: {{workflow.execution.status_details}} Inputs: {{workflow.execution.inputs}} Outcome: {{workflow.execution.outcome"}}} 
```

{% endtab %}
{% endtabs %}

6. 初めての設定の際には、テストせずに**webhookを保存**し、[Amplify](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify.md#amplify-recordingremoteactionsinathird-partyitsupporttool-servicenowamplifyservicenow)の文書を参照して、ServiceNowからAmplifyにリモートアクションを実行し、webhookが正しく動作するか確認してください：
   * **Send test**は、ServiceNowでAmplifyからのリモートアクションをトリガーするまで、Webhookを正常にテストすることはできません。このとき、**Resource**プレースホルダー`{{...}}`のインシデント参照値が生成されます。
   * ServiceNow からインシデントの `remote_action.execution.external_reference` または `workflow.execution.external_reference` の値を手動で取得し、Webhook 設定をテストする方法については、[FAQ](#updatingservicenowfromamplify-f.a.q) セクションを参照してください。

{% hint style="info" %}
NexthinkインスタンスとWebアプリケーションを統合し、Registryを通じて設定の詳細を展開する方法については、[Amplifyのインストールと設定ガイド](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify/installation-and-configuration.md)を参照してください。
{% endhint %}

***

## よくある質問 <a href="#updatingservicenowfromamplify-f.a.q" id="updatingservicenowfromamplify-f.a.q"></a>

<details>

<summary>Amplify が ServiceNow のチケットログを更新したかどうかを確認するにはどうすればよいですか？</summary>

[Amplify](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify.md)の文書は、サービスNowログにAmplify拡張を使用してリモートアクションやワークフローを登録する方法を説明しています。つまり、このページに記載されているWebhook設定に従った後のことです。

</details>

<details>

<summary>リソースフィールド内の external_reference プレースホルダーの値は何ですか？</summary>

Amplify は、ServiceNow ページの URL をあらかじめ定義された URL 形式のセットと照合して、`external_reference` 値を取得します。照合により、チケットの `sys_id` とそのタイプ: incident、interaction、またはカスタムテーブルが返されます。カスタムテーブルの URL 形式については、このセクションの「**Amplify はどの ServiceNow カスタムテーブルをサポートしていますか？**」を参照してください。

次に、Amplify はこの `external_reference` 値を `remote_action` または `workflow` 情報とともに Nexthink プラットフォームに送信します。Webhook はこれらの値を使用して、たとえば `{{remote_action.execution.external_reference}}` や `{{workflow.execution.external_reference}}` などの Webhook **リソース**プレースホルダーを置き換えます。

</details>

<details>

<summary>Amplify はどの ServiceNow カスタムテーブルをサポートしていますか？</summary>

Amplify は、名前が `u_` プレフィックスで始まるカスタムテーブルをサポートしています。 Amplify は、以下の ServiceNow URL 形式からカスタムテーブルとレコードの `sys_id` を検出します。

| ビュー          | URL 形式                             | 例                                                                                                                                       |
| ------------ | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- |
| クラシックビュー     | `.../u_<table>.do?sys_id=<sys_id>` | `https://<instancename>.service-now.com/now/nav/ui/classic/params/target/u_customer_request.do?sys_id=2f5b33a1xxxxxxxxxxxxxxxxxxxxxxxx` |
| Workspaceビュー | `.../record/u_<table>/<sys_id>`    | `https://<instancename>.service-now.com/now/sow/record/u_customer_request/2f5b33a1xxxxxxxxxxxxxxxxxxxxxxxx`                             |

これらのレコードに対して、Amplify は次を設定します：

* **外部ソース**を、`u_`プレフィックスを除いたテーブル名の先頭に`SNOW-`を付けた値（例: `SNOW-customer_request`）に設定します。この値を webhook の **NQL 条件**で使用します。
* **外部参照** をレコードの `sys_id` に設定します。

ServiceNow Table API では、webhook の **リソース**フィールドに、`u_` プレフィックスを含む完全なテーブル名を指定する必要があります。たとえば：

```
api/now/v1/table/u_customer_request/{{remote_action.execution.external_reference}}
```

</details>

<details>

<summary>webhook 設定をテストするために、ServiceNow の external_reference 値を手動で取得するにはどうすればよいですか？</summary>

ServiceNowのブラウザページからAmplifyでリモートアクションを実行した後：

1. ServiceNow チケットの URL から `external_reference` を取得します。

* ワークスペースビューでのURL例：

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-05af857a451b10c44e6d3cd7ba3fe33f371a9e5f%2FUpdatingServiceNowAplify_URL-01.png?alt=media" alt=""><figcaption></figcaption></figure>

* クラシックビューでのURL例：

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-1fd492534a2e501473b4dac37f35e73120ff2018%2FUpdatingServiceNowfromAmplify-URL-02.png?alt=media" alt=""><figcaption></figcaption></figure>

Nexthinkの[Webhook設定](#updatingservicenowfromamplify-configuringwebhookstoupdateservicenowwhenaremoteactionistriggered-1)ページから：

2. ServiceNow URLから手動で取得した`external_reference`を使って、**Resource**プレースホルダー`{{remote_action.execution.external_reference}}`を置き換えます。以下に例を挙げます。

```
api/now/v1/table/incident/32dd789083xxxxxxxxxxxxxxxxxxxxx
```

3. **Webhook設定**をチェックするためにテストを送信してください。テストが成功したことを確認した後、正しいプレースホルダーで**Resource**を置き換えてWebhookを保存します。

```
api/now/v1/table/incident/{{remote_action.execution.external_reference}}
```

</details>

<details>

<summary>Nexthink プラットフォームで ServiceNow チケットの sys_id を確認するにはどうすればよいですか？</summary>

このページで説明する webhook 設定を行い、ServiceNow の Amplify 拡張機能を使用してリモートアクションを実行した後、Nexthink の「Investigations」ページから対応する NQL クエリを実行して、チケットの `sys_id` を取得します。

**外部参照**の下にある `sys_id` と、**外部ソース**の下にあるチケットタイプを確認します。例：`SNOW-Incident` または `SNOW-Interaction`。カスタムテーブルの **外部ソース**値については、このセクションの「**Amplify ではどの ServiceNow カスタムテーブルがサポートされていますか？**」を参照してください。

<figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-12a22ccd3b8ee2eee2533878deb0c59b9d420a7d%2Fservicenowamp-1713527391.png?alt=media" alt="Checking ServiceNow incident or interaction ID in the Nexthink platform."><figcaption></figcaption></figure>

</details>

***

関連トピック

* [Amplify](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify.md)
* [ServiceNowエージェントワークスペース用Amplifyの設定](https://docs.nexthink.com/platform/ja/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)
* [ServiceNowオペレーションズワークスペース用Amplifyの設定](https://docs.nexthink.com/platform/ja/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-operations-workspace.md)
* [コネクタ資格情報](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/connector-credentials.md)
* [ServiceNow のインシデント作成](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/webhook-use-cases-setup/creating-an-incident-in-servicenow.md)
* [Amplifyのインストールと設定](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/deploying-nexthink-in-non-vdi-environment/configure-amplify/installation-and-configuration.md)
* [Webhookの管理](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks.md)
* [Webhookフィールドの設定: Method、Resource、およびPayload](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks/configuring-webhook-fields_-method-resource-and-payload.md)
* [WebhookのNQL条件の設定](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/managing-webhooks/configuring-webhook-nql-conditions.md)


---

# 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/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/outbound-connectors/webhooks/webhook-use-cases-setup/updating-servicenow-from-amplify.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.
