> For the complete documentation index, see [llms.txt](https://docs-embed.anyflow.jp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs-embed.anyflow.jp/wizard-editor/widget/multi-select-assist.md).

# 複数選択アシスト

## 概要

複数選択アシストは、エンドユーザーが単体ではなく複数のアシストのデータを選択できるウィジェットです。

[アシスト](/wizard-editor/widget/assist.md)と同様に、対象SaaSのAPIを呼び出してエンドユーザーごとに異なる値を動的に表示します。

<figure><img src="https://files.readme.io/481a360-Screen_Shot_2023-03-22_at_6.00.13_PM.png" alt="568" width="375"><figcaption><p>Slackのチャンネル一覧を複数選択する例</p></figcaption></figure>

エンドユーザー変数の型&#x304C;**「チェックボックス/複数選択アシスト/テーブルアシスト」**&#x306E;場合に利用できます。

<figure><img src="https://files.readme.io/b3ec973-image.png" alt="" width="563"><figcaption></figcaption></figure>

## 使用例

以下の例では、Slackのチャンネル/ユーザー一覧を複数選択できるように設定しています。

<figure><img src="https://files.readme.io/ebba7b8-image.png" alt="" width="563"><figcaption></figcaption></figure>

選択された値は、配列形式で格納されソリューション内で利用できます。

<figure><img src="https://files.readme.io/893aceb-image.png" alt="" width="375"><figcaption></figcaption></figure>

```json
['C067RFPG0A3', 'U0684N2QFEX']
```

{% hint style="success" %}

### ヒント

アシストでは、エンドユーザーに表示される文字列（ラベル）とソリューション内で使用する値は基本的に異なります。

SlackBotの「チャンネル/ユーザ一覧」アシストでは、\
エンドユーザーへの表示：チャンネル名やユーザー名　（#general, @taro 等）\
ソリューション内での値：チャンネルID　（C067RFPG0A3, U0684N2QFEX 等）\
となります。
{% endhint %}

[繰り返しステップ](/solution-editor/logic/loop.md)を使って、エンドユーザーが選択した全てのチャンネルにSlackメッセージを投稿します。

「繰り返すリスト」にエンドユーザー変数（チャンネルIDの配列）を指定します。

<figure><img src="https://files.readme.io/f00e703-image.png" alt="" width="563"><figcaption></figcaption></figure>

繰り返しステップの中でSlackBotの「メッセージを投稿」アクションを設定し、

「投稿するチャンネル」には繰り返しの「選択された値」を指定します。

<figure><img src="https://files.readme.io/bbf9dab-image.png" alt="" width="563"><figcaption></figcaption></figure>

これにより、エンドユーザーが選択した複数のチャンネルに対してメッセージを投稿できます。


---

# 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 dynamically by asking a question.

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

```
GET https://docs-embed.anyflow.jp/wizard-editor/widget/multi-select-assist.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
