Skip to main content

TO_LIST

Convert a textual AI response into a list of strings. Detects JSON arrays, ordered/unordered lists, comma-separated values, or falls back to a single-item array.

At a glance

  • Category Utils
  • Aliases PROCESS_TO_LIST
  • Version: 1.0.0
  • Applications: all
  • Scope: all

Inputs

TypeDescriptionDefaultRequiredResolved
textText input to convert to a list (supports JSON arrays, markdown lists, CSV, etc.)Nonetruefalse

Outputs

TypeDescriptionOptional
listArray of extracted list items (strings)false

Examples

Convert chat response to list

- step: SET
text: "1. First item\\n2. Second item\\n3. Third item"

- step: TO_LIST

Convert a JSON response containing a list

- step: SET
text: '{"items": ["A","B","C"]}'

- step: TO_LIST

See Also

General Resources: