Bixby Developer Center

Guides

preferred-hint

optionalvalue required

An utterance hint that does not need to use named dispatch. This can be used for a more natural sounding utterance where named dispatch isn't needed, such as if your capsule is the default for an NL category.

You should add a preferred-hint if your utterance doesn't make sense grammatically without it. For example, if your hint is "Ask My Local Business Finder when the post office closes today", this becomes "When the post office closes today" without the dispatch phrase. You should add preferred-hint ("When does the post office close today?") to handle the ungrammatical utterance.

If you add a preferred-hint, make sure that the utterance has been trained properly as this utterance is what gets passed back to Bixby.

Examples

hints {
uncategorized {
hint ("With Swyft, where is my ride?") {
preferred-hint ("Where's my ride?")
}
hint ("Ask Swyft how much a Super Lux car is?") {
preferred-hint ("How much is a Super Lux car?")
}
hint ("Ask Swfyt to get me a Swyft home") {
preferred-hint ("Get me a Swyft home")
}
}
}
hints {
uncategorized {
hint ("Ask ACME Smart Helper to find my keys") {
preferred-hint ("Find my keys")
}
hint ("Ask ACME Smart Helper to start the car") {
preferred-hint ("Start the car")
}
hint ("In ACME Smart Helper, turn on the lights") {
preferred-hint ("Turn on the lights")
}
}
}