Bixby Developer Center

References

route

optional

Specify a node the planner must route its execution path through when creating the plan for an intent.

Example

A ride sharing capsule might make the user's current location the default starting point by setting the current location as the route.

action (FindRideShare) {
description (Finds a ride from source point to destination point.)
type (Constructor)
collect {
input (sourcePoint) {
type (SourcePoint)
min (Required) max (One)
default-init {
// Note: To enable current location access, in your capsule.bxb:
// import viv.location and viv.self in capsule-imports
// add 'library-permission (self:profile)' to permissions
intent {
goal: SourcePoint
route: geo.CurrentLocation
}
}
}
input (destinationPoint) {
type (DestinationPoint)
min (Required) max (One)
default-select {
with-rule {
select-first
}
}
}
}
output (RideShare)
}

View master on GitHub

(This example is from the location search sample capsule.)

Child Keys

@prompt-behavior
optional
Modify Bixby's prompting behavior for a node