Bixby Developer Center

Guides
References

default-select

optional

Enables selection rules in your action using the with-rule key and selection learning with the with-learning key.

Note

If you have both selection learning and selection rules in your capsule, Bixby will only use selection rules in cases where selection learning does not make a decision.

Examples

    input (releaseDateTimeExpression) {
description (Filter based on when the movie was released. Can be an interval or a punctual moment.)
type (time.DateTimeExpression)
min (Optional)
max (One)
default-select {
with-rule {
select-first
}
}
}

View on GitHub

    computed-input (numberOfAstronauts) {
type (NumberOfAstronauts)
min (Required)
//Lists all available options - this is used by default-select
compute {
if (exists(autoSelect)) {
intent {
goal: NumberOfAstronauts
route: GetPossibleNumberOfAstronauts
}
} else {
intent {
goal {
@prompt-behavior(AlwaysSelection)
NumberOfAstronauts
}
route: GetPossibleNumberOfAstronauts
}
}
}
default-select {
with-rule {
select-min {
expression (numberOfAstronauts == 2 ? 0 : 1)
}
}
with-learning {
}
}
}

View on GitHub

Child Keys

with-learning
optional
Specifies to use selection learning, and optionally allows you to toggle some selection learning settings
with-rule
optional
Specifies rules to be used for default selections