@{item}
: the current item’s value@{itemId}
: the current item’s index, for arrays, or key, for dictionariesAdd the Multiselect input to the agent
Items
list
Add a Heading component
You selected:
. Next, you’ll add the Repeater below this heading.Add a Repeater component
@{list}
. This is the list of items to display in the Repeater.itemId
and item
. These are the variable names you use to access the current item’s index and value within the Repeater. You can change them to anything you want. In this example, you’ll use the default names.Add a Text component inside the Repeater
@{item}
to display the value of the current item in the Repeater.When the list
state variable is empty, the text displays placeholder text. When the user selects items from the multiselect input, the text displays the selected items.Update the Repeater's visibility
list
. This ensures the Repeater is only visible when the user has selected at least one item from the Multiselect input and the list
state variable isn’t empty.Preview the Repeater
Add a Text Input
Recipes
Enter dish names (e.g., "Pizza, Chocolate Chip Cookies, Tacos")
request
Add a Button to trigger the blueprint
Get recipes
recipes
Add a UI Trigger block
wf-click
Add a Structured Output block
Add a Set State block
recipes
@{result}
request
and the structured output in the result
state variables in your state before moving to the next step.
Add a Repeater component
@{recipes}
. This is the list of recipes you stored in the recipes
state variable.Add a Heading component inside the Repeater
@{item.name}
Add a Tab Container inside the main Repeater
Create the first tab
@{item.ingredients}
Add a Text component inside the first tab's Repeater
- @{item}
Create the second tab with a Repeater
@{item.steps}
Add a Text component inside the second tab's Repeater
- @{item}
Update the Repeater's visibility
recipes
. This ensures the Repeater is only visible when the user has selected at least one recipe.@{recipes}
)@{item.ingredients}
). This Repeater is nested inside the main Repeater.@{item.steps}
)@{item}
context, so the inner Repeaters access individual ingredients and steps as @{item}
, while the outer Repeater’s @{item}
refers to the entire recipe object.