Uh oh! We couldn’t find any match.

Please try other search keywords.

Bixby Developer Center

Guides

selection-strategy

optional

Selection strategies help inform Bixby's Selection Learning on what are the best choices for users. This often happens in Bixby when a provider has multiple matches for an ambiguous request.

Selection strategies do not provide hard logic for selection behavior. Rather, they simply provide information to Bixby about selection choices.

Learn more about selection strategies in Fundamentals documentation.

In the example below, the selection strategies provides advice for matches to geo.NamedPoint that are within 25 miles of the current user location:

selection-strategy {
id (user-near-named-point)

match {
geo.NamedPoint (this)
}

named-advice ("near-current") {
advice ("${calculateDistance($user.currentLocation, this.point, 'Miles')}")
advise-for { lowerBound(0) upperBound(25.0) }
}
}

Child Keys

id
required
Identifier that is unique for a given capsule
match
required
The match pattern represents the circumstances in which a selection strategy should be applied
named-advice
required
The named-advice block contains all the fields that make up a strategy
description
optional
Optional description of the strategy for documentation purposes