> 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/user-guide/workflows/creating-workflows/configuring-thinklets/message-thinklet.md).

# メッセージシンクレット

メッセージシンクレットは、ITチームがMicrosoft TeamsのNexthinkチャンネルを通じて従業員と直接コミュニケーションをとることを可能にします。シンクレットを構成して、次のメッセージタイプに対応させます。

* **通知**: 従業員の応答を必要とせずにメッセージを送信します。
* **質問**: 従業員に回答を求めるメッセージを送信します。

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

## Workflows を Microsoft Teams に接続する

**Message** thinklet を設定するには、まず Nexthink Microsoft Teams App を使用して、従業員チャネルを介して Workflows を Microsoft Teams に接続します。

{% hint style="info" %}
Microsoft Teams で Spark をすでに設定している場合、Workflow メッセージは Spark を通じて配信されるため、以下の設定を完了する必要はありません。
{% endhint %}

Microsoft Teams で Workflows を有効にするには、次の手順を実行します。

{% stepper %}
{% step %}

### Nexthink Infinity で従業員チャネルを設定する

詳細な手順については、[従業員チャネル](https://docs.nexthink.com/platform/ja/configuring_nexthink/bringing-data-into-your-nexthink-instance/integrating-nexthink-with-third-party-tools/employee-channels.md)を参照してください。
{% endstep %}

{% step %}

### Nexthink Microsoft Teams App をインストールする

* Nexthink Community にログインし、[Nexthink Infinity リリースノート > ダウンロード](https://edocs.nexthink.com/nexthink-infinity/infinity-release-notes#nexthink-microsoft-365-apps)からカスタム Nexthink アプリケーション パッケージをダウンロードします。
  * Spark と Workflows の両方が有効になっている場合は、Spark アプリケーション パッケージのみをインストールします。その後、Workflows は同じ Spark チャネルを使用して、Microsoft Teams 内の従業員と通信します。
  * Workflows のみが有効になっている場合は、Nexthink Microsoft Teams App for Workflows を選択します。
* 組織の Microsoft Teams 環境で、Nexthink アプリケーション パッケージを `.zip` ファイルとして手動でインストールします。
  {% endstep %}
  {% endstepper %}

{% hint style="info" %}
以前に Nexthink Microsoft Teams App for Workflows をインストールしており、その後 Nexthink Microsoft 365 App for Spark をインストールした場合、Workflows アプリは Spark アプリによって上書きされます。既存の会話履歴は Spark アプリに保持されます。
{% endhint %}

詳細については、[Microsoft カスタム アプリの管理](https://learn.microsoft.com/en-us/microsoftteams/teams-custom-app-policies-and-settings)ドキュメントを参照してください。

## メッセージ・シンクレットの設定

メッセージ シンクレットは、Nexthink Microsoft Teamsチャネルを通じて、従業員に通知や質問を送信します。

* 通知は回答を要求せずメッセージを配信し、質問は従業員に回答を促します。
* 質問メッセージからの回答は、ワークフロー条件によって決定される意思決定に使用されたり、他のシンクレットへの入力として利用されます。

<div align="left"><figure><img src="https://3549141153-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FeLm8O7QKZDn6z806e7Sv%2Fuploads%2Fgit-blob-87678a1cc5bacbccd302402dbf1bceae8cab1cfa%2FFlow%20-select-user.png?alt=media" alt="" width="432"><figcaption></figcaption></figure></div>

* **名前**: メッセージThinkletに対して一意の名前をEnter。
* **ID**: システムは名前を基に自動でIDを生成します。
* **説明 (オプション)**: Thinkletの目的とその機能について説明してください。この情報は、それを知らないワークフローの他のユーザーに有益です。
* **ユーザーを選択**: このキャンペーンを受け取るユーザーを選択してください。システムはSIDでユーザーを定義します。ユーザー選択オプションには以下が含まれます:
  * **ターゲットユーザー**: 現在のワークフローでターゲットとなる主要なユーザーを選択します。
  * **カスタム値**: 特定のユーザーを検索するためにキーワードを入力してカスタムユーザー値を選択します。
  * **ワークフローパラメーター**: ユーザーSIDまたはUPNが含まれる既存のリストからパラメーターを選択します。
  * **シンクレット**: あらかじめ定義されたシンクレットからユーザー SID または UPN を返す出力フィールドを選択します。例として、シンクレットは承認ワークフローにおける従業員の管理者を返します。
* **メッセージタイプ**: 従業員に送信するメッセージタイプを選択してください:
  * **通知**: 従業員からの応答を必要としないメッセージを届けます。
  * **質問**: 従業員からの回答が必要なメッセージを送信します。

<details>

<summary><strong>通知</strong>メッセージタイプの設定</summary>

**メッセージ**: 従業員に送信されるテキスト。

</details>

<details>

<summary><strong>質問</strong>メッセージタイプの設定</summary>

* **タイムアウト**: 分または時間でタイムアウトを設定します。これは、質問メッセージタイプからの応答を待っている間、ワークフローがどれだけ長く待機するかを決定します。タイムアウト制限に達すると、ワークフローは失敗状態に入り、処理が停止します。
* **タイトル**: MS Teams の通知質問ボックスに表示されるメッセージのタイトルをオプションで設定します。
* **テキスト**: 従業員に送信される質問を入力してください。
* 回答選択肢を設定する:
  * **選択肢テキスト** (少なくとも2つのオプション): 通信時に回答オプションとして表示されるテキスト。
  * **選択肢ラベル**: 従業員には表示されない選択オプションキー。

</details>

{% hint style="info" %}
Microsoft Teams に送信されるテキストメッセージは、[Microsoft マークダウン](https://learn.microsoft.com/ja-jp/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cdesktop%2Cdesktop1%2Cdesktop2%2Cconnector-html#format-cards-with-markdown)を使用して形式設定する必要があります。

Nexthinkは、第三者のドキュメントの正確性や、ここに示された情報と矛盾を生じさせる可能性のある外部の更新や変更を管理するものではありません。エラーや不一致がある場合は、Nexthinkサポートに報告してください。
{% endhint %}


---

# 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/user-guide/workflows/creating-workflows/configuring-thinklets/message-thinklet.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.
