0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Watson AssistantでDynamic Optionsを使う方法

Last updated at Posted at 2025-05-11

以下のようなデータをカスタムエクステンションを作ってAPI連携し、
idを使ってDynamic Optionsを生成したい場合

data ={
  "title": "hoge",
  "detailinfo": [
    {
      "id": 1,
      "content": "fuga"
    },
    {
      "id": 2,
      "content": "piyo"
    }
  ]
}

以下画像のように設定すればDynamicにOptionが生成される。

image.png

$item.id
としてあげるのがポイント。

また、選択した結果のcontentを表示したい場合は適当に変数を作成した後、
ActionのStep Variableを選択 + .item.content
とやってあげると、contentの内容も取得できる。

image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?