Skip to main content

MONITOR_CHOICE

Display a selection of choices in the Flow Monitor. Pauses workflow until user selects.

At a glance

  • Category UI
  • Version: 1.2.0
  • Applications: all
  • Scope: all

When to Use

Use MONITOR_CHOICE when you need the user to select from a list of predefined options.

Use MONITOR_CHOICE for:

  • Format selection (PDF, Word, HTML)
  • Language/locale selection
  • Mode or quality level selection
  • Any multiple-choice decision

Don't use MONITOR_CHOICE when:

  • You only need Yes/No → use MONITOR_CONFIRM
  • You need text input → use MONITOR_INPUT
  • You need a complex form → use FORM step (modal)

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
messageThe prompt message asking user to make a selection.NonetruetrueNoneNone
choicesArray of choices. Each choice has: id (returned value), label (display text), optional description.NonetruefalseNoneNone
defaultID (or array of IDs in multi mode) of default/pre-selected choice(s).NonefalsefalseNoneNone
selectionModeSelection mode: single (default) or multi.singlefalsefalseNoneNone
minSelectMinimum selections required in multi mode.NonefalsefalseNoneNone
maxSelectMaximum selections allowed in multi mode.NonefalsefalseNoneNone
customInputOptional custom text input below options.NonefalsefalseNoneNone
allowCancelIf true, shows a Cancel option that returns empty string.truefalsefalseNoneNone

Outputs

TypeDescriptionOptional
textThe selected choice ID in single mode (or custom input when no choice selected).false
objectStructured selection result in multi mode: { selectedIds, customInput }false
listSelected choice IDs as list in multi mode.false

Examples

Format selection (default output)

- step: MONITOR_CHOICE
message: "Select export format:"
choices:
- id: pdf
label: "📄 PDF Document"
- id: docx
label: "📝 Word Document"
- id: html
label: "🌐 HTML Page"

- step: EXPORT_DOCUMENT
format: "{{flowContext.text}}"

Format selection (custom output name)

- step: MONITOR_CHOICE
message: "Select export format:"
choices:
- id: pdf
label: "📄 PDF Document"
- id: docx
label: "📝 Word Document"
outputs:
- type: text
name: format

- step: EXPORT_DOCUMENT
format: "{{flowContext.format}}"

Language selection (no cancel)

- step: MONITOR_CHOICE
message: "Translate to:"
choices:
- id: de
label: "🇩🇪 German"
- id: fr
label: "🇫🇷 French"
- id: es
label: "🇪🇸 Spanish"
allowCancel: false

- step: TRANSLATE
targetLanguage: "{{flowContext.text}}"

Quality level with default

- step: MONITOR_CHOICE
message: "Select AI quality:"
choices:
- id: fast
label: "⚡ Fast (GPT-3.5)"
- id: balanced
label: "⚖️ Balanced (GPT-4)"
- id: best
label: "🎯 Best (GPT-4 Turbo)"
default: balanced

- step: OPENAI_COMPLETION
model: "{{flowContext.text}}"
instruction: "Process this text"

See Also

General Resources: