macaroni

pick

Description:
The pick executor is used to display a list of choices to the user with a selection type experience.

Parent: execute, then, else

Value (simple form): string specifying the choices to display to the user
Value (key/value form):

# simple form
- pick: (string)

# simple example
- pick: |
    Maybe
    Yes
    No

# key/value form
- pick: (string or sequence of string, required)
  type: (string, optional)
  title: (string, optional)
  image: (string, optional)
  timeout: (time, optional)
  default: (string or integer, optional)

# key/value example
- pick:
  - Maybe
  - Yes
  - No
  timeout: 5s
  default: 0

EXAMPLE:

# pick a color with the pick executor
- name: pick a color
  triggers:
  - pick a color
  execute:
  - pick:
    - red
    - green
    - blue
    message: Pick one of the following colors
    default: blue
  - speak: 'you picked {pick.text}'

Additional information:

Status: ✅ IMPLEMENTED (note: pick.index resolver is not yet implemented)